disciplined-coding

disciplined-coding is a skill for Claude Code from bhaumikmaan/claude-code-master-skills. It costs 54 tokens per session (1,338 once invoked), scanned C, original, MIT.

A set of rules for making focused code changes. It tells the agent to understand the relevant code first and avoid unrelated features, refactoring, comments, or abstractions.

In plain words
What is it for?
Use it when fixing bugs, adding features, or changing existing code while keeping the implementation small and directly tied to the request.
Why use it?
It reduces unnecessary changes and keeps bug fixes and features limited to the requested scope. This makes the result easier to review and less likely to introduce new problems.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when fixing bugs, adding features, or changing existing code while keeping the implementation small and directly tied to the request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bhaumikmaan/claude-code-master-skills/disciplined-coding
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 bhaumikmaan/claude-code-master-skills --skill disciplined-coding
Clone the repo
git clone --depth 1 https://github.com/bhaumikmaan/claude-code-master-skills

Made for: Claude Code.

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 disciplined-coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/disciplined-coding/github.svg)](https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/disciplined-coding)
Your own site
<a href="https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/disciplined-coding"><img src="https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/disciplined-coding/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 disciplined-coding

Your own site · 80×15
<a href="https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/disciplined-coding"><img src="https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/disciplined-coding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,338 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00054 $0.01338
Opus 5 $0.00027 $0.00669
Sonnet 5 $0.00011 $0.00268
Haiku 4.5 $0.00005 $0.00134

Measured 9d ago against content hash e675d363a871, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

disciplined-coding scanned grade C with 1 finding 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 9d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Destructive: deleting files/branches, dropping tables, `rm -rf`, overwriting uncommitted changes
skills/disciplined-coding/SKILL.md · 100 lines

How it starts

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

Disciplined Coding

CRITICAL: Apply these constraints to every code change. They override your default tendencies.

Scope Discipline

  • Do exactly what was asked. A bug fix does not need surrounding code cleaned up. A feature does not need extra configurability.
  • Don't add features, refactor code, or make "improvements" beyond the request.
  • Don't add docstrings, comments, or type annotations to code you didn't change.
  • Don't create helpers, utilities, or abstractions for one-time operations.
  • Don't design for hypothetical future requirements. Three similar lines of code is better than a premature abstraction.
  • The right amount of complexity is what the task actually requires -- no speculative abstractions, but no half-finished implementations either.

Read Before You Edit

  • Never propose changes to code you haven't read. Read the file first, understand it, then modify.
  • Use Grep with -C 3 context flags to understand code around a match before deciding to read the full file. Glob returns paths (near-zero tokens), Grep returns matched lines (lightweight), Read returns full content (heavy) -- always narrow before you read.
  • Prefer editing existing files over creating new ones. New files cause bloat; existing files build on prior work.
  • Only create files when absolutely necessary for the goal.

Language Conventions

  • Follow the target language's idiomatic conventions: null safety in C#/Kotlin, Result/Option types in Rust, error values in Go, strict mode in TypeScript. Don't transpose patterns from one language onto another.
  • Use the project's established naming conventions (PascalCase for C# methods, snake_case for Python, camelCase for JS/TS) — detect from existing code, don't impose a default.

Error Handling and Validation

  • Don't add error handling, fallbacks, or validation for scenarios that can't happen.
  • Trust internal code and framework guarantees. Only validate at system boundaries (user input, external APIs).
  • Don't use feature flags or backwards-compatibility shims when you can just change the code.
  • Avoid backwards-compatibility hacks like renaming unused _vars, re-exporting types, or adding // removed comments. If something is unused, delete it.

Read the full file on GitHub · 100 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 100 lines · 54 tokens per session scan C e675d363a871

Subscribe to this mod's changes

disciplined-coding is a skill published in the GitHub repository bhaumikmaan/claude-code-master-skills (3 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 1,338 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

happiness-skill

A Chinese-language guide to happiness based on reducing unmet wants, focusing on the present, and treating happiness as a trainable skill.

kangarooking/cangjie-skill · 136 tokens

setup-matt-pocock-skills

A setup skill that configures engineering skills for a repository, including its issue tracker, labels, and documentation layout. A repository is the project folder managed by version control.

devcxl/mattpocock-skills-zh · 43 tokens

frontend-design

A design guide for building polished web interfaces such as pages, dashboards, forms, navigation, and reusable UI components. It covers HTML, CSS, JavaScript, and common frontend frameworks.

AnastasiyaW/codex-claude-code-config · 264 tokens

alterlab-cobrapy

Build and analyze genome-scale constraint-based metabolic models with COBRApy — flux balance analysis (FBA), flux variability analysis (FVA), gene and reaction knockouts, flux sampling, and SBML model I/O. Use when simulating metabolic networks, predicting growth or knockout phenotypes, or running systems-biology and…

AlterLab-IEU/AlterLab-Academic-Skills · 91 tokens

alterlab-depmap

Query the Cancer Dependency Map (DepMap) for cancer cell line gene dependency scores (CRISPR Chronos), drug sensitivity data, and gene effect profiles. Use when identifying cancer-specific genetic vulnerabilities, finding synthetic lethal interactions, checking whether a gene is essential in given cell lines, or…

AlterLab-IEU/AlterLab-Academic-Skills · 77 tokens

alterlab-syllabus-ai-policy

Drafts course-level generative-AI use policies and syllabus statements: assigns each graded task a permitted/restricted/prohibited tier (modeled on Cornell's prohibit/allow-with-attribution/encourage framework), writes the disclosure clause with a verbatim APA (OpenAI, 2023) or MLA Works Cited citation template for…

AlterLab-IEU/AlterLab-Academic-Skills · 222 tokens