Naoufal's AI coding discipline
Three rules that keep AI coding agents honest, small enough to paste into any agent's instructions.
What it is
Coding Discipline is a free skill for AI coding agents: three rules, nothing else. It works with Claude Code, ChatGPT, Codex, OpenClaw, Hermes, or any workflow where a language model writes, edits, deploys or debugs code.
The three rules
- Study the technology before touching the code. Read how the live system actually runs. If you do not understand it, you do not edit it.
- A job can take more than one run. A todo list is a must. Track the real steps. Do not fake “done” to close the turn.
- Never trust a subagent. Always give him the context. A child summary is a self-report. Verify side effects yourself. Fat brief, explicit bar.
How to use it
Paste the rules into whatever instructions file your tool already reads:
| Tool | File |
|---|---|
| Claude Code | CLAUDE.md |
| Codex CLI, OpenClaw | AGENTS.md |
| Hermes | a skill in your skills/ folder |
| Cursor, Windsurf | the rules file |
| ChatGPT, Gemini, Grok | custom instructions, or the first message |
The repository holds the full SKILL.md and a minimal paste-in version of the same rules. Copy it from GitHub and give it to your agents.