/skill-madness:yagni-gatefrom skill-madness
Enforces YAGNI discipline before every code change: checks necessity, reuse, stdlib, platform features, and existing deps before adding new code. Persists until explicitly disabled.
Ships in skill-madness. 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.
Adapted from
DietrichGebert/ponytail(MIT) — the "laziest senior dev in the room" ruleset. Same ladder, same guardrails; examples adapted to this toolkit.
The build-discipline sibling of caveman: caveman compresses what you say,
yagni-gate compresses what you build. The best code is the code never written.
Active for EVERY code-producing response once triggered. Off only when the user
says "stop yagni-gate", "normal mode", or "be normal again". Composes with
caveman — run both for minimum talk and minimum build.
The ladder runs after you understand the problem, not instead of it. Read the task fully and trace the real flow end-to-end before picking a rung — a wrong-rung shortcut ships a minimal solution to the wrong problem, and that rework costs more than every line the shortcut saved.
Before writing code, stop at the FIRST rung that holds:
Corollaries: no unrequested abstractions; no new dependency when a higher rung holds; shortest working diff wins; deletion beats addition; when two options are the same size, take the one the stdlib already made edge-case-correct. Bug fixes target the root cause — fix the shared function once, don't patch each caller (three caller-side guards are three future bugs wearing bandages).
The load-bearing half: the ladder without these is just an excuse to under-build. Lazy means efficient, never negligent — these are never on the chopping block:
Lazy code without its check is unfinished: every non-trivial change leaves ONE runnable check behind — the smallest thing that fails if the logic breaks (an assert-based self-check or one small test file; no frameworks, no fixtures). Trivial one-liners need none.
When a rung deliberately skips something real, leave a yagni: comment naming
the limitation and the upgrade path — the shortcut then reads as a decision,
not an oversight, and nobody re-litigates it in review. (Upstream marks these
ponytail:; the marker is renamed with the skill.)
<input type="date">.Deduplicator class with a strategy
interface. Minimal: [...new Set(items)].architecture-rescue — post-hoc: finds what over-building already did to the
codebase (the deletion test). yagni-gate is the up-front reflex that keeps
that cleanup from being needed.plan-intake's over-build (YAGNI) pass — the same lens applied to work
items; yagni-gate applies it to code.caveman — the same discipline applied to response tokens.architecture-rescue),
"be terse" (that's caveman).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
yagni, minimal-code, code-discipline, anti-overbuilding, keep-it-simple
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/architecture-rescueFind deepening opportunities in a codebase (shallow modules, missing seams, leaky abstractions) and present them as numbered candidates for a grilling session before any interface is proposed. Use when the code feels tangled or hard to test. Trigger on "improve architecture", "rescue this codebase", "find refactoring opportunities", "ball of mud", "shallow modules"./artifact-publishPublish a visual or interactive result as a Claude Code Artifact: a self-contained HTML or Markdown page on a private, shareable claude.ai link instead of a local file. Use when a dashboard, report, chart, diagram or prototype reads better as a page. Not the claude.ai design canvas (claude-design-brief). Trigger on "publish this as an artifact", "make a shareable link", "give me a link to this"./babysitKeep an open PR healthy on a schedule: poll for review activity, auto-address bot and Copilot nits and routine rebases, re-run the gate, until the PR is mergeable. HITL on anything irreversible; never auto-merges. The scheduled loop around git-pr-feedback, run as "/loop 5m /babysit". Trigger on "babysit my PR", "watch this PR", "keep my PR green", "keep the PR rebased"./backend-agentBuild API servers, business logic and data layers against authored contracts. Use in native orchestrator dispatch or explicitly requested solo backend implementation; load it when the orchestrator assigns this role or the user asks for it.Other plugins' skills for the same job