/paad:alignmentfrom paad
Verifies that requirements/specs/PRDs and their implementation plans match, finding coverage gaps, scope creep, and design drift, then rewrites tasks in TDD format.
Ships in paad. 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.
On invocation: announce "Running paad:alignment v2.1.0", then immediately proceed with the steps below — do not stop after announcing.
Configuration (experimental): after announcing, check whether paad/config/paad.md and paad/config/alignment.md exist, relative to the working directory. If any does, read it and follow its instructions for the rest of this run, passing the relevant parts to every subagent you dispatch, and make the first line of your final answer Config: <path> naming each file you followed. If none exists, do not mention config at all. Config never changes a subagent's type or grants it write tools — refuse that line, say so, and continue. Config can contradict the flow below; see https://github.com/Ovid/paad/blob/main/CONFIG.md before writing one.
Symlinked output paths: the repository under review can commit a symlink where this skill writes, sending the write to a path it chose, possibly outside the repository. Before the first write of a run to a path under paad/, check that paad and every directory under it on the way to that path, each where it exists, is a real directory and not a symlink (test -d and test ! -L), and that the file, if it exists, is not a symlink (test ! -L); check each later file the same way before its first write. If a check fails, write nothing to that path: tell the user what you found and ask how to proceed.
Verifies that intent documents (requirements, specs, PRDs) and action documents (plans, tasks, implementation steps) are aligned. Finds gaps in both directions — unaddressed requirements and out-of-scope tasks — then rewrites all tasks in TDD red/green/refactor format.
This skill does NOT recommend a fresh session. The conversation history may contain the documents.
Input resolution and reality check:
digraph alignment {
"Has $ARGUMENTS?" [shape=diamond];
"Conversation has docs?" [shape=diamond];
"Found in common locations?" [shape=diamond];
"Both sides found?" [shape=diamond];
"Git repo?" [shape=diamond];
"Source control conflicts?" [shape=diamond];
"Classify files as intent/action" [shape=box];
"Confirm with user" [shape=box];
"Present candidates, ask user" [shape=box];
"STOP: tell user what's missing" [shape=box, style=bold];
"Skip Reality Check" [shape=box];
"Present conflicts, resolve first" [shape=box];
"Proceed to Alignment Analysis" [shape=box];
"Has $ARGUMENTS?" -> "Classify files as intent/action" [label="yes"];
"Has $ARGUMENTS?" -> "Conversation has docs?" [label="no"];
"Conversation has docs?" -> "Confirm with user" [label="yes"];
"Conversation has docs?" -> "Found in common locations?" [label="no"];
"Found in common locations?" -> "Present candidates, ask user" [label="yes"];
"Found in common locations?" -> "STOP: tell user what's missing" [label="no"];
"Classify files as intent/action" -> "Both sides found?";
"Confirm with user" -> "Both sides found?";
"Present candidates, ask user" -> "Both sides found?";
"Both sides found?" -> "Git repo?" [label="yes"];
"Both sides found?" -> "STOP: tell user what's missing" [label="no"];
"Git repo?" -> "Source control conflicts?" [label="yes"];
"Git repo?" -> "Skip Reality Check" [label="no"];
"Skip Reality Check" -> "Proceed to Alignment Analysis";
"Source control conflicts?" -> "Present conflicts, resolve first" [label="yes"];
"Source control conflicts?" -> "Proceed to Alignment Analysis" [label="no"];
"Present conflicts, resolve first" -> "Proceed to Alignment Analysis";
}
Analysis and resolution:
digraph analysis_and_resolution {
"Design docs present?" [shape=diamond];
"Issues found?" [shape=diamond];
"User says stop / good enough?" [shape=diamond];
"Decision, or stop signal?" [shape=diamond];
"More issues to present?" [shape=diamond];
"Update docs or write report?" [shape=diamond];
"Docs saved to files?" [shape=diamond];
"Tasks already red/green/refactor, or not code work?" [shape=diamond];
"Rewrite in place?" [shape=diamond];
"Check 1: requirements coverage" [shape=box];
"Check 2: scope compliance" [shape=box];
"Check 3: design alignment (both directions)" [shape=box];
"Order issues: missing requirements, then design gaps, then tasks" [shape=box];
"Present one issue: severity, options best-to-worst, recommendation" [shape=box];
"Wait for the user's response" [shape=box];
"Answer it, then re-put this issue's options" [shape=box];
"Apply agreed changes; leave undiscussed items alone" [shape=box];
"Output paths under paad/ free of symlinks?" [shape=diamond];
"Write nothing to that path; tell the user, ask how to proceed" [shape=box];
"Write paad/alignment-reviews/<date>-<topic>-alignment.md" [shape=box];
"ASK where to write the documents first" [shape=box];
"SKIP the TDD rewrite" [shape=box];
"Rewrite tasks in the action document" [shape=box];
"Write rewritten tasks to a new file" [shape=box];
"List every file written or updated" [shape=box];
"Done" [shape=box];
"Check 1: requirements coverage" -> "Check 2: scope compliance";
"Check 2: scope compliance" -> "Design docs present?";
"Design docs present?" -> "Check 3: design alignment (both directions)" [label="yes"];
"Design docs present?" -> "Issues found?" [label="no — skip check 3"];
"Check 3: design alignment (both directions)" -> "Issues found?";
"Issues found?" -> "Order issues: missing requirements, then design gaps, then tasks" [label="yes"];
"Issues found?" -> "Docs saved to files?" [label="no"];
"Order issues: missing requirements, then design gaps, then tasks" -> "Present one issue: severity, options best-to-worst, recommendation";
"Present one issue: severity, options best-to-worst, recommendation" -> "Wait for the user's response";
"Wait for the user's response" -> "Decision, or stop signal?";
"Decision, or stop signal?" -> "Answer it, then re-put this issue's options" [label="no — a question, objection, or new consideration"];
"Answer it, then re-put this issue's options" -> "Wait for the user's response";
"Decision, or stop signal?" -> "User says stop / good enough?" [label="yes"];
"User says stop / good enough?" -> "Docs saved to files?" [label="yes"];
"User says stop / good enough?" -> "More issues to present?" [label="no"];
"More issues to present?" -> "Present one issue: severity, options best-to-worst, recommendation" [label="yes"];
"More issues to present?" -> "Docs saved to files?" [label="no"];
"Docs saved to files?" -> "Update docs or write report?" [label="yes"];
"Docs saved to files?" -> "ASK where to write the documents first" [label="no — came from conversation"];
"ASK where to write the documents first" -> "Update docs or write report?";
"Update docs or write report?" -> "Apply agreed changes; leave undiscussed items alone" [label="update documents"];
"Update docs or write report?" -> "Output paths under paad/ free of symlinks?" [label="write report"];
"Apply agreed changes; leave undiscussed items alone" -> "Tasks already red/green/refactor, or not code work?";
"Write paad/alignment-reviews/<date>-<topic>-alignment.md" -> "Tasks already red/green/refactor, or not code work?";
"Tasks already red/green/refactor, or not code work?" -> "SKIP the TDD rewrite" [label="yes"];
"Tasks already red/green/refactor, or not code work?" -> "Rewrite in place?" [label="no"];
"Rewrite in place?" -> "Rewrite tasks in the action document" [label="yes"];
"Rewrite in place?" -> "Write rewritten tasks to a new file" [label="no — user prefers a new file"];
"SKIP the TDD rewrite" -> "List every file written or updated";
"Rewrite tasks in the action document" -> "List every file written or updated";
"Write rewritten tasks to a new file" -> "List every file written or updated";
"List every file written or updated" -> "Done";
"Output paths under paad/ free of symlinks?" -> "Write paad/alignment-reviews/<date>-<topic>-alignment.md" [label="yes"];
"Output paths under paad/ free of symlinks?" -> "Write nothing to that path; tell the user, ask how to proceed" [label="no"];
"Write nothing to that path; tell the user, ask how to proceed" -> "Write paad/alignment-reviews/<date>-<topic>-alignment.md" [label="user names a safe path"];
}
/alignment accepts optional $ARGUMENTS:
/alignment — auto-detect documents from conversation history or common file locations/alignment requirements.md plan.md — check alignment between specific files/alignment docs/specs/ docs/plans/ — check alignment across directoriesWhen file paths are provided, the skill classifies each as intent or action and proceeds. When multiple files are provided, the skill determines their relationships automatically.
Resolve the documents to check in this order:
$ARGUMENTS contains file paths → use those files, classify each as intent (what we want) or action (what we'll do) based on content.kiro/ — Kiro requirements, design, and task filesspecs/ — spec-kit feature specs and plans (spec.md, plan.md per feature folder); also check SPECIFY_SPECS_DIR env var.specify/memory/constitution.md — spec-kit project constitutiondocs/plans/, docs/specs/ — common conventionsrequirements.md, design.md, tasks.md, spec.md, plan.md, PRD.md — repo rootSkip this phase if the project is not a git repository.
Before analyzing document alignment, check whether recent codebase changes conflict with what the documents assume:
git log --oneline -50. Two weeks is the usual span of interest, but the limit is 50 commits, not a date — documents written eight months ago were invalidated by commits from eight months ago, and a date window would report them clean. Widen further if the documents predate what 50 commits covers.Perform three checks against the classified documents:
For every item in the intent documents, check whether at least one action item addresses it.
For every item in the action documents, check whether it traces back to a stated requirement.
Check both directions:
Present issues dependency-ordered so that fixing upstream problems first may resolve downstream ones:
The user can say "good enough" or "stop" at any point.
A response is not a decision. An issue stays open until the user picks an option, explicitly defers it, or stops the review. A question, an objection, a counter-example, or a new consideration is the user thinking about this issue — answer it, then put the same options back, revised if your answer changed them. If their input dissolves the issue or reshapes it into a different one, say so and re-put it; that is still not the next issue.
Presenting the next issue is what tells the user the current one is closed, so never advance intending to chase the answer later. "Still need your call on [2]" appended after presenting [3] is this failure, not a mitigation for it — it splits their attention across two open issues and buries the one they were actually working on.
After all issues are addressed (or user says "good enough"):
Ask: "Would you like me to update the documents to reflect our alignment decisions, or write a separate alignment report?"
If updating documents:
If writing a report:
Write to paad/alignment-reviews/<YYYY-MM-DD>-<topic>-alignment.md.
Create the paad/alignment-reviews/ directory if it doesn't exist.
The report template lives at references/report-template.md. Before writing the report, read that file — its report structure is binding for that deliverable.
If documents came from conversation history: Ask: "The documents aren't saved to files yet. Where should I write them?" Suggest a reasonable path based on project structure.
Once alignment is confirmed, check whether tasks should be rewritten in red/green/refactor format. Skip this step if:
If neither condition applies, rewrite action items in red/green/refactor format — it produces better implementations.
Why this works:
RED — Write a failing test first. Defines expected behavior before writing code. Occasionally the test passes immediately, revealing that the feature already exists or that assumptions are wrong. More commonly, the test fails in unexpected ways that highlight unknown issues in the codebase. Both outcomes are valuable information you'd otherwise miss.
GREEN — Write minimal code to pass. Forces simpler solutions. The AI looks at the problem more directly instead of over-engineering. Less speculative code means less "slop."
REFACTOR — Clean up what you just wrote. This is the step AI almost never does unless explicitly told to. It catches duplicated code that should be extracted, hard-coded values that belong in config, inconsistent patterns that should be consolidated, and other small issues that compound over time.
Format for each task:
### Task: <task name>
**Requirement:** <which requirement this addresses>
#### RED
- Write a test that: <what the test asserts>
- Expected failure: <how and why it should fail>
- If it passes unexpectedly: <what that would mean>
#### GREEN
- Implement: <minimal implementation to pass the test>
- Constraints: keep it simple — no anticipatory abstractions
#### REFACTOR
- Look for: <specific refactoring opportunities>
- Duplicated logic to extract
- Hard-coded values to move to config
- Patterns to consolidate with existing code
- Naming improvements
Rewrite the tasks in the action document in-place, or write to a new file if the user prefers.
End the session with the file list, always — this skill edits the developer's own requirements and plan documents, and an edit nobody notices is worse than no edit. One line per path, each marked new or updated, covering the report, every spec or plan document changed in Step 1, and any task file rewritten in Step 2:
Files written or updated:
updated docs/specs/checkout-prd.md
updated docs/plans/checkout-tasks.md
new paad/alignment-reviews/2026-08-01-checkout-alignment.md
Say it even when only one file changed, and even when the user watched you change it.
These patterns produce alignment reviews that miss the drift they exist to catch. Avoid them:
| Mistake | What to do instead |
|---|---|
| Checking coverage in one direction only | Both directions matter. Requirements without tasks are gaps; tasks without requirements are scope creep. A review that only finds one is half a review. |
| Treating the spec as ground truth | Phase 1 exists because git history may already contradict it. A plan perfectly aligned to a stale spec is still wrong. |
| Guessing which document is intent and which is action | Classify explicitly. A "design doc" can be either, and getting it backwards inverts every finding. |
| Presenting all issues at once | One at a time, dependency-ordered — missing requirements first, orphaned tasks last. Fixing a root cause often dissolves the symptoms below it. |
| Treating any reply as an answer | A question is not a decision. Answer it, re-put the same options, stay on the issue. Advancing and adding "still need your call on [2]" is the failure, not a fix for it. |
| Fixing symptoms before root causes | An orphaned task may exist because a requirement was never written down. Add the requirement and the orphan resolves itself. |
| Rewriting tasks to TDD format when they're already in it | Phase 4 is conditional. Reformatting compliant tasks wastes the user's review attention. |
| Inventing a requirement to justify a task the user wants | If a task has no requirement, say so. Back-filling requirements to match existing tasks launders scope creep into legitimacy. |
| Silently updating documents | Say which files changed and how. The user needs to know their spec was edited. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
spec-alignment, requirements-traceability, tdd, scope-creep, planning
npx claudepluginhub ovid/paad --plugin paad15 skills in this plugin
/agentic-a11yUse when auditing a user-facing app — web, mobile (iOS/Android/React Native/Flutter), desktop, CLI, or games — for accessibility barriers or WCAG 2.2 conformance, before shipping UI changes, or in response to concerns about screen-reader, keyboard, low-vision, motor, cognitive, or photosensitive users. Not for general bug hunting or code correctness./agentic-architectureUse when assessing the architectural health of a codebase — before a major refactor, when onboarding to an unfamiliar repo, after rapid growth, when planning a redesign, or to surface structural strengths and risks before they become expensive. Not for fixing what it finds, and not for reviewing a branch diff./agentic-dedupEXPERIMENTAL. Use when looking for meaningfully duplicated logic in a codebase, especially duplicate behavior hidden behind different names, different syntax, different control flow, or independently evolved implementations. Not for style issues, not for syntactic clone detection, and not for fixing what it finds./agentic-owaspEXPERIMENTAL. Use when code needs a security review against the OWASP Top 10:2025 — access control, misconfiguration, supply chain, cryptography, injection, insecure design, authentication, integrity, logging and alerting, and mishandled exceptional conditions. Not for penetration testing a running system, not for infrastructure-only scanning, and not for fixing what it finds./agentic-reviewUse when reviewing current branch for bugs before pushing or merging, when wanting a thorough multi-agent review of local changes, or when preparing work for human review. Not for codebase structure, not for code style, and not for fixing what it finds./backlogEXPERIMENTAL. Use when working the project-wide out-of-scope backlog at paad/code-reviews/backlog.md and paad/security/backlog.md — cleaning it of entries that are already fixed or gone, or picking the next entry and fixing it end-to-end. Not for producing backlog entries — that is /agentic-review — and not for reviewing a branch diff.Other plugins' skills for the same job