principles
Index of 24 principles; read the fitting file before deciding.
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- principles
- description
- Index of 24 principles; read the fitting file before deciding.
- disable-model-invocation
- true
02 资源文件 26
- 参考文档agents/openai.yaml93 B
- 参考文档CREDITS.md10.2 KB
- 参考文档principles/attack-the-premise.md1.9 KB
- 参考文档principles/boundary-discipline.md1.7 KB
- 参考文档principles/build-the-lever.md2.1 KB
- 参考文档principles/encode-lessons-in-structure.md1.5 KB
- 参考文档principles/exhaust-the-design-space.md2.1 KB
- 参考文档principles/experience-first.md2.2 KB
- 参考文档principles/explain-the-number.md3.0 KB
- 参考文档principles/fix-root-causes.md2.3 KB
- 参考文档principles/foundational-thinking.md2.4 KB
- 参考文档principles/guard-the-context-window.md1.8 KB
- 参考文档principles/laziness-protocol.md1.8 KB
- 参考文档principles/make-operations-idempotent.md1.8 KB
- 参考文档principles/migrate-callers-then-delete-legacy-apis.md1.5 KB
- 参考文档principles/minimize-reader-load.md2.6 KB
- 参考文档principles/model-the-domain.md2.6 KB
- 参考文档principles/never-block-on-the-human.md1.4 KB
- 参考文档principles/outcome-oriented-execution.md2.3 KB
- 参考文档principles/prove-it-works.md1.5 KB
- 参考文档principles/redesign-from-first-principles.md2.1 KB
- 参考文档principles/separate-before-serializing-shared-state.md1.7 KB
- 参考文档principles/sequence-verifiable-units.md2.0 KB
- 参考文档principles/subtract-before-you-add.md1.7 KB
- 参考文档principles/test-behavior-not-implementation.md2.8 KB
- 参考文档principles/type-system-discipline.md2.1 KB
03 SKILL.md 正文
Principles
Twenty-four rules behind the /whips triggers. Read the full file for each principle you use before the first design decision, and cite only principles whose file you read this session. In the reply, name each one that changed a decision and the choice it changed.
- Subtract before you add: before building on existing code, delete dead code and redundant checks first.
- Fix the root cause: when debugging, trace each symptom upstream to the first wrong step.
- Prove it works: after completing a task, run the real artifact the user will hit.
- Small verifiable units: for multi-step work and stacked commits, end each unit in a check.
- Model the domain: for stateful logic, name the data shape before the logic.
- Make operations idempotent: for state-changing work, shape reruns to converge.
- Test behavior, not implementation: when writing or keeping a test, assert what users observe.
- Never block on the human: for reversible work, proceed and let the human correct course.
- Attack the premise: when repeated fixes fail the same gate, test the shared assumption.
- Boundary discipline: when wiring boundaries, validate and handle errors there.
- Type system discipline: when designing types or parsing untrusted input, make illegal states unrepresentable.
- Build the lever: for non-trivial work, build the tool that does it or proves it.
- Encode lessons in structure: when writing the same instruction twice, build the guardrail.
- Migrate callers, then delete: for a new internal API, migrate callers and delete the old one.
- Separate before serializing: for concurrent actors on shared state, give each its own target first.
- Outcome-oriented execution: for planned rewrites, converge on the target and declare breakage scope.
- Redesign from first principles: for a new requirement, redesign as if it had been foundational.
- Experience first: for product tradeoffs, choose user delight over implementation convenience.
- Explain the number: before trusting a measured number, name what bounds it.
- Guard the context window: when context fills up, route bulk to delegates.
- Exhaust the design space: for novel decisions with no precedent, sketch candidates first (carried by
craft-architect). - Foundational thinking: before writing logic, choose core types first (carried by
craft-architect). - Laziness protocol: when tempted to add abstractions, bias to subtraction (carried by rule 1).
- Minimize reader load: for hard-to-trace code, count layers and hide indirection (carried by the depth vocabulary: module, interface, seam, adapter, leverage, locality).
04 同仓库更多 Skills
whips
Route any non-trivial task through one entry: match a playbook, drive HIT skills plus subagents, open a reviewed ready PR with ship-pr-shaped evidence.
verify-upkeep
Periodic upkeep for a project's verification skill: source wave plus live pass per feature, at most one PR of proven corrections. Use to audit the verify skill.
verify-statechart
Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it as a Mermaid statechart. The report gives the shortest path to each state that breaks a rule. Use to show a bug as a path through states.
verify-new
Generate a project-local skill that drives the app like a user (launch, doctor, drive, evidence, feature map), proven once. Use when a project has no scripted proof.
ship-triage
Move issues and external PRs through a state machine of triage roles, categorise, verify, interview if needed, and write agent-ready briefs.
ship-runner
Run ready-for-agent issue queues on any schedule through /whips intake, one fresh worktree each, landing per risk tier, with the agent and model you pick at setup.