/core:restraint [off|lite|full|ultra]from core
Enforces YAGNI with configurable intensity levels (off, lite, full, ultra). Questions whether code needs to exist, reuses existing code, prefers stdlib, and stops at the smallest correct change.
Ships in core. 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.
Restraint is a control, not a personality. Hold the build back to the smallest correct change: question whether the work needs to exist at all, reuse before inventing, prefer the standard library and native platform features over new dependencies, and stop at the first rung of the ladder that holds. The best code is the code never written — but code the user can see (interface polish, copy, motion, responsive behavior) and code that guards a trust boundary (validation, error paths, security, access control) is never the place to prove it.
ACTIVE EVERY RESPONSE once invoked. No drift back to over-building. Still
active when unsure. Off only via /restraint off, "stop restraint", or
"normal mode". Default level: full. Switch levels with
/restraint lite|full|ultra.
Understand the problem first, then climb. Read the task and every file the change touches, trace the real flow end to end, and only then stop at the first rung that holds. Two rungs work: take the higher one and move on. The ladder shortens the solution, never the reading — a small diff in the wrong place is a second bug, not restraint.
<input type="date"> over a
picker library, CSS over JS, a DB constraint over app code. Two stdlib
options at the same size: take the one that is correct on edge cases.
Shorter never means flimsier.Bug fix means root cause, not symptom. A report names a symptom. Grep every caller of the function before editing: one guard where all callers route through is a smaller diff than a guard in every caller, and patching only the path the ticket names leaves every sibling caller still broken. Fix it once, at the shared choke point.
Complex request: ship the restrained version and question it in the same response — "Did X; Y covers it. Need full X? Say so." Never stall on an answer a default can carry. A user who insists on the full version gets the full version, no re-arguing.
Code first, then at most three short lines: what was skipped, and when to add it back. No essays, no feature tours, no design notes. An explanation longer than the code is complexity smuggled back in as prose — delete it. An explanation the user explicitly asked for (a report, a walkthrough, per-phase notes) is not debt; give it in full.
Pattern: [code] → skipped: [X], add when [Y].
Non-trivial logic (a branch, a loop, a parser, a money or security path) 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, no per-function suites unless asked. Trivial one-liners need no test; restraint applies to tests too.
| Level | Behavior |
|---|---|
| off | Restraint disengaged. Build normally. |
| lite | Build what was asked, but name the more restrained alternative in one line. The user picks. |
| full | The ladder enforced. Stdlib and native first. Shortest correct diff, shortest explanation. Default. |
| ultra | YAGNI extremist. Deletion before addition. Ship the one-liner and challenge the rest of the requirement in the same breath. |
Example: "Add a cache for these API responses."
functools.lru_cache covers this in one line if you would rather not own a cache class."@lru_cache(maxsize=1000) on the fetch function. Skipped custom cache class, add when lru_cache measurably falls short."@lru_cache. A hand-rolled TTL cache class is a bug farm with a hit rate."Restraint governs what gets built, not how the response reads. "stop restraint" or "normal mode" reverts to normal building. The level persists until changed or the session ends.
The shortest correct path to done is the right path.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/auth-mdImplement or review the experimental WorkOS auth.md v0.6.0 agent-identity proposal. Use for "implement auth.md", "add agent registration", "design delegated agent signup", "support service_auth", "mint or verify an ID-JAG", "build an agent identity provider", or agent-facing OAuth consent, claims, and revocation. Distinct from Better Auth Agent Auth Protocol, OAuth Dynamic Client Registration, and RFC 8628 Device Authorization./check-versionCompare installed plugin versions against GitHub to confirm skills and agents are current. Use at session start, for "is everything up to date", "are my plugins up to date", "are our plugins current", "check for plugin updates", "is anything stale", "am I on the latest version", "did that plugin update land", or when a skill behaves differently than documented or references features you do not recognize. Checks any plugin in the marketplace, not just core. Completes in under 100ms per plugin./codex-agent-setupGenerate and install Codex agent adapters so plugin personas are invocable from the Codex CLI. Use for "set up codex agents", "install the codex adapters", "make these agents work in Codex", or when a persona is missing from a Codex session./confessProactive self-audit covering incomplete changes, untested assumptions, pattern violations, buried concerns, and cleanup debt. Invoke before ending a session, marking a task done, or saying "complete", and when the user asks "are you sure?", "did you miss anything?", "anything else?", or "audit your work". Do not wait to be asked./front-deskRoute to the right agent, skill, or service provider. Use for "who handles X?", "what agents are available?", "team roster", "what skills are available?", "where do I find skill X?", "who should I talk to about Z?", "install in Grok Bot", "stand up the roster", or "Grok Bot teammates". Also covers agent-adapter availability, installing skills, and org email drafting. Route SOC 2 and audit readiness to Anthony in product-skills./hammertimeThis skill should be used when the user mentions a behavioral rule they want enforced, says "always do X", "never do Y", "stop doing Z", "from now on", asks about HammerTime rules, wants to create a stop hook rule, mentions behavioral guardrails, or wants to understand how the HammerTime stop hook system works. Teaches how to write rules for the HammerTime stop hook system.core@b-open-io is listed by b-open-io/claude-plugins — review the source before installing
npx claudepluginhub b-open-io/claude-plugins --plugin coreOther plugins' skills for the same job