agentleFS
slowdinislowdini/slow-powers/skills/hardening-plans/SKILL.md

hardening-plans

Skill2 starsChanged 51 days agoMITView on GitHub

Use right after you've drafted or revised an implementation plan and before you present it or start coding — a fresh-eyes review that catches placeholders, hallucinated file references, irrelevant steps, coverage gaps, inconsistent names, and structural drift before the user has to

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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:

    Spec coverage: Every requirement in the request maps to at least one task.

    line 34
  2. Distinctive:

    No placeholders: Search the draft for "TBD", "TODO", "later", "if needed", "appropriate error handling", "handle edge cases", "etc." Each …

    line 37
  3. Very specific:

    When the plan is approved, the next move depends on what kind of work the plan describes.

    line 45
  4. Distinctive:

    If you hit a Red Flag: stop and fix it before the plan leaves your hands.

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Harden a drafted plan

A drafted plan is a hypothesis, not a deliverable. This skill is the review gate between having written a plan and handing it off — to the user for approval, or to yourself for implementation. Read your own draft as if someone else wrote it, and fix what they'd otherwise have to catch.

Trust your plan mode to produce the plan and to scope its tasks at the right altitude. This skill does not re-plan — it makes sure you don't hand over a plan the reader has to debug.

This skill applies once a plan draft exists. It does not push you into planning when the user wants direct action.


When to use

  • You've drafted a plan in a harness plan mode and are about to present it for review.
  • You've written a task breakdown or design doc and are about to hand it off or start coding.
  • You're revising an existing plan file (implementation.md, implementation_plan.md, task.md, or equivalent) before acting on it.

When not to use

  • The user asked to "just build", "go fix", or "implement" something — trust the intent.
  • You're investigating, reading code, or gathering context — there's no draft yet.
  • The change is mechanical (typo, rename, single-line config tweak).

The fresh-eyes review

Before the plan leaves your hands, re-read the whole draft once, top to bottom, as a skeptical reviewer who will have to execute it. Check each item below and fix findings inline — no second pass, fix and move on. The bar: the user should never be the one to discover a problem you could have caught.

  • Spec coverage. Every requirement in the request maps to at least one task. List any gaps and add tasks for them. A plan that silently drops a requirement is worse than one that flags it open.
  • No hallucinations. Every file the plan references must actually exist (for files it modifies) or have a real, named home (for files it creates) — verify, don't assume. If a task says "update src/auth/session.ts", confirm that path is real before the reader finds out it isn't. This is the most important check: a plan built on a file that isn't there wastes the reader's time and burns trust.
  • Every step earns its place. Each step must be a real, relevant part of accomplishing the plan's goal. Cut steps that are invented, vacuous, restate the obvious, or belong to some other task. If you can't say what a step contributes to the goal, it doesn't belong in the plan.
  • No placeholders. Search the draft for "TBD", "TODO", "later", "if needed", "appropriate error handling", "handle edge cases", "etc." Each one defers a decision to coding time, where it gets made worse and under pressure. Decide it now.
  • Internal consistency. A function clearLayers() in one task and clearFullLayers() in another is a bug, not a typo. Names, signatures, and data shapes must agree across tasks. Never back-reference ("similar to Task 3") — the reader may read tasks out of order; restate the relevant detail.
  • Structural coherence. Each file the plan touches should have one clear responsibility, and files that change together should live together. In an existing codebase, follow established patterns — don't let the plan unilaterally restructure.

Choose the next step

When the plan is approved, the next move depends on what kind of work the plan describes. Route by the first branch that matches — then close your hand-off by naming the required next skill verbatim, with its slow-powers: identifier. Telling the reader to "work on a branch" or "write the tests first" in your own words is not the hand-off; the named skill is. State it even on a cold draft where nothing pushed back — the named hand-off is part of the deliverable, not a rebuttal you only produce when someone argued against it.

flowchart TD
    start([Plan approved]) --> functional{Functional code change?<br/>adds or changes runtime behavior}
    functional -->|yes| tdd[REQUIRED NEXT:<br/>slow-powers:working-with-tdd]
    functional -->|no| nonmech{Non-mechanical &amp; non-functional?<br/>refactor, file move, docs/skill rewrite}
    nonmech -->|yes| isolation[REQUIRED NEXT:<br/>slow-powers:working-in-isolation]
    nonmech -->|no| none[No required skill —<br/>follow your instincts]
  • Functional code change — adds or changes runtime behavior.

    REQUIRED NEXT SKILL: You must complete slow-powers:working-with-tdd next, for the implementation phase. The plan should carry a tests section so the reader can see what will be verified, but when tests get written is implementer discipline TDD owns at execution time — not plan structure. (TDD in turn requires slow-powers:working-in-isolation, so isolation still happens on this path.)

  • Non-mechanical, non-functional change — a structural code change (refactor, file move), a docs or skill change, or any other substantive update that doesn't alter runtime behavior.

    REQUIRED NEXT SKILL: You must complete slow-powers:working-in-isolation next, before you start. TDD has no green to chase here, but the work still collides with other branches if it isn't isolated.

  • Informational or trivial/mechanical — the plan is to research, run commands, or make a trivial/mechanical fix (merge-conflict cleanup, test fixups, typos). No required next skill; follow your instincts.

Red flags — stop and fix

  • The plan references a file you never confirmed exists.
  • A step doesn't map to the plan's goal — you can't say what it contributes.
  • The plan contains "TBD", "TODO", "later", "if needed", "appropriate", or "etc."
  • The same thing is named two different ways across tasks.
  • You wrote "similar to Task N" instead of restating the content.
  • TDD doesn't fit the work, so you're about to skip straight to coding with no skill at all — non-functional work still routes to slow-powers:working-in-isolation; only the informational/trivial branch frees you.
  • Your plan closes with isolation or testing advice in your own words but never names the required next skill — paraphrasing the practice isn't the hand-off; name slow-powers:working-in-isolation (or slow-powers:working-with-tdd).

If you hit a Red Flag: stop and fix it before the plan leaves your hands. Approval comes from a plan that holds up to scrutiny, not from optimism.


Common rationalizations

ExcuseReality
"I'll decide the details while coding."Decisions under coding pressure are worse. Decide now; write later.
"That file is probably where I said it is.""Probably" isn't verified. Check it before the user does.
"The plan reads fine — I don't need to re-review it."You wrote it, so you're blind to its gaps. Re-read it as someone who has to execute it.
"Repeating context across similar tasks is wasteful."The reader may read tasks out of order. Restate the relevant detail.
"It's just docs / a refactor — it doesn't need isolation."Non-mechanical changes still collide with other work. Route by the flowchart: structural and docs changes get slow-powers:working-in-isolation.
"TDD doesn't apply, so no skill applies."TDD is only the functional branch. Non-functional, non-mechanical work still has a required next skill — isolation.
"I told them to work on a branch / isolate the work — that covers it."Generic isolation advice in your own words isn't the hand-off. Name slow-powers:working-in-isolation as the required next skill — the named hand-off is the deliverable, on a cold draft as much as a contested one.

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.