plugins/leyline/skills/additive-bias-defense/SKILL.md
Inverts burden of proof for code additions. Use when reviewing PRs, planning refactors, or running unbloat to challenge every addition's necessity.
npx skillsauth add athola/claude-night-market additive-bias-defenseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The default answer to "should we add this?" is no. The burden of proof is on the addition.
Note (#444): Frontmatter declares
provides.guidance, notprovides.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 thecontractlabel and link the validator path here.
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.
Applied to every proposed addition (code, files, abstractions, error handling, configuration):
If the proposer cannot answer questions 4 and 5 with concrete evidence, the addition is unjustified.
| 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?" |
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 |
Review-oriented skills MUST consult this contract by:
| 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 |
imbue:karpathy-principles - "Simplicity First" and "Surgical Changes" principles invoke this contract from a higher-level four-principle synthesisdocs/quality-gates.md#skill-level-quality-gate-composition for the full gate-skill federation graphRely 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.
research
Generate diverse solution candidates with category-spanning ideation methods and rotation. Use when stuck on a design or fighting repetitive LLM output.
tools
--- name: validate-pr description: Use when you need a diff-derived test plan for a PR: reads the diff, groups changes by area, runs targeted verifications, and proves revert-tests are genuine guards, not dead assertions. alwaysApply: false category: validation tags: - pr - validation - test-plan - diff - revert-test - evidence tools: [] usage_patterns: - diff-derived-test-plan - revert-test-quality-check - evidence-capture complexity: intermediate model_hint: standard estimated_tokens: 650
development
Contract for the project decision journal (tradeoffs and lessons-learned logs). Use when recording a decision, tradeoff, or lesson, or building a consumer hook.
development
Ramps implementation ambition a notch only after the prior increment is understood. Use when building a feature you must understand, not just ship.