From dx-core
Cross-check the implementation plan against requirements. Verifies every requirement has a step, no unrequested features snuck in, and dependencies flow correctly. Use after /dx-plan and before /dx-step.
npx claudepluginhub easingthemes/dx-aem-flow --plugin dx-coreThis skill is limited to using the following tools:
You cross-check implement.md against explain.md to verify the plan is complete, correct, and ready for execution.
Interactively stress-test an implementation plan by grilling the user on decisions, edge cases, and assumptions to find issues, inconsistencies, and gaps before implementation begins.
Validates implementation plans against requirements and design docs by mapping acceptance criteria coverage, checking architectural alignment, and flagging ambiguities or gaps. Use after plan creation.
Validates implementation plans against codebase reality, architecture, quality, risks, and conventions before execution using four parallel specialized reviewers.
Share bugs, ideas, or general feedback.
You cross-check implement.md against explain.md to verify the plan is complete, correct, and ready for execution.
Use ultrathink for this skill — careful cross-referencing benefits from deep reasoning.
SPEC_DIR=$(bash .ai/lib/dx-common.sh find-spec-dir $ARGUMENTS)
Read from $SPEC_DIR:
explain.md (required)implement.md (required)research.md (if exists — for file existence verification)If either explain.md or implement.md is missing, print which is missing and STOP.
Run these checks sequentially using extended thinking:
For each numbered requirement in explain.md, find at least one step in implement.md that addresses it.
Report:
For each step in implement.md, verify it maps to at least one requirement in explain.md.
Report:
Verify steps are in valid execution order:
Report:
If research.md is available, verify files referenced in implement.md actually exist (for "Modify" actions) or that their parent directories exist (for "Create" actions).
Report:
path/to/file — not found in codebaseVerify the testing plan covers the key changes:
**Test:** has a valid test command or approachReport:
If research.md has an "Existing Implementation Check" section, cross-reference it against implement.md:
If research.md doesn't have the section, scan implement.md for "Create new" steps and verify no existing equivalent was missed by checking the codebase (quick Grep for similar names/patterns).
Report:
<thing> but existing <path> already provides this functionality## Plan Validation: <Title>
| Check | Result | Details |
|-------|--------|---------|
| Requirement Coverage | ✅/❌ | <N>/<total> covered |
| No Scope Creep | ✅/⚠️ | <N> steps without requirement mapping |
| Dependency Order | ✅/❌ | <details if issues> |
| File Existence | ✅/❌ | <N> files verified |
| Testing Coverage | ✅/⚠️ | <details> |
| Reuse Check | ✅/❌/⚠️ | <N> reuse opportunities verified |
**Overall: PASS / FAIL / PASS WITH WARNINGS**
<If FAIL — list specific issues that must be fixed>
<If PASS WITH WARNINGS — list items to review but not blocking>
<If PASS — "Plan is ready for execution.">
### Next steps:
<If PASS:>
- `/dx-step` — execute first step
- `/dx-step-all` — execute all steps autonomously
<If FAIL:>
- Fix issues in implement.md and re-run `/dx-plan-validate`
/dx-plan-validate 2416553 — Cross-checks implement.md against explain.md for story #2416553. Reports that all 5 requirements are covered, no scope creep detected, dependency order is valid, and test coverage is adequate. Verdict: PASS.
/dx-plan-validate (no argument) — Uses the most recent spec directory. Finds that Requirement 3 has no corresponding step in implement.md and Step 7 references a file that doesn't exist. Verdict: FAIL with specific issues listed.
/dx-plan-validate 2416553 (after plan-resolve) — Re-validates the updated plan. Confirms previously flagged risks are now resolved, all requirements are covered, and the reuse check passes. Verdict: PASS.
"explain.md or implement.md not found"
Cause: The required spec files haven't been generated yet.
Fix: Run /dx-req <id> and /dx-plan <id> first to generate both files.
False "scope creep" warnings on infrastructure steps Cause: Steps like "set up test fixtures" or "update build config" don't map directly to a numbered requirement. Fix: These are flagged as warnings, not failures. Review them — infrastructure steps are legitimate and don't block execution.
Reuse check flags a "create new" step incorrectly Cause: The existing utility found by the check has a similar name but different functionality. Fix: Review the flagged step and the existing code. If the existing code doesn't cover the need, proceed — the flag is advisory.