agentleFS
andreaswasitaandreaswasita/copilot-agents-dojo/.github/copilot-instructions.md

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…

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
  1. Very specific:

    Always use TypeScript with strict: true

    line 8
  2. Distinctive:

    Follow Google Java Style Guide

    line 24
  3. Very specific:

    Follow standard library conventions and go fmt

    line 31
  4. Distinctive:

    Every non-trivial task follows this sequence:

    line 52
  5. Distinctive:

    [Verify before done](../skills/verify-before-done/SKILL.md): Run tests, check logs, diff against main.

    line 69
  6. Distinctive:

    Isolate: Create git worktree or feature branch.

    line 101
  7. Very specific:

    Plan: Write plan to tasks/todo.md with checkable items.

    line 102
  8. Very specific:

    Verify Before Done: Run scripts/verify.sh or manually run tests/diffs.

    line 105
  9. Very specific:

    Learn: Update tasks/lessons.md after corrections.

    line 107
  10. Distinctive:

    Use these for all sessions to ensure consistency.

    line 120
  11. Very specific:

    Read memory/INDEX.md at every session start

    line 137
  12. Distinctive:

    Use relative markdown links between files (not wikilinks)

    line 138
  13. Very specific:

    Run scripts/link-index.sh after creating or editing memory files

    line 139

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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 testing package
  • 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
  1. Brainstorming → Socratic design refinement, get approval
  2. Using git worktrees → Isolated workspace on feature branch
  3. Plan before code → Break into tasks in tasks/todo.md
  4. Executing plans → One task at a time, verify each
  5. Test writing → RED-GREEN-REFACTOR for every change
  6. Requesting code review → Self-review against plan
  7. Finishing a development branch → Verify, merge decision, cleanup
  8. 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.md after 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

  1. Session Start: Load superpowers. Read memory/INDEX.md. Review tasks/lessons.md. Check git status.
  2. Brainstorm: For new features, refine design via Socratic questioning. Get approval.
  3. Isolate: Create git worktree or feature branch. Verify clean test baseline.
  4. Plan: Write plan to tasks/todo.md with checkable items.
  5. Execute: One task at a time. Verify after each. Commit per task.
  6. Review: Self-review against plan after each task/batch.
  7. Verify Before Done: Run scripts/verify.sh or manually run tests/diffs.
  8. Finish: Present merge options. Clean up worktree. Log lessons.
  9. Learn: Update tasks/lessons.md after corrections. Promote 3+ patterns to memory/patterns/. Record decisions in memory/decisions/. Write session summary to memory/sessions/. Run scripts/link-index.sh.

Helper Scripts

The /scripts/ directory contains automation helpers. Reference them in your workflow:

  • scripts/init.sh — Scaffolds tasks/todo.md and tasks/lessons.md on first clone.
  • scripts/lesson-updater.sh — Scans tasks/lessons.md for recurring patterns (3+ occurrences) and proposes rule amendments to skills.md.
  • scripts/verify.sh — Pre-PR verification: runs tests, checks for uncommitted changes, validates that tasks/todo.md has a plan.
  • scripts/link-index.sh — Builds the memory vault link graph. Scans memory/ for markdown links, generates backlink sections, updates memory/INDEX.md stats, and writes memory/.link-graph.json for programmatic queries.
  • scripts/memory-query.sh — Query the memory vault by tag, type, date, status, or free text. Use --backlinks-for to find what references a file. Lightweight Dataview replacement.
  • scripts/obsidian-sync.sh — Syncs tasks/lessons.md into the memory vault as memory/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 above

Rules:

  • Read memory/INDEX.md at every session start
  • Use relative markdown links between files (not wikilinks)
  • Run scripts/link-index.sh after creating or editing memory files
  • Query with scripts/memory-query.sh before reading every file manually
  • Templates in each subdirectory (_template.md) define the required structure

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.