principle-sequence-verifiable-units — Claude Code skill
Guides coding agents to break multi-step sweeps and migrations into verifiable units. Keeps each step verified before proceeding to the next.
npx skills add backnotprop/pstack --skill principle-sequence-verifiable-units -a claude-codeWhat principle-sequence-verifiable-units does
This skill guides agents through multi-step tasks like bulk migrations, sweeps, and repetitive edits. Every unit follows a strict bracket: a known-good state, a single edit, and an immediate check. The agent does not touch the next unit until the current check passes.
It demands a rebase onto clean trunk before starting work. This guarantees all checks run against the true baseline. When shaping commits and PRs, the skill dictates an explanatory sequence: write the failing test first, then land the fix. For other changes, capture the baseline before treatment or land the subtraction before reshaping.
Debugging a broken batch after ten edits is painful. Stopping on the exact failing edit saves debugging effort immediately. The skill sets disable-model-invocation: true, keeping invocation explicit rather than automatic.
What it helps with
- split large code sweeps into isolated verifiable changes
- order git commits as failing test followed by fix
- capture baseline states before applying structural treatments
- catch and localize regressions at the single edit that caused them
Example prompts for the agent
- Apply principle-sequence-verifiable-units to migrate this repository step by step.
- Order these PR commits so each step ends in a verified green state, starting with the failing test.
How to install principle-sequence-verifiable-units
1Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-sequence-verifiable-units -a claude-code2Manually: put the files in place
~/.claude/skills/principle-sequence-verifiable-units/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/principle-sequence-verifiable-units/
1Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-sequence-verifiable-units -a codex2Manually: put the files in place
.agents/skills/principle-sequence-verifiable-units/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-sequence-verifiable-units -a cursor2Manually: put the files in place
.cursor/skills/principle-sequence-verifiable-units/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install backnotprop/pstack principle-sequence-verifiable-units2Manually: put the files in place
.github/skills/principle-sequence-verifiable-units/SKILL.md1Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-sequence-verifiable-units -a gemini-cli2Platform CLI
gemini skills install https://github.com/backnotprop/pstack --path skills/principle-sequence-verifiable-unitsManually: put the files in place
.devin/skills/principle-sequence-verifiable-units/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-sequence-verifiable-units -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about principle-sequence-verifiable-units
How to install principle-sequence-verifiable-units in Claude Code?
Run npx skills add backnotprop/pstack --skill principle-sequence-verifiable-units -a claude-code. The file will be placed in ~/.claude/skills/principle-sequence-verifiable-units/SKILL.md.
What does principle-sequence-verifiable-units do?
It forces the agent to break multi-step edits into small units and verify each before advancing. It also structures commit stacks into a clear sequence that reviewers can replay.
Which skills complement principle-sequence-verifiable-units?
It pairs with prove-it-works to ensure checks remain authentic, and build-the-lever to make per-unit verification cheap.
Source text
SKILL.md · MIT
--- name: principle-sequence-verifiable-units description: "Apply to multi-step work (sweeps, migrations, runs of similar edits) and to how you stack commits and PRs. Break work into small units that each end in a verifiable state, check each before the next, and order delivery so the sequence proves itself to a reviewer." disable-model-invocation: true --- # Sequence work into verifiable units Order work as a sequence of small units, each ending in a state you can check, and don't advance until the current one is green. **Why:** A break caught at the unit that caused it is cheap to localize. A break caught after a batch is buried, and you have already built further on a broken base. Sequencing those same units into a delivery a reviewer can replay turns "trust me" into "watch it go red, then green." **Execution.** In a sweep, migration, or any run of similar edits, verify each change before starting the next. Each unit is a before/after bracket: known-good state, one change, run the check, then proceed. Rebase onto clean trunk first so every check measures against the real baseline. When a lever does the edits, the per-unit check is nearly free. Run it anyway. **Delivery.** Stack commits and PRs in the order that proves the work. The canonical shape is the failing test first, then the fix on top. Other story orders are a subtraction before the reshape, a baseline capture before the treatment, the scaffold before the feature. Each commit lands on its own and the sequence reads as an argument. The sequencing complement to the **prove-it-works** principle skill, which keeps each check real, and the **build-the-lever** principle skill, which makes the per-unit check cheap.
© backnotprop · MIT · backnotprop/pstack