agentleFS
permit0-aipermit0-ai/permit0/skills/revising-plan-docs/SKILL.md

revising-plan-docs

Skill188 starsChanged 5 months agoApache-2.0View on GitHub

Revise planning documents based on design review feedback. Reads review docs, critically assesses each finding (agree or disagree with reasoning), then edits the plan docs accordingly or explains why no change is needed. Use when the user asks to revise, update, address feedback, or incorporate review comments into plan docs in the permit0 repository.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill after plan reviews have been written to docs/plan-reviews/<feature>/.

    line 15
  2. Very specific:

    Read every file in docs/plan-reviews/<feature>/ in order, starting with 00-summary.md.

    line 27
  3. Very specific:

    If multiple reviewers submitted reviews (different Reviewer: lines), read all of them.

    line 35
  4. Distinctive:

    Never agree just because the reviewer said so: Read the actual code. Reviewers make mistakes -- they may misread a function signature, miss …

    line 60
  5. Distinctive:

    Never disagree just to preserve the plan: If the reviewer found a real bug (e.g.

    line 63
  6. Distinctive:

    Conflicting reviewers require a tiebreak: If reviewer A says the plan is wrong and reviewer B says it is correct, you must verify …

    line 69
  7. Distinctive:

    When multiple review sets exist (e.g.

    line 93
  8. Distinctive:

    Read all review sets before making any changes.

    line 95
  9. Distinctive:

    When reviewers agree on a finding, fix it once.

    line 98
  10. Distinctive:

    When reviewers conflict, state both positions, your independent assessment, and which side you took.

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Revising Plan Docs for permit0

When to Use

Use this skill after plan reviews have been written to docs/plan-reviews/<feature>/. The input is the review docs. The output is direct edits to the plan docs at docs/plans/<feature>/ -- or an explicit explanation of why a finding was rejected.

There is no separate output document. The plan docs themselves are the deliverable.

Workflow

Phase 1: Read the Reviews

Read every file in docs/plan-reviews/<feature>/ in order, starting with 00-summary.md. For each finding, note:

  • The severity (Critical / Major / Minor / Nit).
  • The specific claim the reviewer disputes.
  • The evidence the reviewer cites (file paths, line numbers).
  • The reviewer's recommendation.

If multiple reviewers submitted reviews (different Reviewer: lines), read all of them. Note where reviewers agree and where they conflict.

Phase 2: Critically Assess Each Finding

For every finding, do your own independent analysis. Do NOT blindly accept or reject -- verify against the codebase yourself.

For each finding, reach one of three verdicts:

AGREE -- The reviewer is correct. The plan has a real problem.

  • State what you verified in the code that confirms the finding.
  • Edit the plan doc to fix it.

DISAGREE -- The reviewer is wrong or the finding is not actionable.

  • State what you verified in the code that contradicts the finding.
  • Explain to the user why the plan is correct as-is. Do not edit the plan.

PARTIALLY AGREE -- The reviewer identified a real issue but the recommendation is wrong or disproportionate.

  • State which part is valid and which is not.
  • Edit the plan doc with your alternative fix.

Rules for critical assessment:

  1. Never agree just because the reviewer said so. Read the actual code. Reviewers make mistakes -- they may misread a function signature, miss a serde attribute, or confuse two similar types.
  2. Never disagree just to preserve the plan. If the reviewer found a real bug (e.g. a wire-format mismatch between two components), the plan must be fixed regardless of how much work it creates.
  3. Severity matters. Critical and Major findings must be addressed with code-level verification. Minor and Nit findings can be accepted on face value if they are obviously correct (typos, naming, etc.).
  4. Conflicting reviewers require a tiebreak. If reviewer A says the plan is wrong and reviewer B says it is correct, you must verify independently and pick a side with evidence.

Phase 3: Act on Each Finding

Process findings in severity order (Critical first, Nits last).

For each finding, do one of:

  • Edit the plan doc -- Make the change directly with StrReplace. Keep edits minimal and targeted. Do not rewrite sections unaffected by the finding. Add a **Revised:** <date> line to the metadata header of any doc you modify.
  • Do nothing and explain why -- Tell the user your verdict, what you checked, and why the plan stands. This is a normal outcome -- not every finding warrants a change.

There is no Phase 4. No revision log, no summary doc. The edits (or lack of edits) plus your explanations to the user are the complete output.

Handling Multiple Reviewers

When multiple review sets exist (e.g. from parallel agents):

  1. Read all review sets before making any changes.
  2. Group findings by topic, not by reviewer. Two reviewers may flag the same issue differently.
  3. When reviewers agree on a finding, fix it once.
  4. When reviewers conflict, state both positions, your independent assessment, and which side you took.

What to Change vs What Not to Change

DO change the plan when:

  • A code snippet does not match the current function signature or type definition in the codebase.
  • The plan claims a file is not modified but evidence shows it must be.
  • The plan omits an error case or failure mode that the reviewer identified with concrete evidence.
  • The plan's JSON schema does not match the actual wire format.
  • A test in the testing doc would not compile or tests the wrong thing.

DO NOT change the plan when:

  • The reviewer suggests an alternative design without evidence that the current design is wrong. Design preferences are not defects.
  • The reviewer flags a future concern that the plan explicitly defers to v2.
  • The reviewer found a purely stylistic nit that does not affect correctness.
  • The reviewer disagrees with a documented decision without showing it causes a concrete problem.

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.