plan-generator
Generate structured implementation plans for vertical slices of working software with comprehensive research, codebase context, and validation gates
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate structured implementation plans for vertical slices of working software with comprehensive research, codebase context, and validation gates
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Execute implementation plans by systematically completing each task with verification, bounded retry, and progress tracking
Generate research-backed PR descriptions that maximize reviewability through structured templates covering purpose, rationale, changes, review guidance, and technical details
On-demand multi-model critic consensus for arbitrary concerns
Extract topics, per-topic brief summaries, and topic-grouped action items from a Google Doc meeting notes link. Supports multi-tab Docs (including Gemini auto-generated Notes + Transcript tabs) and any linked Google Sheets. Read-only — never modifies the source document.
Perform thorough, structured reviews of engineering implementation plans with claim verification, research validation, and risk assessment
Multi-model critic consensus PR reviews -- bugs only, false-positive filtered, with structured severity and go/no-go verdicts
| name | plan-generator |
| description | Generate structured implementation plans for vertical slices of working software with comprehensive research, codebase context, and validation gates |
A plan is a structured prompt that supplies an AI coding agent with everything it needs to deliver a vertical slice of working software -- no more, no less.
A plan differs from a generic project plan by adding three AI-critical layers:
RESEARCH PHASE: Complete all investigation before writing. DECISION POINT: Write one sentence: "Approach: [what will be implemented]"
Draft → Verify → Fix → Repeat (max 3 rounds)
Cheap checks:
If ANY fail: fix and re-verify.
WRITE PHASE: Once research AND verification complete, re-read the Plan Template, Plan Size Guidance, and Pre-Write Checklist sections of this skill file before writing. Then use the template. Reference decisions from exploration, not assumptions or alternatives.
Begin with thorough research to gather all necessary context:
**/docs/ directories for relevant documentation./tmp/plan/ for consistency and inspiration, but, follow our concept, standard and templatesrc/templates/, and build task definitions -- editing generated files directly will be overwrittencodebase-explorer skill for systematic research if the repo is unfamiliarUse these tools during the research process to gather context efficiently:
ast_query -- structural AST pattern search. Use to find code patterns to follow (e.g., "find all classes extending BaseModel", "find all route handlers"). Prefer over grep for structural queries.git_blame_context -- structured blame info (who, when, why, co-changed files). Use to understand why existing code exists before planning changes around it.git_diff_summary -- structured diff summary with file categorization and counts. Use to understand recent changes to relevant modules.test_run_parsed -- run tests with structured pass/fail results. Use to verify the baseline test suite passes before planning.stack_trace_resolve -- resolve stack traces to actual source file:line references.gh CLI / GitHub API -- use gh api and gh search for repo configuration state (branch protection, secrets, app installations). Verify commands work before including them in plans.Use the following structure for every plan:
# Plan: <title>
> Ingest the information from this file, implement the Low-Level Tasks, and generate the code that will satisfy the High and Mid-Level Objectives.
## High-Level Objective
- [Goal]
## Mid-Level Objective
- [Measurable steps toward the goal]
## Implementation Notes
- [Technical details, dependencies, coding standards]
## Context
### Beginning context
- [Files that exist at start]
### Ending context
- [Files that will exist at end]
## Low-Level Tasks
> Ordered from start to finish
1. [Task description]
\```
UPDATE: [file path]
FROM:
[exact lines being replaced]
TO:
[exact replacement lines]
\```
\```
CREATE: [file path]
[Exported signatures with exact types]
[Key algorithmic decisions the implementer cannot infer from context]
[What to import and from where]
DO NOT write the implementation -- that is the implementer's job.
\```
## Validation Gates
- [Completion criteria]
## Verification Notes
[Claims verified by multi-model consensus. Revisions made: ...]
[If no revisions needed: "All claims verified."]
## Rules and requirements
- ALWAYS update the source plan after each task and keep our source-of-truth up-to-date
- MAINTAINABILITY above all else
- ALWAYS follow KISS (keep it simple stupid), AVOID over engineering
- ALWAYS use `dev` or `task` (go-task) commands over manual commands, if needed, prompt the user for clarification on building new commands
Before outputting the plan, extract verifiable claims and validate them.
Claims to extract:
Invoke multi-model critic consensus to verify claims using the critique infrastructure:
~/.agents/skills/critique/critics.yml to get the available critic models~/.agents/skills/critique/critic-prompt.md to get the shared evaluation promptspawn call with tasks array -- one task per critic model.
Each task's task field = the critic prompt + claims to verify + plan context.
Each task's model field = the model identifier from critics.yml.If the critique infrastructure is unavailable (critics.yml missing or unreadable), perform inline verification and note the limitation in Verification Notes.
When performing inline verification (consensus unavailable):
ls or findAny claim flagged INCORRECT: revise the plan before output. Log the revision in the "Verification Notes" section at the end of the plan.
A plan should be implementable in a single session. If it can't be, split it into a plan stack -- multiple independent plans in a directory, each self-contained.
Keep plans concise but precise:
Task block rules:
Anti-patterns -- NEVER do these:
CRITICAL: Plan stacks are a last resort. Always prefer a single plan, if a stack is needed, STOP, and confirm with the user before proceeding.
HARD LIMITS:
If exceeded: prefer consolidation first. If still over limits, create plan stack per existing protocol (STOP, confirm with user, split into multiple independent plans).
STOP. Before writing the plan, complete every item. Do NOT skip this.
./tmp/plan/ and compare its structure against the template -- match its level of detail, not exceed itBefore saving the plan file, scan every task block:
awk '/^```/{if(open){n=NR-start-1; if(n>25) printf "REVIEW lines %d-%d (%d content lines)\\n",start,NR,n; open=0}else{open=1; start=NR}} END{if(open){print "ERROR: unclosed code block" > "/dev/stderr"; exit 1}}' <plan-file>
Review every hit. Split the task or move inferable detail to Implementation Notes; no task block may exceed the 35-line hard limit../tmp/plan/<feature_name>-plan.mdAfter completing initial research, present a summary: scope, patterns to follow, approach, and validation criteria.
If research is unambiguous: state what you found and proceed directly to plan creation.
If scope is abstract or ambiguous: present a concrete architectural strawman early to force clarification -- don't wait until the full plan is drafted. STOP and wait for user confirmation before proceeding.
Plans always produce working software. Research informs Implementation Notes; Low-Level Tasks describe code to write (CREATE/UPDATE files), never report sections.