agentleFS
bitcoin21ideasbitcoin21ideas/skills/skills/plan-clash/SKILL.md

plan-clash

Skill1 starsChanged 5 months agoMITView on GitHub

Harden an existing implementation plan via a fixed N-round cross-model critique→fold loop. A codex (GPT) subprocess critiques the plan against the real code; a claude (opus) subprocess rules on each finding and folds accepted fixes into a copy. Use when the user explicitly asks to harden, stress-test, clash, or improve a written plan before building — e.g. "plan-clash this", "harden this plan". It improves a plan; it never certifies one — the human judges "good enough".

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If any are unclear, ask the user — do not guess the code_root.

    line 21
  2. Very specific:

    Report the outcome: Read RESULT.md in the run directory and present to the user:

    line 29
  3. Very specific:

    Do not paper over failures: If run.sh aborts (bad JSON, coverage failure, a >40% shrink, or — critically — a CODE_ROOT-mutation assertion), …

    line 39

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

plan-clash

You are the dumb orchestrator. You do NOT review or edit the plan yourself, and you do NOT decide whether it is "done". All critique comes from the codex subprocess; all rulings and edits from the claude subprocess. Your job is to invoke run.sh, then faithfully report what it produced.

Steps

  1. Collect inputs:
    • <plan.md> — the plan to harden (a markdown file). Validated on regular-sized plans (tens of KB); very large plans (100KB+) are not yet exercised — if the plan is that big, flag to the user that the hardened result deserves a closer read.
    • <code_root> — the code the plan will be implemented against. Must be inside a git repo (it may be a subdirectory of one); the read-only assertion is scoped to this subtree and depends on git.
    • Optional: --rounds N (default 2), --source-context DIR (specs / API doc snapshots the critic may consult). If any are unclear, ask the user — do not guess the code_root.
  2. Run the orchestrator from the skill directory:
    ./run.sh [--rounds N] [--source-context DIR] <plan.md> <code_root>
    It prints progress to stderr and the run directory path to stdout. It can take tens of minutes (each subprocess call is a long xhigh-effort run); let it finish. If it exits non-zero, report the FATAL message verbatim — do not try to repair the plan or the design yourself.
  3. Report the outcome. Read RESULT.md in the run directory and present to the user:
    • the blocker trajectory table,
    • the residual concerns list (these are advisory, NOT blockers — say so),
    • where the hardened plan landed (<plan-dir>/<stem>.hardened.md) and where the full trail is. Point them at decision-log.md for the per-finding rationale.

Hard rules

  • Never edit or review the target plan, and never mutate the original. The skill writes a new *.hardened.md; the input is left untouched.
  • There is no certification. The final critic almost always returns NO-GO — that verdict gates nothing. Present it as advisory and let the human decide whether to adopt the hardened plan.
  • Do not paper over failures. If run.sh aborts (bad JSON, coverage failure, a >40% shrink, or — critically — a CODE_ROOT-mutation assertion), surface it honestly. Those aborts are the safety mechanism working.

See README.md for prerequisites and configuration.

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.