agentleFS
kaiohenricunhakaiohenricunha/dotbabel/skills/plan-grader/SKILL.md

plan-grader

Skill0 starsChanged 2 months agoMITView on GitHub

Grade implementation plans on a 0-10 scale without mutating the workspace. Accepts plan files, quoted inline plans, or best-effort latest-plan discovery for Claude, Codex, Copilot, and Gemini.

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 15 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    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 when the user asks to grade, score, review, evaluate, improve, or calibrate a plan, especially plans produced by Claude Code, Codex, …

    line 26
  2. Distinctive:

    If the input is ambiguous, ask for the plan path or paste.

    line 42
  3. Distinctive:

    Before grading, read these references:

    line 46
  4. Distinctive:

    If discovery returns multiple candidates, present the top three most recent candidate paths and ask the user to choose.

    line 68
  5. Very specific:

    Treat files mentioned by the plan as intent evidence, especially @roadmap.md, @spec.md, file:docs/foo.md, or explicit local paths.

    line 73
  6. Distinctive:

    If a referenced intent file is unreadable, record the missing file and lower confidence.

    line 76
  7. Distinctive:

    If a readable intent file contradicts the plan, apply the relevant rubric cap.

    line 77
  8. Distinctive:

    Read project-level AGENTS.md first as the cross-agent baseline when present.

    line 80
  9. Distinctive:

    Consider user/global harness files only as preference context.

    line 84
  10. Distinctive:

    Read at least the two calibration anchors closest to the expected score band.

    line 89
  11. Distinctive:

    Use the anchors to normalize severity and avoid over-rewarding format polish.

    line 90
  12. Distinctive:

    Default: concise human-readable report with score, verdict, dimension table, caps, blocking gaps, non-blocking polish, and a paste-back …

    line 99
  13. Distinctive:

    Do not mutate files or implement the plan being graded.

    line 160
  14. Distinctive:

    Do not score from vibes. Cite concrete evidence from the plan, intent files, harness files, repo paths, tests, CI, or explicit missing …

    line 161
  15. Very specific:

    Keep all weights from references/rubric.md exactly.

    line 165
  16. Distinctive:

    If a plan references images or diagrams, do not OCR them.

    line 168
  17. Distinctive:

    If a plan would touch protected paths, verify it includes the required Spec ID or No-spec rationale in the PR plan.

    line 169
  18. Distinctive:

    Always include a paste-back prompt unless the user explicitly asks for only the numeric grade.

    line 171

≈ “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

Grade an implementation plan on a 0-10 scale using the plan-grader rubric. This skill is content-only: inspect, score, explain, and produce a paste-back prompt. Do not edit files, run formatters, commit changes, or implement the plan being graded.

Use when the user asks to grade, score, review, evaluate, improve, or calibrate a plan, especially plans produced by Claude Code, Codex, GitHub Copilot, Gemini CLI, or similar agentic CLIs. Also trigger directly via /plan-grader.

Inputs

$ARGUMENTS may be any of:

  • <path> or file:<path>: read the plan from a local Markdown/text file.
  • "..." or text:"...": grade the quoted inline plan text exactly as provided.
  • latest claude plan, latest codex plan, latest copilot plan, or latest gemini plan: discover candidate plan/session files using references/plan-discovery.md.
  • Optional --json: emit only the structured JSON object described below.
  • Optional --blind: strip source-agent attribution before scoring. Keep explicit harness context that affects safety, validation, or repo fit.

If the input is ambiguous, ask for the plan path or paste. Do not guess a plan from unrelated chat.

Reference Order

Before grading, read these references:

  1. references/rubric.md
  2. references/context-resolution.md
  3. references/plan-discovery.md when discovery, imports, symlinks, oversized content, or transcript extraction are involved
  4. references/agent-formats.md when the source agent is known or a paste-back prompt is needed
  5. Relevant examples in references/calibration-plans/

Workflow

  1. Parse flags and input mode.
    • --json changes output format only.
    • --blind removes agent identity from the plan before scoring.
    • file: forces file mode.
    • text: forces inline text mode.
    • Top-level quoted text is inline plan text, not a path.
  2. Resolve the plan text.
    • For file inputs, read the target file.
    • For inline text, use the supplied text verbatim.
    • For latest <agent> plan, follow references/plan-discovery.md.
    • If discovery returns multiple candidates, present the top three most recent candidate paths and ask the user to choose.
    • Refuse oversized inputs that cannot fit the context budget. Do not silently truncate.
  3. Resolve intent sources.
    • Treat files mentioned by the plan as intent evidence, especially @roadmap.md, @spec.md, file:docs/foo.md, or explicit local paths.
    • Resolve transitive @ imports to the depth documented in references/plan-discovery.md.
    • If a referenced intent file is unreadable, record the missing file and lower confidence.
    • If a readable intent file contradicts the plan, apply the relevant rubric cap.
  4. Resolve harness context.
    • Read project-level AGENTS.md first as the cross-agent baseline when present.
    • Layer agent-specific project overrides: CLAUDE.md, GEMINI.md, .github/copilot-instructions.md, .github/instructions/*.instructions.md, and AGENTS.override.md.
    • Consider user/global harness files only as preference context. They cannot weaken repo-local safety, validation, protected-path, release, or CI rules.
    • Detect whether the plan violates configured harnesses or protected gates.
  5. Calibrate before scoring.
    • Read at least the two calibration anchors closest to the expected score band.
    • Use the anchors to normalize severity and avoid over-rewarding format polish.
  6. Score the plan.
    • Score each rubric dimension from 0 to 10.
    • Compute the weighted score using rubric version 2.0.0.
    • Apply caps, then auto-reject rules, then floor at 0, then round to one decimal.
    • Record confidence as high, medium, or low.
  7. Produce output.
    • Default: concise human-readable report with score, verdict, dimension table, caps, blocking gaps, non-blocking polish, and a paste-back prompt.
    • --json: emit only valid JSON with exactly these top-level keys: rubric_version, score, verdict, confidence, dimensions, caps_fired, blocking_gaps, non_blocking, paste_back_prompt.

Human Output Shape

Plan grade: X.X / 10
Verdict: <approve | approve with minor changes | revise before execution | reject>
Confidence: <high | medium | low>

<One short paragraph explaining the main reason for the grade.>

| Dimension | Weight | Score | Reasoning              |
| --------- | -----: | ----: | ---------------------- |
| ...       |   0.XX |  N/10 | Evidence-backed reason |

Caps fired:

- <cap id or "None">

Blocking gaps:

1. <gap>

Non-blocking improvements:

- <improvement>

Paste-back prompt:
<agent-aware prompt from references/agent-formats.md>

JSON Output Shape

{
  "rubric_version": "2.0.0",
  "score": 8.4,
  "verdict": "approve with minor changes",
  "confidence": "high",
  "dimensions": [
    {
      "name": "Goal and scope clarity",
      "weight": 0.15,
      "score": 9,
      "reasoning": "The plan defines the output contract and non-goals.",
      "evidence": ["plan.md:12"]
    }
  ],
  "caps_fired": [],
  "blocking_gaps": [],
  "non_blocking": ["Add one explicit smoke test for malformed input."],
  "paste_back_prompt": "Revise the plan to add one malformed-input smoke test..."
}

Rules

  • Do not mutate files or implement the plan being graded.
  • Do not score from vibes. Cite concrete evidence from the plan, intent files, harness files, repo paths, tests, CI, or explicit missing evidence.
  • Mention when the grade is based on incomplete transcript extraction rather than a real plan file.
  • Auto-reject dangerous caps even when the weighted score is high.
  • Keep all weights from references/rubric.md exactly. Do not silently reweight.
  • For --blind, do not penalize or reward the plan because it came from Claude, Codex, Copilot, or Gemini. Grade the content and repo fit.
  • If a plan references images or diagrams, do not OCR them. Mark that portion partially ungradable.
  • If a plan would touch protected paths, verify it includes the required Spec ID or No-spec rationale in the PR plan.
  • Always include a paste-back prompt unless the user explicitly asks for only the numeric grade.

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.