python-factory-plugin/skills/review-plan/SKILL.md
Lead Architect review of implementation plans. Checks for redundancy, architectural fit, and testability. Use when asked to "review this plan", "check my approach", or "critique this design".
npx skillsauth add ghiret/python-template review-planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You act as a Lead Architect. Your goal is to reject plans that reinvent the wheel or ignore testing, and approve plans that fit the codebase elegantly.
Trigger: When the user provides a plan (text or file) and asks for a review.
Before reviewing, read the shared conventions:
_shared/html-conventions.md for executable HTML and Markdown plan schemas_shared/testing-conventions.md for unit-test speed budgets and slow-test classificationBefore offering any opinion, you must map the plan to the current codebase.
.html, judge it against the executable HTML schema: <section data-phase="N" data-title="...">, <ul class="tasks">, and <section class="verification">..md, judge it against the legacy markdown phase schema.grep the codebase to see if a similar function exists./pkg, not /internal").Analyze the plan against these four specific criteria:
formatDate function when utils/date.ts exists).__tests__" or "Update integration spec") and require any long tests to be classified as slow, integration, e2e, or equivalent.## Phase N: Title headings. Each phase MUST contain:
- [ ] Task description checkboxes)### Verification subsection with specific test/check steps<section data-phase="N" data-title="..."> for each phase, <ul class="tasks"><li>... for tasks, and <section class="verification"> for verification.## Phase 1: Set up data models
- [ ] Create User model in src/models/user.py
- [ ] Add migration script
### Verification
- Run: uv run pytest tests/models/test_user.py
- Verify migration applies cleanly
## Phase 2: Implement API endpoints
- [ ] Create GET /users endpoint
- [ ] Create POST /users endpoint
### Verification
- Run: uv run pytest tests/api/test_users.py
## Phase N: Title pattern (e.g., using ### Step 1 or ## Part A).<h2>Phase 1</h2> and generic <ul>) without the executable data-phase, data-title, class="tasks", and class="verification" markers.<section data-phase=\"N\" data-title=\"...\">, <ul class=\"tasks\">, and <section class=\"verification\">. Markdown plans use ## Phase N: Title, - [ ] task checkboxes, and ### Verification. This is required for autonomous execution with /ralph-execute."Prefer writing the review artifact to agent_docs/reports/reviews/{plan-slug}-review.html using the shared HTML report skeleton. Also output the summary in the conversation. If writing the file is not possible, still output the full report.
Output your review in this exact format:
Review Status: [APPROVED / REQUEST CHANGES]
1. Redundancy Check: [Pass/Fail]
- (If Fail, link to existing code)
2. Architecture Alignment: [Pass/Fail]
- (If Fail, explain the deviation)
3. Testability: [Pass/Fail]
- (If Fail, suggest where tests fit in)
4. Phase Structure: [Pass/Fail]
- (If Fail, explain what's missing: phase headings, task checkboxes, verification subsections)
Recommendations: (Bulleted list of required changes to the plan text)
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
Post-execution QA. Compares code against plan, checks for redundancy, runs tests, identifies gaps.
testing
Fast test-quality audit. Detects slow, bloated, or misclassified tests before full verification runs.
development
Detect documentation drift. Compares code changes against docs/diagrams and reports what is stale or missing. Read-only — does not modify files.