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.