pstack-principle-build-the-lever
Choose reusable automation for repetitive transformations or checks that need deterministic, rerunnable evidence.
- License 许可
- MIT
- 最近更新
- 2026-10-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pstack-principle-build-the-lever
- description
- Choose reusable automation for repetitive transformations or checks that need deterministic, rerunnable evidence.
02 资源文件 1
- 参考文档agents/openai.yaml231 B
03 SKILL.md 正文
Build the lever
Use a script, codemod, generator, or existing tool when it makes the work more reliable or easier to repeat and review.
Prefer an existing command when it already does the job. Build a small tool when repeated edits share a mechanical recipe, an analysis must cover many inputs, or a one-off comparison needs reproducible evidence. Direct edits and inspection are appropriate when automation would add more maintenance than confidence.
For a transformation, try a representative unit before applying it broadly. Make reruns safe, show the resulting diff, and verify the intended behavior. Keep the tool when future work or review needs it; a temporary helper is enough for session-only work.
When delegating repeated work, share a common procedure and isolate write ownership. Use deterministic automation instead of delegation when it can perform the whole transformation reliably.
Finish when the requested result is verified and any retained tool has a clear way to rerun it. Producing a new file is not itself evidence that automation was useful.
04 同仓库更多 Skills
unslop
Edit substantive human-facing prose to remove AI writing patterns while preserving meaning and tone.
pstack-principle-type-system-discipline
Apply when designing types, reviewing a function signature, or writing code in any statically-typed language. Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, refuse to lie to the compiler, exhaust variants, derive from authoritative schemas.
pstack-principle-test-behavior-not-implementation
Apply when you write, change, or keep a test. Call the code the way its users do and assert the result they observe against a literal expected value. If the test would still pass when every imported function returns undefined, rewrite the assertion or delete the test.
pstack-principle-subtract-before-you-add
Apply when sequencing an addition, refactor, or rewrite. Remove dead weight, redundant validators, and stub references first, then build on the simpler base.
pstack-principle-sequence-verifiable-units
Sequence migrations or dependent changes around meaningful verification boundaries.
pstack-principle-separate-before-serializing-shared-state
Apply when concurrent actors might write to the same file, branch, key, or state object. Eliminate the sharing first; serialize structurally only when one shared writer is a real invariant.