additive-bias-defense
Inverts burden of proof for code additions. Use when reviewing PRs, planning refactors, or running unbloat to challenge every addition's necessity.
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
> The default answer to "should we add this?" is no.
> The burden of proof is on the addition.
Additive Bias Defense
> Note (#444): Frontmatter declares `provides.guidance`, not
> `provides.contract`. The scrutiny questions are consumed by
> partner skills (`pensive:code-refinement, conserve:unbloat`,
> `imbue:scope-guard`) that voluntarily embed them; no validator or
> hook in leyline enforces them directly. If a future contributor
> adds enforcement, restore the `contract` label and link the
> validator path here.
When NOT To Use
- Removing bloat that already landed (use
conserve:bloat-detector) - Scoring whether a feature is worth building (use
imbue:scope-guard)
The Problem
LLMs are additive by nature. They reinvent wheels, add
unnecessary complexity, hallucinate issues and modify
tests to justify them, and deviate from priorities. This
contract provides a systemic defense.
The Scrutiny Questions
Applied to every proposed addition (code, files,
abstractions, error handling, configuration):
- Priority alignment: Is this a deviation from the
current priority?
- Criticality: Is it critical to implement at this
juncture?
- Simplicity: Does a simpler or more elegant
solution exist?
- Evidence: What evidence proves this is needed
(not assumed)?
- Consequence: What breaks if we do not add this?
If the proposer cannot answer questions 4 and 5 with
concrete evidence, the addition is unjustified.
Anti-Pattern Detection
| Pattern | Signal | Challenge |
|---------|--------|-----------|
| Wheel reinvention | New utility/helper overlapping existing code | "Does X already do this?" |
| Hallucinated issues | Fix for a bug with no reproduction evidence | "Show the failing test before the fix" |
| Test manipulation | Test changed to match behavior rather than spec | "Did the spec change, or did you change the test?" |
| Complexity creep | Abstraction introduced for single use case | "Is this the 3rd use, or the 1st?" |
| Priority deviation | Work not traceable to current task/spec | "Which requirement does this serve?" |
| Gold plating | Error handling or flexibility beyond need | "What breaks without this?" |
Burden of Proof Verdict
After applying scrutiny questions and anti-pattern
detection, produce a verdict:
| Verdict | Meaning | Action |
|---------|---------|--------|
| justified | Evidence supports the addition | Proceed |
| needs_evidence | Plausible but unproven | Provide evidence or remove |
| unjustified | No evidence, likely bias | Remove or justify |
Integration Contract
Review-oriented skills MUST consult this contract by:
- Applying the 5 scrutiny questions to each addition
- Scanning for the 6 anti-patterns
- Producing a burden-of-proof verdict
- Including the verdict in their output
Consuming Skills
| Skill | Integration Point |
|-------|-------------------|
| attune:war-room | Prosecution Counsel role uses scrutiny questions |
| sanctum:pr-review | Every added file/function challenged |
| pensive:code-refinement | Refactors pass "3rd use" test |
| conserve:unbloat | Findings feed removal candidates |
| attune:mission-orchestrator | Plan sections scanned before user review |
| imbue:justify | Scrutiny questions extend audit protocol |
Related Skills
imbue:karpathy-principles- "Simplicity First" and "Surgical Changes" principles invoke this contract from a higher-level four-principle synthesis- See
docs/quality-gates.md#skill-level-quality-gate-compositionfor the full gate-skill federation graph
The Subtraction Principle
> Rely less on AI and initial lines of thinking.
> Challenge yourself to think of a more elegant
> implementation or a simpler solution.
Before accepting any addition, ask: "Could I achieve
this by removing code instead of adding it?" If yes,
prefer the subtractive approach.
Exit Criteria
- [ ] All 5 scrutiny questions applied to every proposed addition;
questions 4 (evidence) and 5 (consequence) answered with
concrete evidence, not assumptions
- [ ] All 6 anti-patterns scanned (wheel reinvention, hallucinated
issues, test manipulation, complexity creep, priority deviation,
gold plating); any match named with the pattern label
- [ ] A burden-of-proof verdict produced for each addition:
justified, needs_evidence, or unjustified; the verdict
appears in the consuming skill's output
- [ ] Subtraction principle applied: at least one check for
"could this be achieved by removing code instead?" before
accepting any net-positive line-count change
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/leyline/skills/additive-bias-defense/SKILL.md同一个仓库里的其他技能
- claude-code-plugin-reference
- night-market-architecture-contract
- night-market-build-and-env
- night-market-change-control
- night-market-collective-memory
- night-market-completion-integrity-campaign
- night-market-config-catalog
- night-market-debugging-playbook
- night-market-diagnostics-toolkit
- night-market-docs-and-writing
- night-market-failure-archaeology
- night-market-model-and-harness-updates