/adev:deployfrom adev
Executes a structured deployment pipeline from .context-index/deploy.yaml with shell, manual, verify, gate, and CI-trigger steps, including failure recovery and rollback guidance.
Ships in adev. 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.
None: SKILL.md is the whole skill.
Execute a structured deployment pipeline defined in .context-index/deploy.yaml. Steps run in order with fail-fast behavior, output redaction, and rollback guidance on failure.
Announce at start: "I'm using the adev:deploy skill to run a deployment pipeline."
--version <tag>: explicit version/tag for this deploy (bypasses milestone lookup)--env <name>: target environment name (uses default if omitted)--dry-run: print what would execute without running anythingBefore starting, verify all conditions. If any fails, stop with the indicated message.
Deploy config exists. .context-index/deploy.yaml must exist.
If missing: "No deploy.yaml found. Run /adev:deploy init to set up deployment."
Config validates. Load and validate the config using the companion library. If validation fails: print each error with step ID and description, then exit.
Version resolved. Either --version <tag> is provided, or a shipped milestone
exists in milestones.yaml. If neither: "No shipped milestone found. Use --version <tag> to deploy explicitly."
import { loadDeployConfig, validateDeployConfig } from '<project-root>/lib/deploy.mjs';
const config = loadDeployConfig(projectRoot);
// If null: print NO_CONFIG message and exit
// If config._loadError: print errors and exit
const { errors, warnings } = validateDeployConfig(config);
// If errors.length > 0: print each error and exit
// If warnings.length > 0: print warnings (non-blocking)
Load Skill Extensions: Load any skill extension instructions before proceeding:
adev skill-ext load --skill deploy
If the output is not __NONE__, incorporate it as additional standing instructions that apply to this skill's entire execution. Frame it as: "The following skill extension instructions apply to this invocation (source: installed domain extensions and/or project-level overrides)." If the output is __NONE__, continue normally.
import { resolveVersion } from '<project-root>/lib/deploy.mjs';
const versionResult = await resolveVersion(projectRoot, { version: args.version });
// If versionResult.error: print error message and exit
If --version was provided, use it directly. Otherwise, the library reads
milestones.yaml for the most recently shipped milestone.
Print any warnings about missing env vars from Step 1 validation. These are non-blocking but the user should be aware before execution begins.
If --dry-run was passed, print each step with its type and command/instructions,
then exit without executing.
Otherwise, execute steps in order using the companion library:
import { executeDeploy } from '<project-root>/lib/deploy.mjs';
const run = await executeDeploy(projectRoot, {
version: resolvedVersion,
environment: args.env,
});
For each step, announce what is being executed:
<command> <args>"instructions field. Wait for user input:
<command>"<command> (polling every Ns, timeout Ns)"<command>" then "Polling: <poll_command>"On success (all steps succeeded):
Print the deploy summary:
import { formatDeploySummary } from '<project-root>/lib/deploy.mjs';
console.log(formatDeploySummary(run));
On failure (any step failed):
Stop immediately. Report which steps succeeded and which failed.
If the config defines rollback steps for completed steps, surface them in reverse order:
Rollback steps available (in recommended order):
1. [step-id]: <rollback instruction>
2. [step-id]: <rollback instruction>
Execute rollback? Each step requires your confirmation.
If the user confirms, execute rollback steps one at a time using
executeRollback(). Each step requires explicit "yes" confirmation.
Rollback steps are NEVER auto-executed.
| Condition | Message |
|---|---|
| No deploy.yaml | "No deploy.yaml found. Run /adev:deploy init to set up deployment." |
| Validation fails | Print each error: "Error: [code] — [message]" |
| Duplicate step IDs | "Duplicate step ID '[id]'. Step IDs must be unique within an environment." |
| Inline secret found | "Step '[id]' contains what appears to be an inline secret. Use env var references instead." |
| No version | "No shipped milestone found. Use --version <tag> to deploy explicitly." |
| Step fails | "Step '[id]' failed (exit code [N]). Deployment stopped." |
| Verify fails | "Verification '[id]' failed. Deployment stopped." |
| Gate timeout | "Gate '[id]' timed out after [N]s. Deployment stopped." |
| CI job fails | "CI job '[id]' failed. Deployment stopped." |
| User abort | "Deployment aborted by user at step '[id]'." |
| Command not found | "Command not found: '[cmd]'. Check that it is installed and on PATH." |
| Missing env var | "Warning: Environment variable '[name]' is not set." |
execFile with shell: false (no shell interpolation)All deploy logic lives in lib/deploy.mjs:
| Function | Purpose |
|---|---|
loadDeployConfig(projectRoot) | Read and parse .context-index/deploy.yaml |
validateDeployConfig(config) | Validate config, detect secrets, check env vars |
checkYamlSafety(rawSource) | Pre-parse safety check for rejected YAML constructs |
detectInlineSecrets(step) | Regex-based inline secret detection |
redactOutput(text, variables) | Replace env var values with <REDACTED:$VAR_NAME> |
executeDeploy(projectRoot, options) | Orchestrate step execution, return DeployRun |
executeShell(step, context) | Shell step via execFile |
executeManual(step, context) | Manual step with user confirmation |
executeVerify(step, context) | Verification step |
executeGate(step, context) | Polling gate step |
executeCiTrigger(step, context) | CI dispatch and poll step |
executeRollback(rollbackSteps, options) | Confirmed rollback execution |
resolveVersion(projectRoot, options) | Version resolution from milestones or --version |
formatDeploySummary(deployRun) | Human-readable deploy summary |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agentic-development/adev-plugin --plugin adev31 skills in this plugin
/assessadev:assessAssess codebase readiness for agentic development. Scans the codebase using static file inspection and outputs maturity scores across 8 structural dimensions (raw mode) or 11 dimensions (adev mode). Use when you want to evaluate how well-suited a codebase is for AI-assisted development, identify improvement areas, or track progress over time./brainstormadev:brainstormExplore a feature idea interactively and produce a Feature Charter. Validates against constitution and existing charters. Use before building any new feature or module, when the user mentions a new capability, or says 'let us build X'./Other plugins' skills for the same job