copilot-agents-dojo
Copilot instructions54 starsChanged 6 months agoMITView on GitHub
Customize this section for your stack. Examples for common fighting styles: Pick your style. Delete the others or keep them as reference. At session start: read SOUL.md first — the identity charter defining who the agent is, how it reasons, and where its limits are — then load all skills from skills/. Follow the mandatory workflow. Never improvise. See skills.md for the full skills index. Each skill is a self-contained folder under skills/ with a SKILL.md file. Load the relevant…
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architecture-sketchingSkill
- autonomous-bug-fixSkill
- behavioral-foundationSkill
- brainstormingSkill
- codebase-onboardingSkill
- code-reviewSkill
- debuggingSkill
- demand-eleganceSkill
- derive-nfr-from-driverSkill
- derive-security-from-riskSkill
- dispatching-parallel-agentsSkill
- durable-workSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- plan-before-codeSkill
- pr-workflowSkill
- receiving-code-reviewSkill
- refactoringSkill
- requesting-code-reviewSkill
- requirements-elicitationSkill
- safety-guardrailsSkill
- security-auditSkill
- self-improvementSkill
- subagent-strategySkill
- test-writingSkill
- traceability-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verify-before-doneSkill
- template-skillSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Always use TypeScript with strict: true
- Distinctive: line 24
Follow Google Java Style Guide
- Very specific: line 31
Follow standard library conventions and go fmt
- Distinctive: line 52
Every non-trivial task follows this sequence:
- Distinctive: line 69
[Verify before done](../skills/verify-before-done/SKILL.md): Run tests, check logs, diff against main.
- Distinctive: line 101
Isolate: Create git worktree or feature branch.
- Very specific: line 102
Plan: Write plan to tasks/todo.md with checkable items.
- Very specific: line 105
Verify Before Done: Run scripts/verify.sh or manually run tests/diffs.
- Very specific: line 107
Learn: Update tasks/lessons.md after corrections.
- Distinctive: line 120
Use these for all sessions to ensure consistency.
- Very specific: line 137
Read memory/INDEX.md at every session start
- Distinctive: line 138
Use relative markdown links between files (not wikilinks)
- Very specific: line 139
Run scripts/link-index.sh after creating or editing memory files
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions
Code Standards
Customize this section for your stack. Examples for common fighting styles:
TypeScript (Default Example)
- Always use TypeScript with
strict: true - Naming: camelCase for variables/functions, PascalCase for components/types
- Styling: Tailwind CSS + shadcn/ui components
- Testing: Write Vitest tests for every new component/logic
- Architecture: Next.js App Router, Server Actions, React Server Components when possible
- Security: Never commit secrets, use environment variables
Python
- Type hints on all function signatures
- Formatting: Black (line length 88)
- Testing: pytest with fixtures, aim for >80% coverage
- Linting: ruff or flake8
- Architecture: FastAPI or Django conventions as applicable
- Dependency management: pyproject.toml / requirements.txt pinned
Java
- Follow Google Java Style Guide
- Testing: JUnit 5 + Mockito for unit tests
- Build: Maven or Gradle (match existing project)
- Architecture: Spring Boot patterns, constructor injection
- Security: OWASP dependency check in CI
Go
- Follow standard library conventions and
go fmt - Testing: table-driven tests with
testingpackage - Error handling: explicit, no panic in library code
- Architecture: clean package boundaries, interfaces for testability
.NET
- Nullable reference types enabled
- Testing: xUnit + FluentAssertions
- Architecture: clean architecture, MediatR for CQRS if applicable
- Security: never log PII, use IOptions pattern for config
Pick your style. Delete the others or keep them as reference.
Superpowers Activated
At session start: read SOUL.md first — the identity charter defining who the agent is, how it reasons, and where its limits are — then load all skills from skills/. Follow the mandatory workflow. Never improvise.
See skills.md for the full skills index. Each skill is a self-contained folder under skills/ with a SKILL.md file. Load the relevant skill when its trigger conditions are met.
Mandatory Workflow Pipeline
Every non-trivial task follows this sequence:
BRAINSTORM → WORKTREE → PLAN → EXECUTE → TEST → REVIEW → FINISH → LEARN- Brainstorming → Socratic design refinement, get approval
- Using git worktrees → Isolated workspace on feature branch
- Plan before code → Break into tasks in
tasks/todo.md - Executing plans → One task at a time, verify each
- Test writing → RED-GREEN-REFACTOR for every change
- Requesting code review → Self-review against plan
- Finishing a development branch → Verify, merge decision, cleanup
- Self-improvement → Log lessons, update metrics
Core Kata — 基本型 (always active)
- Plan before code: Enter plan mode for any non-trivial task (3+ steps). Write plan to
tasks/todo.md. - Verify before done: Run tests, check logs, diff against main. Never mark complete without proof.
- Subagent strategy: Offload research and parallel analysis to subagents. Keep context clean.
- Self-improvement: Capture lessons in
tasks/lessons.mdafter any correction. Review at session start. - Demand elegance: Challenge shortcuts on non-trivial changes. Skip for simple fixes — don't over-engineer.
- Autonomous bug fix: Reproduce → diagnose → fix → verify. Zero hand-holding. No context switching from the user.
Flow Waza — 流れ技 (activate in sequence)
- Brainstorming: Refine ideas via Socratic questioning before code
- Using git worktrees: Isolated workspace for every session
- Executing plans: Dispatch and execute tasks from todo.md
- Requesting code review: Self-review against plan between tasks
- Receiving code review: Process feedback and iterate
- Finishing a development branch: Final verification + merge + cleanup
- Dispatching parallel agents: Concurrent sub-agent work when beneficial
Practical Kumite — 実践組手 (load on demand)
- Code review: For reviewing PRs or diffs
- Refactoring: For restructuring code safely
- Test writing: For writing meaningful tests
- PR workflow: For preparing merge-ready PRs
- Debugging: For systematic complex debugging
- Codebase onboarding: For understanding unfamiliar repos
Meta Dō — 道
- Skill creator: For creating new custom skills
- Writing skills: SKILL.md template and spec compliance
- Using superpowers: Framework activator — loads everything
Task Management
- Session Start: Load superpowers. Read
memory/INDEX.md. Reviewtasks/lessons.md. Check git status. - Brainstorm: For new features, refine design via Socratic questioning. Get approval.
- Isolate: Create git worktree or feature branch. Verify clean test baseline.
- Plan: Write plan to
tasks/todo.mdwith checkable items. - Execute: One task at a time. Verify after each. Commit per task.
- Review: Self-review against plan after each task/batch.
- Verify Before Done: Run
scripts/verify.shor manually run tests/diffs. - Finish: Present merge options. Clean up worktree. Log lessons.
- Learn: Update
tasks/lessons.mdafter corrections. Promote 3+ patterns tomemory/patterns/. Record decisions inmemory/decisions/. Write session summary tomemory/sessions/. Runscripts/link-index.sh.
Helper Scripts
The /scripts/ directory contains automation helpers. Reference them in your workflow:
scripts/init.sh— Scaffoldstasks/todo.mdandtasks/lessons.mdon first clone.scripts/lesson-updater.sh— Scanstasks/lessons.mdfor recurring patterns (3+ occurrences) and proposes rule amendments toskills.md.scripts/verify.sh— Pre-PR verification: runs tests, checks for uncommitted changes, validates thattasks/todo.mdhas a plan.scripts/link-index.sh— Builds the memory vault link graph. Scansmemory/for markdown links, generates backlink sections, updatesmemory/INDEX.mdstats, and writesmemory/.link-graph.jsonfor programmatic queries.scripts/memory-query.sh— Query the memory vault by tag, type, date, status, or free text. Use--backlinks-forto find what references a file. Lightweight Dataview replacement.scripts/obsidian-sync.sh— Syncstasks/lessons.mdinto the memory vault asmemory/patterns/candidates.
Use these for all sessions to ensure consistency.
Memory Vault
The memory/ directory is the agent's persistent knowledge graph. It replaces flat-file memory with structured, linked knowledge.
memory/
├── INDEX.md ← Map of Content (read this first)
├── .link-graph.json ← Machine-readable link graph
├── decisions/ ← Architectural decisions with context
├── patterns/ ← Proven rules promoted from lessons (3+ occurrences)
├── preferences/ ← User behavioral preferences (learned over time)
└── sessions/ ← Session summaries linking to everything aboveRules:
- Read
memory/INDEX.mdat every session start - Use relative markdown links between files (not wikilinks)
- Run
scripts/link-index.shafter creating or editing memory files - Query with
scripts/memory-query.shbefore reading every file manually - Templates in each subdirectory (
_template.md) define the required structure
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

