code-discipline

Enforce minimal, surgical code edits with documented assumptions and success criteria.

Updated May 5, 2026
One-click install
npx skills add https://github.com/shakhovskiya-create/shakhoff-claude-marketplace --skill code-discipline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-discipline
Source: https://github.com/shakhovskiya-create/shakhoff-claude-marketplace/tree/main/plugins/solo-sdlc/skills/code-discipline
Command: npx skills add https://github.com/shakhovskiya-create/shakhoff-claude-marketplace --skill code-discipline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce minimal, surgical edits and explicit goals in every code change to reduce waste, surface assumptions, and scope creep during development.

Core Features & Use Cases

  • Minimal-change rule enforcement: every edit targets only the requested change.
  • Surface assumptions and explicit goals: the editor documents assumptions and success criteria with each patch.
  • Use cases include bug fixes, small refinements, and feature updates where clarity and verifiability matter.

Quick Start

Apply the code-discipline rules to the current edit, ensuring minimal changes, surface assumptions, and explicit success criteria.

Frequently Asked Questions about code-discipline

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

FAQPage Schema
How do I enforce minimal surgical edits when applying LLM coding to fix bugs?

To enforce minimal surgical edits during LLM coding, you need a discipline that restricts modifications to only the requested change. This approach requires clear change descriptions, documented assumptions, and verifiable success criteria for every patch to prevent bloated or buggy code.

What is the best way to prevent scope creep and surface assumptions during code refactoring?

The best way to prevent scope creep during code refactoring is to apply minimum-change coding discipline. This practice forces explicit documentation of assumptions and success criteria with each patch, ensuring edits remain surgical and verifiable across any language or project.

How do I document explicit goals and success criteria for feature updates?

To document explicit goals for feature updates, apply a coding discipline that requires documenting assumptions and verifiable success criteria as part of every patch. This ensures clarity and prevents unintended side effects during modifications.

Can I use minimum-change coding discipline for any programming language and project size?

Yes, you can apply minimum-change coding discipline to any programming language and project size. The discipline enforces surgical edits and explicit reasoning universally across bug fixes, feature updates, and refactors without requiring specific dependencies.

Why does LLM coding generate bloated or buggy edits during small refinements?

LLM coding generates bloated or buggy edits during small refinements when it lacks a strict minimal-change rule. Without enforcing surgical edits and explicit reasoning, modifications easily exceed the requested scope and introduce unintended side effects.

When should I not use surgical edits for code modifications?

You should reconsider surgical edits when a feature update requires a broad architectural overhaul rather than a targeted modification. Minimum-change discipline is designed for bug fixes, small refinements, and explicit feature updates where verifiable, minimal patches are necessary.