Skip to content
Agentmart
Submit a tool

coding-discipline

Engineering-discipline checklist for writing new code — scope control, anti-overengineering, assumption surfacing, and verifiable success criteria.

Skill by diego81b

IndexedAGPL-3.0★ 2
Write a review

Chalk Labs

Need help deploying coding-discipline?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/diego81b-coding-discipline

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Engineering-discipline checklist for writing new code — scope control, anti-overengineering, assumption surfacing, and verifiable success criteria. Applied before and during implementation, distinct from the REFACTOR-time code-simplification checklist.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/coding-discipline

What's inside

Skill name
coding-discipline
Description
Engineering-discipline checklist for writing new code — scope control, anti-overengineering, assumption surfacing, and verifiable success criteria. Applied before and during implementation, distinct from the REFACTOR-time code-simplification checklist.
License
AGPL-3.0
Instructions
37 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: missing

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Coding Discipline

Shared reference for `implementer-tdd-agent`, `implementer-coder-agent`, `implementer-lead-agent`, and the four Layered Mode layer agents (`teammate-backend-agent`, `teammate-frontend-agent`, `teammate-database-agent`, `teammate-tests-agent`). Applied at the start of implementation, before any file is written — complements [`code-simplification`](../code-simplification/SKILL.md), which applies later, at the REFACTOR step once code already exists.

## Principles

### 1. Scope Discipline

Write the smallest change that satisfies the requirement. Don't rename unrelated identifiers, reformat untouched code, or "improve" a neighboring function while passing through it. A bug fix doesn't need surrounding cleanup; a one-shot operation doesn't need a helper extracted for reuse that doesn't exist yet.

For bug-type work specifically, tread carefully: default to the most surgical fix that resolves the defect without touching code paths the bug doesn't reach — working code already in production stays as it is, not "improved" in passing. If the minimal fix turns out not to be enough — the defect can't be resolved without touching adjacent code, an existing pattern has to change, or the fix ripples into files that aren't obviously part of it — don't decide that expansion alone. Surface it as a Risk in the Phase 0 plan (or ask directly when running standalone) so a human signs off on the wider scope at the existing approval gate, before it lands in the diff rather than after.

### 2. No Speculative Abstraction

Don't design for a hypothetical future requirement. A config flag, a generic plugin interface, or a strategy pattern needs at least two real call sites today to justify existing — one call site plus a guess about a second one later is not justification. Three similar lines of code are better than a premature abstraction built to avoid them.

### 3. Surface Assumptions

When a requirement is ambiguous, state the assumption being made — in the implementation plan or the output notes, not silently — instead of guessing and moving on without saying so. A wrong assumption that's visible can be corrected in one round-trip; a wrong assumption baked in silently surfaces as a bug report later.

### 4. Verifiable Success Criteria

Before writing code, know how its correctness will be checked: a specific test, a manual run with a concrete expected output, or a log line that proves the path was exercised. Don't declare a task done on the strength of "the code looks right" — if there's no way to verify it, that's a sign the task isn't actually scoped yet.

### 5. Trust Boundaries

Validate input only at system boundaries — user input, external API responses, data crossing a trust boundary. Don't add defensive checks, fallbacks, or error handling for states that are internally guaranteed not to occur (a value this same function just constructed, a parameter every caller already validates). Defensive code for an impossible case doesn't add safety — it adds a second, less-tested path.

### 6. Comments: WHY Only, Never Process Narration

A comment earns its place only by explaining a non-obvious technical WHY — a workaround, a hidden constraint, a subtle invariant. Never narrate the KAIROS pipeline itself: no ledger IDs (`C2`, `D7`, `Q3`), no phase names, no "per the architect's decision" or "per requirement R4" — that traceability already lives in `.kairos/<feature_folder>/ledger/` and the phase artifacts. Duplicating it into shipped code rots the moment `.kairos/` is deleted or the ledger moves on, and it reads as internal bookkeeping to anyone who didn't run this pipeline. Applies from PHASE 1 onward, and to test files the same as production code — a test narrating "implements C2, satisfies D7" is exactly this failure mode, not an exception to it.

## When Applying This Checklist Conflicts With a Written Contract

Contracts win. If `02-architecture.md`'s API/data-model contract, or an approved implementation plan, calls for something that reads as over-engineered by principle 2, follow the contract and flag the tension in the plan's Risks section rather than silently deviating from an already-approved design.

From diego81b/kairos-agents-framework, AGPL-3.0.

More from diego81b/kairos-agents-framework

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Oct 14, 2026 (16 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
AGPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from diego81b

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get coding-discipline running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying coding-discipline?

CallGet help
Cite this page

coding-discipline skill. Agent Mart. https://agentmart.dev/skills/diego81b-coding-discipline (last updated 2026-10-24)