/leyline:additive-bias-defensefrom leyline
Inverts burden of proof for code additions during PR reviews, refactors, and unbloat sessions. Challenges every addition with scrutiny questions and anti-pattern detection.
Ships in leyline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
conserve:bloat-detector)imbue:scope-guard)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.
justified, needs_evidence, or unjustified; the verdict
appears in the consuming skill's outputWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub athola/claude-night-market --plugin leyline19 skills in this plugin
/authentication-patternsProvides auth patterns for API keys, OAuth, and token management. Use when implementing or reviewing service authentication and credential handling./content-sanitizationProvides sanitization guidelines for external content in skills and hooks. Use when loading GitHub Issues, PRs, WebFetch results, or any untrusted input./damage-controlRecovers broken agent state via crash recovery, context overflow, and merge conflict protocols. Use when an agent session fails or a worktree is corrupted./decision-journalDecision journal (tradeoffs, lessons learned), deferred-capture contract ([Deferred] issues, CLI args, source labels), storage templates. Use to log a lesson./document-conversionConverts documents and URLs to markdown via tiered fallback (MCP markitdown, native tools, user notice). Use when a skill must ingest PDF, DOCX, or URL content./error-patternsProvides error classification, recovery, and graceful-degradation patterns. Use when implementing error handling or debugging resilience failures in any skill.Other plugins' skills for the same job