| name | deploy-agent |
| description | Use when the user wants to deploy an ArchAstro agent, turn a config-driven agent repo into a running agent, or get an existing agent running in a thread. Trigger phrases include "deploy agent", "deploy this agent", "set up an agent", "launch agent", "ship this agent", "get this agent running". |
| allowed-tools | ["Bash(archastro:*)"] |
ArchAstro Agent Deployment
Deploy an agent from a YAML template and get it running in a thread.
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 what already exists:
archastro auth status
archastro list agents
If the user is working from a local repo, also inspect whether a configs/ directory already exists. Determine whether they want to:
- deploy a new config-driven agent,
- redeploy an existing template,
- or work with an existing running agent.
Routing
CLI not installed or too old
Before any deployment 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 has config files but no configs/ directory set up, route to the manage-configs skill first. That skill owns local config management.
User wants to deploy a new agent
Use the config-driven golden path. Do not skip straight to create agent.
-
Deploy configs first:
archastro deploy configs
This pushes Script and AgentTemplate configs to the server. For config-driven agents, this should happen before provisioning the agent itself.
-
Deploy the agent from the template file:
archastro deploy agent <yaml-file>
This creates the full agent stack in one step: app config, agent record, routines, and installations. Note the agent ID (agi_...) from the output.
Important: Always use deploy agent, not create agent. The create agent command only creates the agent record without provisioning routines or installations.
-
Verify the deployment:
archastro list agents
-
Offer next steps: ask if the user wants to add the agent to a thread and start chatting. If yes, create a thread with members and hand off to the chat skill.
User needs help creating or editing the config files first
Route to the author-agent skill before deploying. That skill owns:
AgentTemplate and Script config creation
archastro describe configsample
archastro describe scriptdocs
- routine scheduling shape
- env-var scope guidance
User wants to add an agent to a thread
-
If no thread exists, create one:
archastro create thread --title "..." --user <user-id>
-
Add the agent as a member:
archastro create threadmember --thread <thread-id> --agent-id <agent-id>
-
Add any other participants:
archastro create threadmember --thread <thread-id> --user-id <user-id>
-
Confirm the thread is ready and offer to send the first message.
User asks about existing agents
List agents and present them:
archastro list agents
Summarize what's deployed and offer to deploy a new one or add an existing one to a thread.
Recovery Rules
Response Rules
- Do not inspect or edit credential files directly — use the CLI only.
- Do not ask the user to pick a subcommand — infer the action from their message.
- If the CLI reports an auth or app error, route to
/archastro:auth or suggest --app <id>.
- Keep responses concise — state the outcome, not the process.