Keep intent.md true: attack the plan for holes (append as Open questions) and refine or repair the Frame, Decisions, Constraints, Steps, and build ranges to match reality (`ranges` re-cuts the whole section). Usable at any point; you propose, the human approves.
2 stars
0 votes
0 copies
0 views
Added December 4, 2026
developmentgoshellbashreact
Works with
cli
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Refine?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/robmclarty-refine)
---
name: refine
description: "Keep intent.md true: attack the plan for holes (append as Open questions) and refine or repair the Frame, Decisions, Constraints, Steps, and build ranges to match reality (`ranges` re-cuts the whole section). Usable at any point; you propose, the human approves."
argument-hint: "[focus | ranges]"
disable-model-invocation: true
allowed-tools: Read, Edit, Bash(plumbbob status:*), Bash(plumbbob order:*), Bash(plumbbob defer:*), Bash(plumbbob research:*), Bash(plumbbob export:*), WebSearch, WebFetch
---
# PlumbBob: refine the plan
Current session state (injected when this skill runs): !`plumbbob status 2>/dev/null || echo "plumbbob CLI not on PATH in this session. Marketplace install: confirm the plugin is enabled in /plugin, then /reload-plugins. Skills-dir/global install: npm i -g plumbbob && plumbbob init."`
`/plumbbob:refine` keeps `intent.md` honest. Use it at **any point**: right after `/plumbbob:plan`
to stress-test a fresh frame, or mid-build to repair a plan that drifted from what the
code is actually doing. It is the document-level complement to `/plumbbob:step` (which only
sharpens the *next* step): `/plumbbob:refine` works the *whole* plan.
## No-session refusal
This skill refines an existing plan, so it needs one. Read the state injected above: if
it is `NO ACTIVE SESSION`, **refuse** in one line and tell the human to run
`plumbbob start "<title>"` (or `/plumbbob:plan`) first, and edit nothing. Every active state
is fine; refining is always available.
## Two modes, and a re-cut
- **Attack (diverge in the problem space).** Hand the **Frame**, **Decisions**, and
**Architecture sketch** a cold, adversarial read and surface holes: ambiguities,
unhandled edge cases, hidden assumptions, collisions with the existing code. Append
each under `## Open questions` in the expanded form the template shows: an opener
line (the hole as a question, slugged at birth like any Decision,
`- **Q2 (some-slug)**: …`, cited elsewhere in the file as `Q2 (some-slug)`), a
`*plain:*` sub-line (what's at stake in plain
words, enough to judge it cold), and a `*lean:*` sub-line (your proposed resolution:
one answer to react to, not a menu). Never
append a hole as a Decision: resolving it is the human's convergence, not yours;
the lean proposes; this mode surfaces, it does not decide. (A tiny, obvious question
may stay one bare line; the sub-lines earn their keep only when a human decision
genuinely waits on it.)
**Ask by choice where the host can.** When your tools include `AskUserQuestion` and a
question waits on the human, ask before you write any text this turn, since a client
that folds text written before a tool call would hide it
(D129 (ask-first)).
With two or more waiting, ask one question first, `<N> open questions, each with a
lean. How do you want to settle them?`, under the header `Questions`, with three
options: `Take every lean (Recommended)`, `Go through them`, and
`Leave them for the table`. With one waiting, ask it directly. Going through them, ask up
to four in one call: each question's text is its handle, the question, and its `*plain:*`
line, and its options are `Take the lean`, described by the lean verbatim, and
`Defer to the work`; the tool's free-text choice is the human's own answer. Record what
they chose the way a typed reply is recorded, below, then go on to the table, which
shows whatever still waits. With no such tool, or the question dismissed, skip all of
this: the table and a typed reply are the whole path, as they always were.
Then show the human what is open: run `plumbbob status --questions` and paste its
table whole, one row per open question with why it matters and your lean, each cell
the first sentence of its line, so write each line to stand on that sentence, and keep
the question about as long as the other two, since the table cuts it at twelve words
(D124 (brief-questions)). Then
invite per-question answers; the human can settle any of them right there in one
message (`yes to all leans`, or `yes to all leans except Q3: <their answer>`), no
doc-flipping, no extra round-trip per hole. A resolved question gets
`*resolved:* <date>, <the answer>` in place of its `*resolve by:*` on the opener line. The human
can also leave one to the work (`defer Q3 until <what settles it>`): run
`plumbbob defer Q3 "<what settles it>"`, which keeps the question and swaps its
`*resolve by:*` for `*deferred:* <date>, until <what settles it>` on the opener line,
and the card moves it to the `Deferred` table beneath, still open
(D120 (deferred-questions)).
A question the table still shows that the human has already set aside (parked, settled
as a tangent, or kept open as a log) is drift: propose deferring it, until what the
build says it waits on, rather than asking it again
(D123 (defer-records)).
Never retype the table as a list of your own
(D118 (questions-table)).
- **Repair (re-sync to reality).** When the plan has drifted (a Decision was overtaken
by what you built, a Constraint changed, a Step no longer matches the seam, a `- like:`
line names a file that moved, a step still carries its proof as a `**done when:**`
clause on the title line, or a
**step's title no longer describes what the diff actually does**), propose the edits
that bring `intent.md` back in line with the truth. A step title *is* its checkpoint
commit subject (D68 (conventional-subjects)), so bringing a drifted one back in line
means keeping it a plain, single-line `type(scope): description` subject, with
load-bearing detail (file paths, module names) in `seam` and `proof`,
**never jammed into the title**; the checkpoint body pass then reconciles and lands
that subject at the verify pause.
Show the before/after for each, and **write only what the human approves**. A repair
that inserts a step, or moves one ahead of another, keeps every number where it is and
writes the sequence instead: shell `plumbbob order 7 8 5` with the undone steps in the
sequence to build them, an inserted step included even when it builds last, and the
`## Build order` line it writes is what every next-step pick follows. Never renumber,
and never edit that line by hand.
**A repair keeps the build ranges true.** When the plan carries `## Build ranges`,
`plumbbob order` re-cuts them to follow the sequence it writes
(D109 (ranges-follow-the-order)):
a step it places joins the range whose steps sit on both sides of it, else the one it
builds ahead of, else the one it builds after, never a bare range, and never a range that
has landed, since that range's call was made and the step would reopen it; its ending
names each range it re-cut. Edit a range yourself only where the
order cannot say it, and before you run the verb: a bare range of its own for a step
that brings a call the human has to make before it lands, or a re-cut that moves where a
call falls, shown in the same before/after
(D92 (build-ranges)).
A new range takes the next free item number, and no item is renumbered, because the stop
card's stamp, the detail file's header, and `plumbbob harvest` find a landed range by its
number. A range the verb's ending names as still needing a re-cut is yours to re-cut in
the same approved edit. Read `plumbbob status` once the edits are written: its ranges block carries a `⚠` row
for a range naming a step the plan lacks, a step two ranges name, a step the build order
puts inside a range that does not name it, and an undone step no range names, and none
once the section is sound.
- **Re-cut the ranges (`/plumbbob:refine ranges`).** On request, re-cut the whole
`## Build ranges` section against the plan as it stands, by the rule `/plumbbob:plan`
cuts it with: a range ends where a human call is due (a decision the plan leaves open,
a review before later steps build on what landed, or a thing only the human can do)
and nowhere else, a bare build for a call made on a step's own work before it lands,
every undone step in exactly one range, walked in build order, and a `- model:` line
per range. A landed range stays as written, since its call was made. Show the section
before and after, and write only what the human approves.
## When the research has gone out of date
The state injected above carries a row when the build's `research.md` was stamped against
a lockfile that has since moved, or against a dependency whose installed version has since
changed with no lockfile moving. It reads one of two ways:
```text
research predates a lockfile change: fascicle 0.18.0 → 0.19.2
research predates a dependency change: fascicle 0.18.0 → 0.19.2
```
When either shows, say so before anything else and **offer** to run the ecosystem lens again:
for each dependency the row names (or, when it names only the lockfile, each one the stamp
lists), read what changed between the two versions in its docs, changelog and issue
tracker, and hold that against the plan. On a yes, rewrite the `## Ecosystem` section of
`research.md` with what you find, each finding in the file's one shape (what was found, its
source, what it changes), then run `plumbbob research --stamp` to restamp it with the names
it already holds. A finding that changes the plan becomes an Open question or a proposed
repair, by the two modes above; it never becomes a Decision by itself. The codebase and
record sections do not age with a lockfile, so leave them. On a no, go on: the row is
advice and gates nothing
(D158 (research-is-dated)).
With no such row, say nothing about research. With no web tool on the host, say that the
lens cannot run here and leave the stamp as it is; never write an ecosystem finding from
memory.
## The hard contracts
- **You propose; the human converges.** Surface holes and draft repairs, but the human
approves every change to `intent.md`. Never guess a hole into a Decision.
- **Open questions for holes, edits for drift.** New uncertainty goes to
`## Open questions`; settled drift gets repaired in place once the human OKs it.
- **Refine the plan, not the code.** `/plumbbob:refine` touches `intent.md` only, and
`research.md` on a restamp the human agreed to; turning a
decision into a diff is `/plumbbob:build` or your own hands, never this skill.
- **An exported plan follows the edit.** When the build folder holds a `plan.json`, every
approved edit to `intent.md` leaves it behind and turns the next check red. Run
`plumbbob export` once the edits are written; when it refuses, its findings name the
step and the line, and fixing them is part of the same refine
(D146 (cli-keeps-current)).