Your AI agents are untrained. Time to put them through the dojo.
Most teams using GitHub Copilot agents let them run wild — no discipline, no form, no kata. Drop a prompt, hope for the best, clean up the wreckage. That's not engineering. That's sparring with a blindfold on.
This dojo contains training scrolls, helper scripts, and automation that turn reckless agents into disciplined black belts.
skills.md — The Six Disciplines
The core kata. Copilot agents auto-discover this scroll and train on these disciplines:
- 🥋 Plan before striking — No wild swings. Agents plan multi-step work before touching code. Discipline over impulse.
- 🥋 Deploy your students — A master delegates. Subagents handle research, analysis, testing, and review. One task per subagent.
- 🥋 Learn from every fall — After every correction, agents capture the lesson with tags and metrics. Patterns feed back into skills.
- 🥋 Prove your technique — No kata is complete without demonstration. Tests, logs, diffs — show your work or it didn't happen.
- 🥋 Pursue elegant form — Brute force is for beginners. Challenge hacky solutions. But skip the kata for simple fixes — don't over-engineer.
- 🥋 Fix what's broken, solo — Reproduce, diagnose, fix, verify. Zero hand-holding. Zero context switching from the user.
.github/copilot-instructions.md — The Dojo Rules
The house rules that every agent follows when they enter your repo:
- Code standards — multi-stack examples (TypeScript, Python, Java, Go, .NET)
- Behavioral governance summary linking back to the disciplines
- Session-start lesson review workflow
- Helper script references for automation
Reusable scripts in /scripts/ to reduce token burn and enforce consistency:
| Script | Purpose |
|---|---|
scripts/init.sh |
Scaffolds tasks/todo.md and tasks/lessons.md on first clone |
scripts/lesson-updater.sh |
Scans lessons for recurring patterns (3+), proposes skill amendments |
scripts/verify.sh |
Pre-PR verification: tests, clean tree, plan check |
# Initialize the dojo in your repo
bash scripts/init.sh
# Check for patterns that should become skills
bash scripts/lesson-updater.sh
# Verify before submitting a PR
bash scripts/verify.shThe .github/workflows/dojo-enforce.yml GitHub Action runs on every PR to main:
- Checks that
tasks/todo.mdhas a real plan (not the default template) - Verifies
tasks/lessons.mdexists - Validates helper scripts are present
Inspired by cognee-style automation:
- Observe: After every correction, log a structured lesson in
tasks/lessons.mdwith YAML tags (error type, root cause, fix, rule). - Store: Lessons are tagged and queryable. Metrics track total lessons, recurring patterns, and amendment rate.
- Amend: When a pattern hits 3+ occurrences,
scripts/lesson-updater.shproposes a rule update toskills.md. - Evaluate: Track pre/post-fix metrics in
tasks/lessons.md. If a rule isn't working, revise it. - Rollback: Failed fixes get rolled back immediately. Failed rules get revised or removed.
Untrained agents:
- Rush in without a plan — all offense, no strategy
- Never learn from their losses
- Throw sloppy patches instead of finding the root cause
- Declare victory without proof
- Flood the context window like an undisciplined sparring partner
Trained agents operate like seasoned black belts — plan the approach, execute with precision, verify the outcome, learn from every round.
- Place
skills.mdat your repo root — Copilot agents auto-discover this scroll and begin training immediately - Place
.github/copilot-instructions.mdin your.github/folder — customize the Code Standards for your fighting style - Run
bash scripts/init.sh— scaffoldstasks/todo.mdandtasks/lessons.md - Watch the transformation — your agents will plan before coding, verify before bowing out, and grow stronger after every session
your-repo/
├── skills.md # The Six Disciplines (auto-discovered)
├── .github/
│ ├── copilot-instructions.md # The Dojo Rules
│ └── workflows/
│ └── dojo-enforce.yml # PR enforcement
├── scripts/
│ ├── init.sh # Dojo initialization
│ ├── lesson-updater.sh # Pattern scanner & amendment proposer
│ └── verify.sh # Pre-PR verification
└── tasks/
├── todo.md # Battle plan
└── lessons.md # Defeat log, metrics & prevention rules
The Code Standards in copilot-instructions.md ship with examples for multiple stacks:
- TypeScript 📘: strict mode, Vitest, Tailwind, Next.js App Router
- Python 🐍: pytest, Black, type hints, FastAPI/Django
- Java ☕: JUnit 5, Spring Boot, Maven/Gradle
- Go 🐹: standard library, table-driven tests
- .NET 🛡️: xUnit, clean architecture, nullable reference types
Pick your style. Delete the others. The Six Disciplines are style-agnostic.
Forged in real-world AI delivery. These disciplines emerged from running agents across production projects and learning what separates chaotic AI-assisted development from disciplined, battle-tested delivery.
See CONTRIBUTING.md for guidelines.
⭐ Star this dojo if you're done babysitting your AI agents. Fork it, train your agents, earn your belt.