360 Secure SkillHub
360 安全技能中心

principle-sequence-verifiable-units

该 Skill 提供多步开发工作的排序方法:将批量修改、迁移或连续编辑拆成小单元,每单元结束于可检查状态,验证通过后再继续;并按失败测试、修复、脚手架等顺序堆叠提交或 PR,使评审者可复现验证过程。未提供脚本、命令或外部服务。

mdsmithaustin
热度 0.00
最近更新 2026-10-19 07:37:10
分类:开发依赖:纯提示词应用场景:工作流 / 代码审查 / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mdsmithaustin/pstack/principle-sequence-verifiable-units
Metadata
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.

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.

When later work depends on unproven assumptions, start with the one whose failure would invalidate the most work. Choose the smallest useful unit that can disprove it. For an uncertain integration, exercise a thin path across the real boundary before building the rest.

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.