minimal-code-discipline

minimal-code-discipline is a skill for Claude Code from Yeachan-Heo/oh-my-claudecode. It costs 41 tokens per session (608 once invoked), scanned A, original, MIT.

A coding discipline for keeping changes as small and focused as possible. It follows YAGNI, meaning you do not build features until they are actually needed.

In plain words
What is it for?
Use it when planning, implementing, or reviewing a change that may be growing beyond the original request.
Why use it?
It reduces unnecessary code, duplicate helpers, speculative features, and oversized changes while preserving important safety checks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the oh-my-claudecode plugin — 48 skills, 21 commands, 19 agents, 11 hooks, 1 MCP server shipped together

Good fit Use it when planning, implementing, or reviewing a change that may be growing beyond the original request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeachan-heo/oh-my-claudecode/minimal-code-discipline
About the project

Oh My Claude Code is a multi-agent orchestration system for Claude Code, coordinating specialized agents, commands, skills, hooks, and workflows. It is designed for developers who want Claude Code to handle coding tasks through coordinated agent roles. Catalogue entries are components of its Claude Code workflow, including agents, commands, skills, hooks, instructions, MCP configuration, and a plugin.

Yeachan-Heo/oh-my-claudecode · 40,265 stars · on GitHub · oh-my-claudecode.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Yeachan-Heo/oh-my-claudecode --skill minimal-code-discipline
Clone the repo
git clone --depth 1 https://github.com/Yeachan-Heo/oh-my-claudecode

Made for: Claude Code.

Or install oh-my-claudecode, the plugin that ships this one along with the rest of its 48 skills, 21 commands, 19 agents, 11 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minimal-code-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/minimal-code-discipline/github.svg)](https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/minimal-code-discipline)
Your own site
<a href="https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/minimal-code-discipline"><img src="https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/minimal-code-discipline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for minimal-code-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/minimal-code-discipline"><img src="https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/minimal-code-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Excessive Agency · line 17
    Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
    Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00608
Opus 5.5 $0.00016 $0.00243
Sonnet 5.5 $0.00008 $0.00122
Haiku 4.5 $0.00004 $0.00061

Measured 1mo ago against content hash 4e013df3913c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

minimal-code-discipline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/minimal-code-discipline/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Minimal Code Discipline

Use this skill to apply a minimal-code (YAGNI-ladder) discipline while planning and writing code changes. It keeps diffs small and obviously correct without sacrificing the checks that keep users safe.

This skill complements ai-slop-cleaner: that skill cleans slop after it lands; this one keeps it from being written.

When to Use

Use this skill when:

  • the user asks for a minimal, lean, YAGNI, or smallest-possible-diff implementation
  • a plan or in-flight change is growing beyond the stated request
  • writing new code where scope creep, reinvented helpers, or speculative generality are likely
  • reviewing a proposed diff for size before implementation

When Not to Use

Do not use this skill when:

  • the user explicitly asks for a broad, feature-rich, or future-proofed build (their explicit scope wins)
  • the task is exploratory scaffolding the user has marked as throwaway
  • minimization pressure would touch protected behavior (see Non-Negotiables)

The Discipline

Existence first. Ask whether the change needs to exist at all; skip work that serves only a speculative future need.

Reuse before writing. Search the codebase for an existing helper, type, or pattern before writing anything new. Never copy a helper that already lives a few files away — reuse it or extract it to one shared location.

Dependency ladder. Reach for the standard library first, then platform-native capability, then an already-installed dependency. Hand-written code is the last resort. Do not introduce a new dependency when a few lines of code suffice, unless the user explicitly requested or approved it.

Understand before minimizing. Read the affected code and follow its execution path first. Ship the shortest correct diff once the problem is understood — code you never write never breaks.

Boring over clever. Prefer boring, obviously-correct code over clever code.

Mark the ceiling. Record deliberate simplifications with a short comment naming the accepted limit and what would justify replacing it.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 60 lines · 41 tokens per session scan A 4e013df3913c

Subscribe to this mod's changes

minimal-code-discipline is a skill published in the GitHub repository Yeachan-Heo/oh-my-claudecode (40,265 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 608 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

atelier-orchestrator

Skill routing and workflow orchestration. Selects Inline Plan or Spec-backed Plan, routes to the correct workflow skill, and manages transitions between phases. Use when starting any conversation or task to determine which planning mode and skill apply.

martinffx/atelier · 52 tokens

atelier-setup

Configure a repository for Atelier's development workflow. Use only when explicitly invoked; inspect existing guidance, issue-tracker and domain-document conventions, preview the proposed configuration, and write only after approval. It does not install Atelier or initialize external tooling.

martinffx/atelier · 52 tokens

computer-use

OS-level computer use on the local X11 desktop via the cua-driver daemon: screenshots, AT-SPI element trees, background (co-work) mouse/keyboard input, and window management for NATIVE applications only. Use for native GUI apps without APIs, OS dialogs, and desktop automation; NOT for any browser/web task (use…

EZotoff/ez-omo-config · 82 tokens

handoff-relay

Emit and resume cross-session handoff artifacts. Emit captures a session's mission, state, and next steps into a versioned file at explicit checkpoints; resume boots a new session from the artifact behind a continue/revise/archive decision checkpoint. Use for context handoffs between sessions, operators, or their…

EZotoff/ez-omo-config · 66 tokens

cleanup-discipline

Disciplined disk-cleanup workflow for reclaiming storage without destroying live runtimes, unpushed work, or unrecoverable data. Use for ANY disk-space cleanup, storage reclamation, "what can we delete", purge/prune campaigns, or when asked to free up space — survey, classify, verify, capture, delete, report.

EZotoff/ez-omo-config · 74 tokens

computer-use

OS-level computer use on the local X11 desktop via the cua-driver daemon: screenshots, AT-SPI element trees, background (co-work) mouse/keyboard input, and window management for NATIVE applications only. Use for native GUI apps without APIs, OS dialogs, and desktop automation; NOT for any browser/web task (use…

EZotoff/ez-omo-config · 82 tokens