agentleFS
lastxuanainlastxuanain/ainward-skills/skills/plan-review/SKILL.md

plan-review

Skill5 starsChanged 10 days agoMITView on GitHub

Pre-code alignment: reads codebase, restates root problem & goal, and delivers a complete, self-contained execution plan. Triggers: /plan-review, "plan review", "align requirements", "in-your-own-words", "方案评审", "需求纠偏", "对齐需求", "复述需求".

  • Commits and pushes

53 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use plan-execute, pr-comment and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • longranger2Skill

    plan-execute

    Use when the user says "/plan-execute", "plan execute", "implement plan", or "execute plan" and provides a finalized plan file path to carry out. Claude orchestrates, Codex writes code, Claude reviews, and Codex fixes issues until the quality bar is met.

    Also in 5 projects that use this

  • BenjaminGSkill

    pr-comment

    This skill should be used when reviewing someone else's pull request and you want drafted review comments posted to GitHub — either quality-gate findings (tier-marked) or pr-challenge's reviewer questions (unmarked) — each drafted through humanizer and posted as a standalone inline comment at its file:line, after one confirmation. Triggers on "post these as review comments", "comment the gate findings on the PR", "draft and post my review", "leave review comments", after a quality-gate run or a pr-challenge pass on a PR you're reviewing.

    Also in 3 projects that use this

  • MicrosoftSkill

    spec-review

    Independent, multi-model review of a design or spec **before** any code is written, for the microsoft/winappcli repo. Activate when a contributor asks to "review this spec", "review my design", "review this design doc", "validate this approach", "should we build this", "spec review", "design review", or "feature review". Fans out parallel sub-agents — each doing its OWN research against the real codebase and ecosystem rather than trusting the spec — covering necessity & scope, approach & alternatives, feasibility vs reality, risks & unknowns, DX & user impact, and a different-model-family cross-check. Emits a decision-oriented recommendation (proceed / proceed-with-changes / reconsider) to stdout. This is the PRE-CODE companion to the pr-review skill (which reviews code already written); use spec-review at the design/spec stage, not on an implemented diff. Does NOT write code or edit the spec.

    Also in 3 projects that use this

  • AnthropicSkill

    office-hours

    Set up and run Claude Code office hours, including the calendar event when the champion's own calendar connector allows it. Use when a champion wants a regular time for teammates to bring problems.

    Also in 3 projects that use this

  • Hugging FaceSkill

    simplify

    Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read-only until the complete plan is confirmed: Do not edit code or run mutating commands in the turn that first outputs the complete …

    line 27
  2. Very specific:

    全量改动文件与契约清单 (Complete File & Contract Inventory): every touched file tagged [新增] / [修改] / [删除] (new / modified / deleted) with a file link, …

    line 110

“Common” is measured: kept by at least 6 in 10 of the 46 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Plan Review (编码前本意对焦与完整执行方案收敛)

Align on the real problem, explicit boundaries, and a complete, self-contained execution plan before writing code—grounding every file, contract, step, and verification command in repository reality while converging in 1 turn by default (2 turns max when genuine blocking forks exist), without questionnaire theater or prose fluff.

When to use & pre-code invariants

  • Explicit pre-coding alignment on a vague idea, a noisy bug/chat thread, or an unverified plan / prescribed solution. Never hijack clear, routine coding prompts when not invoked.
  • Read-only until the complete plan is confirmed. Do not edit code or run mutating commands in the turn that first outputs the complete execution plan—including right after the user answers a blocking fork.
    • Single exception: the user explicitly waived confirmation (e.g. "出完计划直接改,不用等我确认", "skip confirmation"), Step 1 found zero blocking forks, and no step is irreversible (data migration/deletion, security or permission change, external publish). Then output the full blueprint and continue straight into Step 3 in the same turn. Otherwise stop at the gate as usual.
  • Deliver the plan in chat. Do not write PLAN*.md files unless the user names a file path. End with one plain-text confirmation line and no sign-off question card.
  • Host plan modes: if the host is in a dedicated plan mode (e.g. Claude Code plan mode), present the blueprint through that mode's own approval step (e.g. ExitPlanMode). That approval counts as confirmation, and the plan file the host writes does not violate the rule above.

Host adaptation

  • ask_question below means the host's single-choice question tool (AskUserQuestion in Claude Code, ask_question in Antigravity). Without one, print the options as a numbered list and wait for a reply. Never add a manual "Other" option when the host adds one natively.
  • Code links follow the host's own convention first (e.g. relative [orderService.ts](src/order/orderService.ts:42) in Claude Code); otherwise [orderService.ts](file:///abs/path/orderService.ts#L42-L58), falling back to plain path/orderService.ts:42-58. Use basenames as link text; no raw full-path walls or symbol dumps.
  • Section headings below are written in Chinese with English glosses; use the user's language for headings and body alike. No hollow praise ("很好的想法").

Workflow

Step 1: Silent Recon, XY Audit & Strict Fork Filter (Read-Only)

  1. Ground every claim in repo reality: read repo rules (CLAUDE.md, AGENTS.md, GEMINI.md, .cursor/rules/**, .agents/rules/**), target modules, shared helpers, direct upstream/downstream callers, companion types/schemas/configs, and actual build/test scripts (package.json, Makefile, pyproject.toml, Cargo.toml, test directories)—spawning a read-only subagent only when a broad unfamiliar subsystem requires it. Never ask the user for facts the repository can answer.
  2. Penetrate XY problems & lock boundaries: separate any user-prescribed mechanism (Y) from the underlying pain/blocker (Problem / X) and the desired observable outcome (Goal), and name explicit Non-Goals so scope never creeps silently.
  3. Strict fork filter (manage by exception):
    • Own secondary choices: decide naming, file layout, repo conventions, and clear-winner design trade-offs yourself, folding them and their safeguards into the plan.
    • Escalate only 1–2 genuine blocking forks (0 in most tasks): ask upfront only when 2+ viable paths materially change user-visible behavior, public contracts, irreversible data/security risk, or the core meaning of an ambiguous prompt, and codebase facts cannot settle it.

Step 2: Convergence & Self-Contained Complete Execution Plan

  • Restate-only exit (only when explicitly asked to clarify/restate without planning yet): output 2–3 plain sentences in your own words (Problem + Goal + any reality/XY note with a file link), then stop.
  • When 1–2 blocking forks exist (2-turn convergence):
    • Turn 1: output 本意还原 (intent playback; 2–3 plain sentences, no parroting) + any 现实纠偏 (reality check with file-link proof), then call ask_question (or the numbered fallback) for only those forks ((Recommended) first with a 1-phrase reason, no strawmen). Do not pre-write a speculative half-plan.
    • Turn 2 (after the answer): output one standalone Complete Execution Blueprint in a single message (folding the settled goal + fork decisions into Element 1 so the message stands on its own after /compact or agent handoff) and stop at the plain-text gate before touching code.
  • The Complete Execution Blueprint (0 forks on Turn 1, or Turn 2 post-fork). Cut prose filler, never cut these 4 elements; keep it compact on 1–2 file tasks and fully itemized on multi-file tasks:

    1. 本意、纠偏与边界 (Intent, Course Correction & Non-Goals): 2–3 plain sentences in your own words stating the root Problem + observable Goal (plus the settled fork decision on Turn 2), explicit Non-Goals (明确不碰的范围), and candid file-linked pushback (错在哪 → 后果 → 更优解 / what is wrong → consequence → better option) whenever a premise conflicts with repo reality or reinvents existing helpers (push back once; respect informed overrides).
    2. 全量改动文件与契约清单 (Complete File & Contract Inventory): every touched file tagged [新增] / [修改] / [删除] (new / modified / deleted) with a file link, its exact responsibility, and key signature/type/schema/state contract changes (covering core logic, callers, configs, and tests). Anti-handwaving #1: no "等相关文件", "按需调整调用方", or path wildcards (src/services/*).
    3. 有序执行步骤与兜底 (Ordered Execution Steps 1..N): dependency-ordered steps. Anti-handwaving #2: every step names concrete contract/state/logic changes and the AI-owned error, edge-case, compatibility, or concurrency safeguards, so execution needs zero guesswork.
    4. 可执行验收方案 (Executable Verification Plan): Anti-handwaving #3: exact copy-pasteable commands verified from repo scripts + observable pass criteria; if no automated test infra exists for that layer, say so explicitly and give the concrete CLI / manual verification path and expected result (no vague "运行相关单测").

    End with one plain-text stop line, e.g. 确认即可按此计划实施,或直接指出微调点。 (translated to the user's language). If the user requests tweaks, output an updated self-contained blueprint and pause again until confirmed.

Step 3: Post-Approval Execution

Once the user confirms the plan (or under the waiver above), execute steps 1..N, run the stated verification plan, and report real results. Never run git commit or git push unless instructed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.