chipfighter/coding-discipline

Workflow-agnostic guardrails for AI coding agents: spec sync + risk-triggered engineering discipline for Claude Code and Codex.

6Stars on the repository
12Mods indexed here, across every type
1mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

brainstorming

01

chipfighter/coding-discipline

Skill Claude CodeCodex

Use before coding when requirements have multiple reasonable interpretations, approaches require tradeoffs, or mistakes would be costly (permissions/payments/data migration/public APIs/data structures/hard-to-revert changes). Clarify requirements and design one question at a time, then get approval before…

6 1mo ago A 83 tokens original MIT

code-review

02

chipfighter/coding-discipline

Skill Claude CodeCodex

Use when changes affect interactions across multiple modules, involve high-risk areas (authorization/authentication, payments/funds, data deletion/migration, public APIs/cross-service interfaces/security boundaries), or the user requests a review. Review in this order—correctness → requirements → security → simplicity…

6 1mo ago A 104 tokens original MIT

context-hygiene

03

chipfighter/coding-discipline

Skill Claude CodeCodex

Use when starting a project, reading project documentation or history, or resolving conflicts between documents. For current state, read only the latest documents designated by the project; do not proactively read archives; do not duplicate the spec; use long-term memory only for environment, people, and preferences…

6 1mo ago A 67 tokens original MIT

git-flow

04

chipfighter/coding-discipline

Skill Claude CodeCodex

Use when creating a branch, using worktrees for parallel work, committing, or wrapping up. Covers branch naming, conventional commits, short-lived branches, worktree isolation, and final merge/cleanup.

6 1mo ago A 43 tokens original MIT

spec-sync

05

chipfighter/coding-discipline

Skill Claude CodeCodex

Use in cross-session work when user-confirmed outcomes, non-goals, hard constraints, or acceptance criteria have not been written back to the current source of truth (spec), or reality conflicts with it enough that following it would be wrong; also use during wrap-up or handoff when a source of truth should exist but…

6 1mo ago A 120 tokens original MIT

chipfighter/coding-discipline

Skill Claude CodeCodex

Use before proposing a permanent fix for bugs, test failures, or unexpected behavior with an unknown root cause—mandatory when symptoms are far from the cause, a prior fix failed, or the issue crosses components. Reproduce, trace backward to the root cause, fix once at the source, and add a regression test. Do not…

6 1mo ago A 92 tokens original MIT

tdd

07

chipfighter/coding-discipline

Skill Claude CodeCodex

Use before implementation when behavior can be verified by automated tests and regression coverage has clear value. For bugs with an unknown root cause, use systematic-debugging first, then return for red-green. Follow red-green-refactor—write a failing test first, add only enough code to pass it, then refactor. Do…

6 1mo ago A 85 tokens original MIT

verify-before-done

08

chipfighter/coding-discipline

Skill Claude CodeCodex

Use before claiming "done", "fixed", "tested", or "it runs", and before committing or opening a PR or MR—no task is exempt. Accept only evidence gathered after the last relevant change and just sufficient to prove the claim; do not over-verify small changes.

6 1mo ago A 62 tokens original MIT