/deploy:deployfrom deploy
Deploy services to target environments. Handles environment selection, deployment locking, and workflow triggering. Use when user says /deploy.
Ships in deploy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Deploy services to target environments via CI/CD workflow. Handles environment selection, deployment locking to prevent concurrent deploys, and triggers deployment with appropriate options.
/deploy configure (run once during framework setup)/deploy (uses saved config)/deploy learn (re-analyze deployment setup).claude/skills/deploy.yaml| Mode | Trigger | Purpose |
|---|---|---|
| configure | /deploy configure | Auto-detect deployment commands, environments |
| learn | /deploy learn | Update config from recent deployments |
| deploy | /deploy | Deploy to environment (default) |
┌─────────────────────────────────────────────────────────────────────┐
│ 1. SELECT ENV → 2. CHECK LOCK → 3. DEPLOY → 4. VERIFY │
└─────────────────────────────────────────────────────────────────────┘
Ask the user which environment to deploy to (configured via configure).
Before deploying, check if another deployment is in progress:
# Example: GitHub Actions
gh run list --workflow=deploy.yaml --status=in_progress --json databaseId,status
# Example: Check for queued
gh run list --workflow=deploy.yaml --status=queued --json databaseId,status
Lock Rules:
in_progress → STOP, wait for completionqueued → STOP, wait or cancelUse the configured DEPLOY_COMMAND from .claude/skills/deploy.yaml:
# Examples based on platform:
# GitHub Actions
gh workflow run deploy.yaml -f environment=staging
# Kubernetes
kubectl apply -f k8s/staging/
# Task runner
task deploy:staging
# npm script
npm run deploy -- --env staging
# Watch workflow (GitHub Actions)
gh run watch
# Check status
gh run list --workflow=deploy.yaml --limit=1
# After completion, verify deployment
# (Use deploy-verify skill)
Config path depends on how the plugin was installed:
| Plugin Scope | Config File | Git |
|---|---|---|
| project | .claude/skills/deploy.yaml | Committed (shared) |
| local | .claude/skills/deploy.local.yaml | Ignored (personal) |
| user | .claude/skills/deploy.local.yaml | Ignored (personal) |
Precedence when reading (first found wins):
.claude/skills/deploy.local.yaml.claude/skills/deploy.yamlConfigured via wizard during /deploy configure:
| Variable | Description | Example |
|---|---|---|
DEPLOY_COMMAND | Command to deploy | gh workflow run deploy.yaml |
ENVIRONMENTS | Available environments | staging,production |
DEPLOY_BRANCH | Branch for production | main |
# Using configured command
${DEPLOY_COMMAND} -f environment=staging
When you need to rebuild (e.g., dependency updates):
${DEPLOY_COMMAND} -f environment=staging -f force_build=true
Rollback or deploy specific commit:
${DEPLOY_COMMAND} -f environment=staging -f version=<commit-sha>
# GitHub Actions example
IN_PROGRESS=$(gh run list --workflow=deploy.yaml --status=in_progress --json databaseId | jq length)
QUEUED=$(gh run list --workflow=deploy.yaml --status=queued --json databaseId | jq length)
if [ "$IN_PROGRESS" -gt 0 ] || [ "$QUEUED" -gt 0 ]; then
echo "Deployment locked: $IN_PROGRESS in progress, $QUEUED queued"
else
echo "No active deployments - safe to deploy"
fi
If a deployment is stuck (use with caution):
# Get the run ID
gh run list --workflow=deploy.yaml --status=in_progress --json databaseId
# Cancel the run
gh run cancel <run-id>
After deployment completes:
/deploy-verifySee skill.yaml for the full deployment procedure.
See sharp-edges.yaml for common deployment pitfalls.
| Skill | Relationship |
|---|---|
deploy-verify | Verify deployment success after this skill runs |
debugger | Debug if deployment has issues |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dohernandez/claude-skills --plugin deploy