Add reviewing-plans skill + namespace docs/plans by project#448
Add reviewing-plans skill + namespace docs/plans by project#448
Conversation
New skill that verifies implementation plans against the actual codebase before execution. Catches naming convention mismatches, wrong file paths, vague instructions, missing dependencies, and structural issues that cause subagent execution failures. Key features: - 3-Example Rule: every convention claim verified against 3+ codebase examples - 6 review dimensions: pattern alignment, task atomicity, step granularity, dependency ordering, execution risk, completeness - Resolution options: surgical updates to existing plan or versioned plan (-v2) - Structured review report with evidence-based findings Also updates writing-plans and executing-plans to reference reviewing-plans as an optional workflow step between plan creation and execution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughAdds a new "reviewing-plans" skill (detailed workflow to verify implementation plans against the codebase) and integrates it as an optional pre-execution step. Also updates plan save paths to project-scoped folders and adjusts several planning/execution skill docs and README to reference the new step and paths. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
skills/writing-plans/SKILL.md (1)
101-111:⚠️ Potential issue | 🟡 MinorFix multi-line quote formatting for the execution prompt.
The opening quote at Line 101 isn’t closed until Line 111, spanning multiple lines and likely rendering oddly. Prefer removing the quotes or using a blockquote.
Proposed fix
-**"Plan complete and saved to `docs/plans/<filename>.md`.** +**Plan complete and saved to `docs/plans/<filename>.md`.** @@ -**Which approach?"** +**Which approach?**
🤖 Fix all issues with AI agents
In `@skills/reviewing-plans/SKILL.md`:
- Around line 68-73: The markdown fences in skills/reviewing-plans/SKILL.md are
missing language identifiers (triggers MD040); update each fenced code block
(e.g., the block containing "Plan says: Create
`src/services/UserAuth.service.ts`" and the larger "## Plan Review: [Plan Name]"
example) to include an appropriate language tag such as text or markdown (e.g.,
replace ``` with ```text or ```markdown) so linting passes, and apply the same
change to all other affected blocks around lines 177-214.
- Line 151: The prose contains the lowercase proper noun "markdown" in the
sentence fragment "frontmatter should be raw YAML, not wrapped in markdown code
fences"; update that occurrence to "Markdown" (capitalize the M) in SKILL.md so
the proper noun is used consistently in the plan's prose.
All plan-producing skills now save to docs/plans/<project>/ instead of a flat docs/plans/ directory. The agent infers the project name from the topic in kebab-case. Simplifies filenames since the project folder provides context (e.g. -plan.md instead of -feature-name.md). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
After testing, the brainstorming skill ignored the project subdirectory convention and saved to the flat docs/plans/ path. Make the convention harder to miss: promote to bold callout, add concrete examples, and add explicit "Do NOT save directly to docs/plans/" guidance. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add /review-plan command for easy skill invocation. Update reviewing-plans to check for a design doc in the same project folder and cross-reference it when assessing plan completeness. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add reviewing-plans to the workflow (step 4) and skills library. Document the docs/plans/<project>/ directory convention in the introductory narrative. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Motivation
Working as a full-stack engineer with a monorepo-style setup (parent repo with
/frontend-repoand/backend-repounderneath, Claude Code sitting at the parent level), I found that the first pass ofwriting-plansoutput often has issues — especially in larger, more complex codebases. Wrong naming conventions, file paths that don't match the actual project structure, vague task instructions, missing dependencies between tasks.These are small things that slip through the cracks, but they compound during execution. A subagent hits a wrong path, uses the wrong naming form, or has to make a judgment call the plan should have specified — and the "one-shot" execution fails.
My goal is to push AI-driven development toward reliably completing large, complex, long-running projects in one shot. The more time you spend "sharpening the axe" before cutting the tree, the cleaner the execution. Working across backend and frontend projects in a single Claude Code session requires extra diligence, and I found that adding a plan review step before execution did wonders for my own workflow.
Not everyone works this way, but for complex multi-repo or full-stack projects, this step meaningfully reduces execution failures.
What this adds
1. Reviewing-plans skill
A new
reviewing-plansskill that slots optionally betweenwriting-plansandexecuting-plans/subagent-driven-development. It verifies every claim in the plan against the actual codebase before execution begins.The 3-Example Rule
The core mechanism: for every naming convention, file path pattern, or structural claim in the plan, the reviewer must find 3+ existing examples in the codebase that confirm or contradict it. This catches the subtle convention drift that general review misses.
6 Review Dimensions
Design doc cross-referencing
When reviewing a plan, the skill now checks for a design doc in the same project folder. If one exists, it cross-references it when assessing completeness — catching cases where the plan silently dropped or changed requirements from the design.
Resolution Options
After review, the user chooses:
-v2.mdfor significant restructuring2. Namespaced plan directories
I work on many projects simultaneously — multiple Claude Code sessions running at once across different features. The
docs/plans/folder started filling up fast: designs, plans, and reviews all dated and mixed together. The mental load of sifting through a flat directory of interleaved artifacts from different features got old quickly.All plan-producing skills now save artifacts to project subdirectories:
Before:
docs/plans/2025-11-22-opencode-support-design.mdAfter:
docs/plans/opencode-support/2025-11-22-design.md-plan.md,-design.md,-review.md) since the project folder provides context3.
/review-plancommandAdded a
/review-plancommand for easy invocation of the reviewing-plans skill, matching the existing/brainstorm,/write-plan, and/execute-plancommands.4. README updates
docs/plans/<project>/directory conventionIntegration
writing-plansupdated to mention optional review step in execution handoffexecuting-plansupdated to listreviewing-plansas optional workflow skilldocs/plans/updated with namespaced pathsTesting
Reviewing-plans skill (TDD for documentation)
Following the
writing-skillsmethodology (RED-GREEN-REFACTOR):Namespaced plan paths
docs/plans/references — no remaining old flat-path patterns/brainstormend-to-end — identified stale plugin cache issue, synced cache, confirmed convention works/write-plansaves todocs/plans/<project>/YYYY-MM-DD-plan.md/review-plansaves review report alongside plan in same project folder🤖 Generated with Claude Code