/adev:buildfrom adev
Chains review, plan, route, implement, and validate into a single end-to-end pipeline for one or more specs. Supports resuming from failure, batch processing, and dry-run preview.
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.
Read when SKILL.md points to them.
Chain review, plan, route, implement, and validate into a single end-to-end pipeline for one or more specs. Supports resuming from failure, batch processing by charter module or milestone, and dry-run preview.
Announce at start: "I'm using the adev:build skill to orchestrate a full build pipeline."
Load Skill Extensions: Load any skill extension instructions before proceeding:
adev skill-ext load --skill build
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.
Never end your turn to wait for a dispatched subagent. A synchronous dispatch (run_in_background: false) returns its final result directly in the tool call — there is nothing to wait for. A task ID means the rule above was violated (or the harness backgrounded anyway): fix the dispatch and re-run synchronously rather than ending the turn on a notification that will not arrive. Ending the turn before the STEP_RESULT above is in hand is a protocol violation, not a valid pause point.
Always pass run_in_background: false on the Agent({...}) call. The harness backgrounds Agent dispatches by default: the call returns immediately with a task ID and the caller is only re-invoked by a completion notification. That notification path is reliable only at the top level of a session — inside a nested subagent context it does not re-invoke the caller, so a backgrounded dispatch stalls the pipeline (field-observed as build steps that auto-background and never return a STEP_RESULT). Synchronous dispatch returns the subagent's final report directly in the tool result, which is what the STEP_RESULT protocol below requires.
Full argument reference for every pipeline mode.
--lite: forwarded to /adev:implement only, and only when the operator passed it; never add it on your own.Conditional loading: Read
<ADEV_ROOT>/skills/build/references/arguments.mdfor the full instructions. Do not act on this section from the summary above.
Before starting, verify all conditions. If any fails, stop and tell the user what to fix.
Context Index exists. .context-index/ must be present with constitution.md and manifest.yaml.
Spec provided or discoverable. At least one spec must be specified via --spec or discoverable via --charter or --milestone.
Valid arguments. If --spec is provided, the file must exist. If --charter (or --module) is provided, the module name must be a non-empty string and .context-index/specs/features/<module>/ must be a directory. If --milestone is provided, the milestone name must be a non-empty string.
Read build config. Resolve build.max_retries from user-config (local .context-index/user-config → global <PLUGIN_ROOT>/user-config → default 0). Use parseUserConfig() from lib/persona.mjs to read both config files. Look for the key build.max_retries. Clamp to range 0-3 with a warning if out of range.
Read review-retry config. Resolve build.max_review_retries from manifest.yaml::build.max_review_retries (default 2 per lib/manifest.mjs Task 12 of review-block-auto-retry). Set to 0 to disable the BLOCK→revise auto-retry loop entirely (sidecar+fail-loud on the first BLOCK — the legacy 7e333fd behavior). Negative values are rejected at manifest load with INVALID_MAX_REVIEW_RETRIES. The CLI flag --require-human-final-pass orthogonally requires operator sign-off when the loop converges on PASS — see the BLOCK→revise auto-retry loop documentation in Step 1 below.
If .context-index/ does not exist, tell the user:
This project has not been initialized with the Agentic Development Framework. Run
/adev:initfirst to set up the context index, then come back to build.
The mode matrix: full, single-spec, milestone, charter, workspace, resume.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/pipeline-modes.mdfor the full instructions. Do not act on this section from the summary above.
Repo-Mode-Inside-Workspace Advisory: When the skill is invoked inside a registered repo (detectWorkspace(cwd) non-null AND currentRepoSlug is set), behaviour is repo-scoped (existing single-repo flow). Additionally, print this one-line advisory to stdout (same channel as existing skill messages — NOT stderr, logs, or hook channels), exactly once per invocation:
(Advisory: running repo-scoped inside workspace '<name>'. For
workspace-level building, cd to <workspace-root> and re-run.)
The advisory does not block; it does not appear when detectWorkspace returns null.
How the orchestrator dispatches each sub-skill and what it hands over.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/delegation/delegation-protocol.mdfor the full instructions. Do not act on this section from the summary above.
The build orchestrator executes exactly one pipeline step per turn, then yields control. This is the primary structural mechanism preventing the agent from skipping steps or inlining work due to accumulated context.
The full per-turn loop: pick the next step, dispatch it, record the result, stop.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/delegation/dispatch-loop.mdfor the full instructions. Do not act on this section from the summary above.
This model prevents the "finish the work" failure mode where accumulated context causes the agent to skip lifecycle steps. By executing one step per turn and re-invoking with a fresh context, the orchestrator never accumulates enough context to feel compelled to shortcut. Each turn has a single, narrow task: read state, determine next step, dispatch one subagent, record result.
Applies only when --verbose is passed: extra per-step reporting.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/verbose-mode.mdfor the full instructions. Do not act on this section from the summary above.
The orchestrator executes exactly one of these steps per invocation. After dispatch and state persistence, it re-invokes itself for the next step. See One-Step-Per-Invocation Dispatch above.
The pipeline executes 5 steps per spec, in strict order. For each step, the orchestrator: (1) checks the skip condition on artifacts, (2) calls requireGate(state, "<prior-step>", { mode }) to enforce that the prior step actually passed, (3) dispatches a subagent via the Agent tool if not skipped, (4) reads the subagent's result, (5) checks the stop condition, and (6) persists build state.
The verdict check that must pass before the next step may be dispatched.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/delegation/dispatch-gate.mdfor the full instructions. Do not act on this section from the summary above.
Authors the Live Spec. Runs only in the full pipeline, and only when the spec does not already exist.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/pipeline/step-0-specify.mdfor the full instructions. Do not act on this section from the summary above.
Dispatches /adev:review-specs over the target spec and gates on the returned verdict.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/pipeline/step-1-review.mdfor the full instructions. Do not act on this section from the summary above.
Dispatches /adev:plan to decompose the reviewed spec into ordered tasks.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/pipeline/step-2-plan.mdfor the full instructions. Do not act on this section from the summary above.
Dispatches /adev:route to score each task and assign an execution mode.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/pipeline/step-3-route.mdfor the full instructions. Do not act on this section from the summary above.
Dispatches /adev:implement to execute the routed plan.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/pipeline/step-4-implement.mdfor the full instructions. Do not act on this section from the summary above.
Rigor tier propagation: Read <ADEV_ROOT>/skills/build/step4-tier-propagation.md for the --tier and --lite handoff to /adev:implement.
Dispatches /adev:validate and records the PASS/FAIL verdict on the build log.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/pipeline/step-5-validate.mdfor the full instructions. Do not act on this section from the summary above.
Governs re-entry into Step 4 after a failing Step 5, including the retry ceiling.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/pipeline/validate-implement-retry.mdfor the full instructions. Do not act on this section from the summary above.
Build-orchestrator resume state is persisted via lib/build-state.mjs. The helper owns the on-disk shape — derived per spec, where <slug> comes from the spec filename (lowercase, hyphenated, without extension). Treat the helper as the source of truth; do not interact with its underlying storage directly.
The helper creates its underlying storage directory on first write. Skill prose does not need to test for existence or create directories — call createBuildState(projectRoot, specPath, ...) and let the helper handle filesystem setup.
On-disk schema of the build state file.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/build-state-format.mdfor the full instructions. Do not act on this section from the summary above.
When and how the orchestrator flushes build state to disk.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/build-state-persistence.mdfor the full instructions. Do not act on this section from the summary above.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/resume-mode.mdfor the full Resume Mode instructions, including resuming aDECISION_REQUIREDhalt afteradev decisions record.
How a resumed build decides that recorded state is too old to trust.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/stale-build-detection.mdfor the full instructions. Do not act on this section from the summary above.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/charter-mode.mdfor the full Charter Mode instructions.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/milestone-mode.mdfor the full Milestone Mode instructions.
--milestone at Workspace Root)Conditional loading: Read
<ADEV_ROOT>/skills/build/references/workspace-mode.mdfor the full Workspace-Mode Build instructions.
Applies only when --dry-run is passed: prints the planned pipeline without dispatching.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/dry-run-mode.mdfor the full instructions. Do not act on this section from the summary above.
--spec)Applies only when --spec is passed: runs the pipeline against exactly one spec.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/single-spec-mode.mdfor the full instructions. Do not act on this section from the summary above.
Enumerated failure modes and the required orchestrator response to each.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/error-cases.mdfor the full instructions. Do not act on this section from the summary above.
Dispatch as subagent, never inline. Every pipeline step MUST be dispatched as a fresh subagent via the Agent tool. The subagent invokes the child skill via the Skill tool. The orchestrator never performs review, planning, routing, implementation, or validation itself — not even partially. See the Delegation Protocol section.
Fail fast, retry smart, resume gracefully. When a step fails, stop immediately for that spec, save state, and report. Exception: when build.max_retries in user-config is > 0 and validate fails, the orchestrator can retry the implement→validate loop with scoped failure context. Retries stop on budget exhaustion, no progress, or regression. The user can always fix issues manually and --resume without re-running completed steps.
Incremental state persistence. Build state is saved after every step, not just at the end. An interrupted build (network failure, timeout, user abort) always has an accurate state file.
Milestone independence. In --milestone mode, specs are independent units. One spec's failure does not cascade to unrelated specs. Only explicit depends-on relationships create blocking dependencies.
Dry run is sacred. --dry-run is strictly read-only. It never invokes a skill, writes a file, or modifies state. It exists to give the user confidence before committing to a potentially long build.
Pipeline order is fixed. The 5-step order (review, plan, route, implement, validate) is invariant. Steps can be skipped based on conditions, but they are never reordered.
Issue board is optional. All issue board operations are guarded by tasks.backend in the manifest. If unconfigured, the build runs identically but without issue tracking.
One step per turn. The orchestrator dispatches exactly one pipeline step per invocation, persists state, and re-invokes itself for the next step. It never runs two or more steps in a single turn. This prevents context accumulation from causing step-skipping. See the One-Step-Per-Invocation Dispatch section.
Never:
/adev:implement via the Skill tool/adev:validate via the Skill tool"Agent ... not available" or "Task ... not available" without first attempting an actual Agent({...}) call and observing the harness reject it. The orchestrator must attempt the Agent call before recording any tool-unavailability failure — prose-level self-abort is a build bug, not a safe fallback. Note: there is no Task tool in this CLI; Agent is the only dispatcher.Library functions this skill wraps, for reference when reading its CLI verbs.
Conditional loading: Read
<ADEV_ROOT>/skills/build/references/api-reference.mdfor the full instructions. Do not act on this section from the summary above.
references/api-reference.md (opens in a new tab)references/arguments.md (opens in a new tab)references/blocker-auto-retry-loop.md (opens in a new tab)references/build-state-format.md (opens in a new tab)references/build-state-persistence.md (opens in a new tab)references/charter-mode.md (opens in a new tab)references/delegation/context-packet-assembly.md (opens in a new tab)references/delegation/delegation-protocol.md (opens in a new tab)references/delegation/dispatch-gate.md (opens in a new tab)references/delegation/dispatch-loop.md (opens in a new tab)references/delegation/orchestrator-direct-work.md (opens in a new tab)references/delegation/subagent-prompt-template.md (opens in a new tab)references/dry-run-mode.md (opens in a new tab)references/error-cases.md (opens in a new tab)references/milestone-mode.md (opens in a new tab)references/pipeline-modes.md (opens in a new tab)references/pipeline/step-0-specify.md (opens in a new tab)references/pipeline/step-1-review.md (opens in a new tab)references/pipeline/step-2-plan.md (opens in a new tab)references/pipeline/step-3-route.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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'./bugfix-loopadev:bugfix-loopSelf-re-invoking, one-bug-per-turn loop that drains eligible P2/P3 bugs from the issue board unattended, using /adev:debug --auto for each attempt./codehealthadev:codehealthProactively scan source code for dead exports, orphan files, unused dependencies, stale code, and duplicate logic. Produces severity-tiered reports from repomap artifacts. Use when the user says 'check code health', 'find dead code', 'unused exports', 'stale files', 'orphan files', 'unused dependencies', or wants to identify cleanup opportunities before refactoring./debugadev:debugContext-aware systematic debugging. Checks ADRs for known issues, specs for expected behavior, and orientation for architecture context before investigating. Use when encountering any bug, test failure, or unexpected behavior. Trigger on 'fix this', 'fix the bug', 'something is broken', 'this test fails', 'unexpected error', 'why is this not working', 'this doesn't work', 'can you fix', 'there's an error', 'it's failing', or any request to fix, debug, or investigate a problem./deployadev:deployRun a deployment pipeline defined in .context-index/deploy.yaml. Executes shell, manual, verify, gate, and ci-trigger steps in order with failure recovery and rollback guidance. Use when the user says 'deploy', 'run deploy', 'push to production', 'publish', or wants to execute a structured deployment.Other plugins' skills for the same job