Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add backnotprop/pstack --skill principle-sequence-verifiable-units -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/principle-sequence-verifiable-units/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/principle-sequence-verifiable-units/

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

Similar skills

All skills for Git and GitHub →

From the same set44

recall Rebuilds a short brief from your chat transcripts, the live repo state and the shared record: where things stand and what to do next. CX Codex +1 5,000installs automate-me Turns your daily coding habits into a personal -mode skill by mining recent workspace transcripts and running structured questionnaires. CX Codex +1 5,100installs principle-outcome-oriented-execution A rule for planned rewrites and migrations: the agent converges on the target architecture instead of propping up intermediate states with compatibility code. CX Codex +1 5,100installs principle-boundary-discipline A rule-set skill for coding agents: validation and error handling stay at system boundaries, while the inside trusts its types and plain functions. CX Codex +1 5,100installs principle-test-behavior-not-implementation A rule for tests you write or keep: assert what callers can observe. Turns tests that break on every refactor into ones that catch real bugs. CX Codex +1 5,200installs principle-minimize-reader-load A skill that spots unnecessary layers of abstraction and hidden state slowing down code comprehension. Use it when reviewing complex code where the logic is hard to trace. CX Codex +1 5,200installs principle-migrate-callers-then-delete-legacy-apis Instructs the assistant to migrate internal callers and delete legacy APIs in a single wave, skipping temporary compatibility layers. CX Codex +1 5,200installs principle-model-the-domain Guides an agent to model domain rules in data structures instead of growing conditionals. Use it when stateful code or repeated shape assumptions start spreading. CX Codex +1 5,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor