From autodev
Use after writing-plans to verify the implementation plan covers all design requirements without drift or scope creep
How this skill is triggered — by the user, by Claude, or both
Slash command
/autodev:alignment-checkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Condensed format: load `autodev:condensed-pipeline-writing` to expand shorthand.
Condensed format: load
autodev:condensed-pipeline-writingto expand shorthand.
Verify that an implementation plan faithfully covers every requirement in the approved design — nothing missing, nothing extra. This is an automated structural gate between planning and execution.
Core principle: Every design requirement maps to a plan task. Every plan task traces to a design requirement. Drift in either direction is caught before execution begins.
Scope: This skill is narrowly structural. It does NOT attack the ideas in the design or plan — that is the job of adversarial-design-review, which runs first (in autonomous mode) on both the design and the plan. By the time alignment-check runs, idea-level findings are already resolved; alignment is a forward + reverse trace, nothing more.
Invoked automatically by writing-plans in autonomous mode, after adversarial-design-review --phase=plan passes. Can also be invoked manually after writing a plan.
Dispatch a balanced-tier subagent to verify alignment. The subagent reads both documents and produces an Alignment Report:
Input:
docs/plans/YYYY-MM-DD-<topic>-design.mddocs/plans/YYYY-MM-DD-<feature>.mdForward trace (design → plan): For each requirement in the design:
Reverse trace (plan → design): For each task in the plan:
Manifest trace (design → manifest, manifest → plan body):
## Scope Manifest section (see skills/scope-lock/SKILL.md for the format).### Task N: heading in the plan body; flag MANIFEST DRIFT otherwise.**PR Count:** N matches the row count of the PR Grouping table; flag COUNT MISMATCH otherwise.tests/plan-scope-check.sh --plan <plan> — alignment-check MUST run that script and fail if it returns non-zero.Report format:
Status: PASS | FAIL
Coverage:
| Design Requirement | Plan Task(s) | Status |
|---|---|---|
| [requirement] | Task N | ✅ Covered |
| [requirement] | — | ❌ MISSING |
Scope Check:
| Plan Task | Design Requirement | Status |
|---|---|---|
| Task N | [requirement] | ✅ Justified |
| Task N | — | ⚠️ SCOPE CREEP |
Drift Items: [list specific items to fix]
<host: claude-code> Dispatch using the Agent tool:
Agent tool (general-purpose, model: balanced):
description: "Check alignment: design vs plan"
prompt: |
You are verifying that an implementation plan aligns with its design document.
Read docs/plans/YYYY-MM-DD-<topic>-design.md and docs/plans/YYYY-MM-DD-<feature>.md.
Perform a forward trace (design → plan):
- For each requirement, constraint, and acceptance criterion in the design, find the plan task(s) that implement it.
- If no plan task covers a design item, flag it as MISSING.
Perform a reverse trace (plan → design):
- For each task in the implementation plan, find the design requirement, constraint, or acceptance criterion it satisfies.
- If no design item justifies a plan task, flag it as SCOPE CREEP.
Return exactly this report format:
### Alignment Report
**Status:** PASS | FAIL
**Coverage:**
| Design Requirement | Plan Task(s) | Status |
|---|---|---|
| [requirement] | Task N | ✅ Covered |
| [requirement] | — | ❌ MISSING |
**Scope Check:**
| Plan Task | Design Requirement | Status |
|---|---|---|
| Task N | [requirement] | ✅ Justified |
| Task N | — | ⚠️ SCOPE CREEP |
**Drift Items:** [list specific items to fix]
Set **Status:** to PASS only if every design item is covered and every plan task is justified. Otherwise set it to FAIL.
<host: codex, opencode, cursor, zed-agent> Run the alignment check inline: read both documents, perform the forward and reverse traces using the Comparison Procedure above, and produce the Alignment Report.
<host: hermes-agent>
Dispatch a subagent using delegate_task with a goal describing the alignment verification and both document paths in context. Use the same report format specified above.
Feed drift items back to writing-plans for revision:
Re-run alignment check after revision. Max 2 revision cycles before escalating to the user with a summary of unresolved drift.
After alignment passes, lock the plan's scope so subsequent execution cannot silently rescope. Invoke autodev:scope-lock with the plan path. The scope-lock skill:
**Status:** line with Locked <UTC ISO-8601 timestamp>.bash hooks/scope-lock-apply <plan-path> from the autodev checkout/plugin root. Do not use the Write tool for *.scope-lock paths. The helper computes the manifest's sha256 and writes <plan-path>.scope-lock via shell redirection.chore: lock scope for <feature> (alignment passed)).After the lock is in place, proceed to execution:
subagent-driven-development (which uses Agent Teams)If the plan does NOT contain a ## Scope Manifest section, alignment-check fails before the lock step. The manifest is mandatory for autonomous-pipeline plans (see skills/scope-lock/SKILL.md for the format and skills/writing-plans/SKILL.md for the authoring rules).
Called by:
writing-plans (autonomous mode) — after the plan is written AND adversarial-design-review --phase=plan has passedCalls:
writing-plans (on FAIL) — for plan revisionautodev:scope-lock (on PASS) — to apply the post-alignment lock that prevents silent rescoping during executionsubagent-driven-development (on PASS, autonomous mode) — to begin executiontests/plan-scope-check.sh --plan <plan> (during the manifest trace) — programmatic check that the plan's Scope Manifest is well-formednpx claudepluginhub gocodealone/autonomous-dev-kit --plugin autodevCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.