AgentSkillsCN

ash-framework

在使用Ash Framework及其任何扩展(包括Reactor)时,请务必使用此技能。在进行领域变更、资源定义、动作、反应器,或修复问题时,始终参考此技能。

SKILL.md
--- frontmatter
name: ash-framework
description: "Use this skill when working with Ash Framework or any of its extensions, including Reactor. Always consult this when making domain changes, resource definitions, actions, reactors, or fixes."
metadata:
  managed-by: usage-rules
<!-- usage-rules-skill-start -->

Additional References

Searching Documentation

sh
mix usage_rules.search_docs "search term" -p ash -p ash_phoenix -p ash_authentication -p ash_oban -p ash_sqlite -p ash_ai -p ash_authentication_phoenix -p reactor

Available Mix Tasks

  • mix ash - Prints Ash help information
  • mix ash.codegen - Runs all codegen tasks for any extension on any resource/domain in your application.
  • mix ash.extend - Adds an extension or extensions to the given domain/resource
  • mix ash.gen.base_resource - Generates a base resource. This is a module that you can use instead of Ash.Resource, for consistency.
  • mix ash.gen.change - Generates a custom change module.
  • mix ash.gen.custom_expression - Generates a custom expression module.
  • mix ash.gen.domain - Generates an Ash.Domain
  • mix ash.gen.enum - Generates an Ash.Type.Enum
  • mix ash.gen.preparation - Generates a custom preparation module.
  • mix ash.gen.resource - Generate and configure an Ash.Resource.
  • mix ash.gen.validation - Generates a custom validation module.
  • mix ash.generate_livebook - Generates a Livebook for each Ash domain
  • mix ash.generate_policy_charts - Generates a Mermaid Flow Chart for a given resource's policies.
  • mix ash.generate_resource_diagrams - Generates Mermaid Resource Diagrams for each Ash domain
  • mix ash.install - Installs Ash into a project. Should be called with mix igniter.install ash
  • mix ash.migrate - Runs all migration tasks for any extension on any resource/domain in your application.
  • mix ash.patch.extend - Adds an extension or extensions to the given domain/resource
  • mix ash.reset - Runs all tear down & setup tasks for any extension on any resource/domain in your application.
  • mix ash.rollback - Runs all rollback tasks for any extension on any resource/domain in your application.
  • mix ash.setup - Runs all setup tasks for any extension on any resource/domain in your application.
  • mix ash.tear_down - Runs all tear_down tasks for any extension on any resource/domain in your application.
  • mix ash_phoenix.gen.html - Generates a controller and HTML views for an existing Ash resource.
  • mix ash_phoenix.gen.live - Generates liveviews for a given domain and resource.
  • mix ash_phoenix.install - Installs AshPhoenix into a project. Should be called with mix igniter.install ash_phoenix
  • mix ash_authentication.add_add_on - Adds the provided add-on to your user resource
  • mix ash_authentication.add_strategy - Adds the provided strategy or strategies to your user resource
  • mix ash_authentication.install - Installs AshAuthentication. Invoke with mix igniter.install ash_authentication
  • mix ash_authentication.upgrade
  • mix ash_oban.install - Installs AshOban and Oban
  • mix ash_oban.install.docs
  • mix ash_oban.set_default_module_names - Set module names to their default values for triggers and scheduled actions
  • mix ash_oban.set_default_module_names.docs
  • mix ash_oban.upgrade
  • mix ash_sqlite.create - Creates the repository storage
  • mix ash_sqlite.drop - Drops the repository storage for the repos in the specified (or configured) domains
  • mix ash_sqlite.generate_migrations - Generates migrations, and stores a snapshot of your resources
  • mix ash_sqlite.install - Installs AshSqlite. Should be run with mix igniter.install ash_sqlite
  • mix ash_sqlite.migrate - Runs the repository migrations for all repositories in the provided (or configured) domains
  • mix ash_sqlite.rollback - Rolls back the repository migrations for all repositories in the provided (or configured) domains
  • mix ash_ai.gen.chat - Generates the resources and views for a conversational UI backed by ash_postgres and ash_oban
  • mix ash_ai.gen.chat.docs
  • mix ash_ai.gen.mcp - Sets up an MCP server for your application
  • mix ash_ai.gen.mcp.docs
  • mix ash_ai.gen.usage_rules
  • mix ash_ai.gen.usage_rules.docs
  • mix ash_ai.install - Installs AshAi. Call with mix igniter.install ash_ai. Requires igniter to run.
  • mix ash_ai.install.docs
  • mix ash_authentication.phoenix.routes - Prints all routes generated by AshAuthentication Phoenix
  • mix ash_authentication_phoenix.install - Installs AshAuthenticationPhoenix. Invoke with mix igniter.install ash_authentication_phoenix
  • mix ash_authentication_phoenix.upgrade
  • mix reactor.install - Installs Reactor into a project.
  • mix reactor.mermaid - Generate Mermaid diagrams from Reactor modules
  • mix reactor.run - Run a Reactor from the command line
<!-- usage-rules-skill-end -->