agentleFS
ndisisndndisisnd/msg/.claude/skills/plan-review/SKILL.md

plan-review

Skill6 starsChanged 5 months agoMITView on GitHub

Staff PM contract certifier. Reads an existing PRD and runs a fixed seven-check certification — each check tied to a named downstream consumer (regression authoring, pre-merge's PRD-consistency gate, the safety pauses, eng --build's row/ticket reads). Product tune (--product) runs checks 1/2/3/6; eng tune (--eng) runs 2/4/5/6/7. Auto-selects the tune type from PRD content (no ask), auto-fixes every Critical and Major with a compact terminal table, asks once about Minors, and pauses only for a product-decision finding. Each auto-fixed Critical/Major writes a category-tagged learning to devkit/AHA.md so the next plan-pm draft self-heals. Applies all fixes directly to the PRD file, and logs its findings to one growing report per PRD at reports/review-prd-[n]-[slug].md.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use spec-review, design-review and 9 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.
  • 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

  • AICreator-WindSkill

    design-review

    编码设计师工具。设计审计和修复。

    Also in 3 projects that use this

  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 4 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 9 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    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 25 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:

    Never interview the user; a fix that needs a product decision is escalated as one batched pause, never a conversation.

    line 41
  2. Very specific:

    Follow refs/protocol-review.md end-to-end — Steps 1–3 (resolve + tune-select + digest read → certification → auto-fix / self-heal / stamp / …

    line 76

“Common” is measured: kept by at least 6 in 10 of the 25 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

Usage

Invoke: /plan-review [prd-path] [--product | --eng]

  • Slash command: /plan-review
  • Natural language: "tune the PRD", "certify the PRD", "run the contract certifier", "check the PRD before plan-em"
  • Context: a path to an existing PRD .md file, or invocation immediately after plan-pm or plan-em saved one

Flags: --product (product tune) · --eng (eng tune) · neither → auto-selected in Step 1. refs/certification.md owns the checks, which tune runs which, the severity rubric, and the findings-table schema.

Path resolution and validation belong to script-cert-preflight.sh (Step 1) — this skill never re-derives them.

Posture

A certifier, not an adversarial reviewer: run the tune's check subset and nothing else — no check without a consumer. Never interview the user; a fix that needs a product decision is escalated as one batched pause, never a conversation.

Inputs

NameFormatRequiredSource
PRD file path.md file path matching features/prd-*/prd-*.mdYes (asked if missing)User message, directory path, or description
Tune type flag--product or --engNo — auto-selected if missing (never asked)User message at invocation, or forwarded by plan-em
devkit/AHA.mdProject learning logNo — self-healing writeback skipped if absentRead + appended in Steps 1/3 if present
devkit/OPEN-QUESTIONS.mdAmbiguity logNo — deferred-decision log skipped if absentAppended in Step 3 if present
devkit/PLATFORMS.mdPer-platform tolerance profilesNo — check 6's bucket-coverage facet is skipped if absentRead by script-cert-mech.py (eng tune)

Outputs

NameFormatDestination
Selected tune typeTune type: Product or Tune type: Eng inlineEnd of Step 1
Certification findingsFindings-table rows (refs/certification.md)<prd-dir>/reports/review-prd-[n]-[slug].md — one growing table; a pre-v5.4 PRD keeps its §7 Plan review findings section instead
Auto-fix terminal table# | Sev | Found | Fixed (refs/certification.md)Inline after fixes (Step 3)
Self-healing learningsCategory-tagged [tune:<category>] entriesAppended to devkit/AHA.md (Step 3), one per auto-fixed Critical/Major
Recurrence protocol-repair flagInline warning when a category recurs across ≥3 runsInline (Step 3)
Open questions tableNormalized to # | Question | Answer | StatusRESOLVED_PATH Open questions section (edited in place)
Revised PRDAll Critical/Major (and selected Minor) fixes appliedRESOLVED_PATH (edited in place)
Frontmatter stampreviewed: yes (product-tuned: / eng-tuned: pair on a pre-v5.4 PRD)RESOLVED_PATH frontmatter

The stamp is the gate, the report is the evidence. reviewed: yes in the PRD's frontmatter is what script-cert-status.sh and plan-em's preconditions read. The report explains why the stamp is what it is; it never gates anything on its own. The findings report is the only file this skill creates, and script-ledger.py creates it (refs/protocol-review.md).

Run output

Closing message (both tune types, every outcome): end the run with the closing message per ../shared/refs/closing-message.md — the last chat output, after the certification verdict / auto-fix table.

Harness incidents (both tune types): log unexpected script failures, tool errors, retries, and missed writes to devkit/DOCTOR.md per ../shared/refs/doctor-logging.md — logging never changes what the run does next.

Step-by-step protocol

Follow refs/protocol-review.md end-to-end — Steps 1–3 (resolve + tune-select + digest read → certification → auto-fix / self-heal / stamp / recommend). It owns the steps, their order, the script calls, and the only hard gate (the product-decision pause).

References

  • refs/protocol-review.md — the three-step protocol; followed from § Step-by-step protocol
  • refs/certification.md — the seven checks, consumers, severity rubric, findings-table schema, the auto-fix terminal table, and the self-healing AHA loop. The whole certifier definition.
  • refs/template-review-report.md — the external findings report: where it lives, its frontmatter and column contract, the status-recomputation rule, and how it differs from eng's review-prd-<N>-<K>.json build evidence.
  • .claude/scripts/script-cert-mech.py — checks 4, 5 and 6's structure, mechanised.
  • .claude/scripts/script-ledger.py — the findings ledger: pick the home, locate/create, dedup, monotonic #, clean row.
  • .claude/scripts/script-aha.sh · .claude/scripts/script-openq.sh — the shared devkit writers.

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.