disciplined-coding

Enforce minimal, scoped code changes with read-before-edit and user approval.

3|1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/bhaumikmaan/claude-code-master-skills --skill disciplined-coding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: disciplined-coding
Source: https://github.com/bhaumikmaan/claude-code-master-skills/tree/main/skills/disciplined-coding
Command: npx skills add https://github.com/bhaumikmaan/claude-code-master-skills --skill disciplined-coding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Disciplined‑coding enforces scoped, minimal, correct code changes, preventing gold‑plating, speculative abstractions, and unsolicited refactoring.

Core Features & Use Cases

  • Scope Discipline: Limits modifications strictly to the requested task, avoiding extra features or cleanup.
  • Read‑Before‑Edit: Mandates grepping and reading files before editing, ensuring token‑efficient navigation.
  • Language Conventions & Error Handling: Applies project‑specific idioms and minimal validation at system boundaries.
  • Comment Policy: Encourages no comments unless the “why” is non‑obvious.
  • Safe Action Execution: Classifies actions by reversibility and requires user approval for destructive steps.
  • Failure Handling & Completion Standards: Provides robust diagnostics, verification, and honest reporting.
  • Security Awareness: Checks for common vulnerabilities.

Use case: When fixing a bug or adding a feature, invoke this skill to keep changes tight, safe, and well‑documented.

Quick Start

Ask the agent to apply disciplined‑coding before making any code modification.

Frequently Asked Questions about disciplined-coding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent gold-plating and keep code changes minimal during bug fixes?

Preventing gold-plating requires enforcing strict scope discipline to limit modifications to the requested task. You can mandate reading files before editing, avoiding speculative abstractions and unsolicited refactoring during bug fixes.

What is the best way to ensure code safety when modifying existing project files?

Code safety is ensured by classifying actions by reversibility and requiring user approval for destructive steps. You should grep files before editing to understand context and apply minimal validation at system boundaries.

How do I stop automated refactoring tools from making unsolicited code changes?

To stop unsolicited refactoring, enforce a scope discipline policy that limits modifications strictly to the requested task. This prevents speculative abstractions and extra cleanup that introduce risk during feature additions.

When should I use a disciplined coding approach for feature additions?

Use a disciplined coding approach during feature additions, bug fixes, or any code alteration requiring focused implementation. It keeps changes tight, safe, and well-documented by respecting language conventions and limiting comments.

What comment policy should I apply to keep code changes minimal and focused?

A minimal comment policy encourages no comments unless the reasoning is non-obvious. This keeps code changes focused, avoids clutter, and ensures modifications remain strictly scoped to the requested task without unsolicited refactoring.

Do I need to grep files before editing to maintain code safety?

Yes, grepping and reading files before editing is required to ensure token-efficient navigation and maintain code safety. It verifies context, respects language conventions, and prevents destructive actions before making changes.