Deploy

From the-agency-ai/the-agency · View interactive version

Deploy is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Deploy the project using the configured platform provider

How to use this skill

Skill file

<!--

Flag #62/#63: allowed-tools removed. Inherits Bash(*) from

.claude/settings.json. Restricting to specific subcommand patterns at the

skill level silently blocks agents on permission prompts the agent cannot

see — see dispatch #171 for the devex incident that surfaced this trap.

-->

Deploy

Deploy the project to the configured platform.

Arguments

How to Execute

Step 1: Resolve Provider

Read the deploy provider from agency/config/agency.yaml under deploy.provider.

# agency.yaml
deploy:
  provider: "fly"  # or "aws", "vercel", "cloudflare", "railway"

The provider maps to a tool: ./agency/tools/deploy-{provider}

Step 2: Check Provider Tool Exists

Verify ./agency/tools/deploy-{provider} exists and is executable. If not:

Step 3: Pre-Deploy Checks

Before deploying:

  1. Verify working tree is clean (git status --porcelain)
  2. Confirm the target environment with the user
  3. Show what will be deployed (current branch, latest commit)

Step 4: Dispatch to Provider

Execute: ./agency/tools/deploy-{provider} {verb} {args}

Where verb is one of: deploy, status, rollback, logs (mapped from flags above, default: deploy).

Pass --env value if specified.

Step 5: Report

Show the user:

Provider Contract

Each deploy-{provider} tool must support these verbs:

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.