Ships with octo. Installing the plugin gets this command.
⚡ How it fires
How this command gets triggered: by you, by Claude, or both.
Fires itselfClaude auto-loads it when your prompt matches the work.
You can call itInvoke it directly when you want it.
Slash command/discipline
👁️ Context preview
What this command does when you run it.
Toggle discipline mode — auto-invoke verification, brainstorming-before-coding, and review checks
📊 Stats
Stars3,869
Forks362
LanguageShell
LicenseMIT
📦 Ships with octo
</> Command definition
discipline.md
---command: discipline
description: Toggle discipline mode — auto-invoke verification, brainstorming-before-coding, and review checks
---# Discipline Mode
Toggle automatic skill invocation for development discipline.
## Usage
```
/octo:discipline on — enable auto-invoke discipline checks
/octo:discipline off — disable (back to manual invoke only)
/octo:discipline status — show current state
```
## What Discipline Mode Does
When **on**, you MUST follow these rules automatically — no user prompt needed:
### Development Gates
**1. Brainstorm gate** — Before writing ANY code or making changes, check:
- Has the approach been discussed/planned? If not, invoke `skill-thought-partner` or `skill-writing-plans`
- This applies even for "simple" changes
**2. Verification gate** — Before saying "done", "fixed", "passing", or committing, invoke `skill-verification-gate`:
- Run the actual verification command, read output, only claim success with evidence
**3. Review gate** — After completing any non-trivial code change, automatically:
- Spec compliance check + code quality review via subagent
**4. Response gate** — When receiving code review feedback, invoke `skill-review-response`:
- Verify feedback against actual code before implementing
**5. Investigation gate** — When encountering ANY bug, error, or test failure, invoke `skill-debug`:
- Root cause investigation before proposing fixes
### Knowledge Work Gates
**6. Context gate** — At the start of any task, detect dev vs knowledge work. If research, writing, design, or strategy — switch to KM mode. Use `skill-context-detection`.
**7. Decision gate** — When comparing options or evaluating trade-offs, present a structured comparison with criteria and scores — not just prose pros/cons. Use `skill-decision-support`.
**8. Intent gate** — Before any creative or writing task (README, docs, copy, design), lock in the goal and audience first. Validate output against locked goals. Use `skill-intent-contract`.
## How It Works
When the user runs `/octo:discipline on`, persist the setting:
The SessionStart hook reads this file and injects the discipline directive into the session context. The directive is ~30 lines (not 200+) — lightweight enough to not bloat context.