| name | author-agent |
| description | Use when the user wants to create or edit an ArchAstro agent's config files before deployment, including AgentTemplate files, Script configs, custom tools, routines, and environment setup. Trigger phrases include "build this agent", "write the template", "create the scripts", "set up the routines", "author this agent config". |
| allowed-tools | ["Bash(archastro:*)"] |
ArchAstro Agent Authoring
Create or update the config files for a config-driven ArchAstro agent before deployment.
This skill assumes the ArchAstro CLI is already installed and authenticated. Use the /archastro:install and /archastro:auth commands in this same plugin instead of trying to install or authenticate the CLI manually inside this skill.
Always Start with State
Every invocation must begin by understanding the current project state:
archastro auth status
If the user is in a repo, inspect whether a configs/ directory already exists and whether the agent already has Script or AgentTemplate files.
Routing
CLI not installed or too old
Before any authoring work, verify the CLI:
- Read
plugin-compatibility.json from the plugin root.
- Prefer
plugins.archastro.minimumCliVersion, fall back to the top-level minimumCliVersion.
- Run
archastro --version. If missing or older than the resolved minimum, direct the user to /archastro:install.
- If authentication or app selection is missing, direct the user to
/archastro:auth.
Local config directory not initialized
If the user doesn't have a configs/ directory set up yet, route to the manage-configs skill first. That skill owns archastro init --enable-configs, local file layout, and the sync/deploy workflow.
User wants to author or modify agent configs
-
Start from CLI-backed templates, not memory:
-
Use the standard config-driven model:
-
Validate early:
archastro validate config -k <Kind> -f <path>
Run validation before deploy whenever the user changes Script or template files.
-
Deploy through the normal flow after authoring:
Authoring Rules
Script configs
- Load the
build-script skill for detailed script authoring guidance, including syntax examples, common mistakes, and the validation/test/deploy workflow.
- Treat the script language as a functional expression language, not a general-purpose imperative language.
- Use
archastro describe scriptdocs for exact syntax and available namespaces.
- If a script fails validation, prefer rewriting toward the sample/reference instead of trial-and-error improvisation.
Routine configs inside templates
Config references
- Prefer human-readable
config_ref values that match deployed config lookup keys.
- Do not convert refs to raw
cfg_... IDs unless explicitly debugging a broken environment.
Environment variables
- For org users, prefer org-scoped environment variables when they are sufficient for the agent's needs.
- Do not default users into app-scoped env-var flows unless the use case truly requires app scope.
Recovery Rules
- If the user asks for a brand-new Script and the language shape is unclear, run
archastro describe scriptdocs before drafting.
- If validation fails, surface the exact failing field or syntax problem. Do not immediately switch to lower-level provisioning commands.
- If the user asks to "just create the agent" while configs are still incomplete, finish authoring and validation first, then route to
deploy-agent.
Command Conventions
- All config commands are verb-first:
archastro list configs, archastro create config, archastro deploy configs, archastro sync configs, archastro validate config, etc.
- There is no
archastro configs namespace. Do not use archastro configs <verb> — always put the verb first.
Response Rules
- Do not inspect or edit credential files directly — use the CLI only.
- Do not ask the user to pick raw subcommands when intent is clear.
- Keep responses concise and operational.
- Prefer the golden path over fallback commands.