copilot-agents-dojo: Instructions file for GitHub Copilot

.github/copilot-instructions.md

copilot-agents-dojo copilot-instructions.md is an instructions file for GitHub Copilot from andreaswasita/copilot-agents-dojo. It costs 2,111 tokens per session, scanned A, original, MIT.

A set of coding rules for GitHub Copilot agents, with examples for TypeScript, Python, Java, and Go projects.

In plain words
What is it for?
Use it to guide code changes in projects that need consistent language-specific standards, tests, dependency management, and security practices.
Why use it?
It gives an agent clear expectations for naming, formatting, testing, architecture, dependencies, and security instead of leaving those choices implicit.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions subagents.

This is andreaswasita/copilot-agents-dojo's own configuration. It tells GitHub Copilot how to work on copilot-agents-dojo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything copilot-agents-dojo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to andreaswasita/copilot-agents-dojo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/andreaswasita/copilot-agents-dojo/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for copilot-agents-dojo copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/andreaswasita/copilot-agents-dojo/copilot-instructions.svg)](https://agentmods.dev/instructions/andreaswasita/copilot-agents-dojo/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/andreaswasita/copilot-agents-dojo/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/andreaswasita/copilot-agents-dojo/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,111 This file is loaded in full into every session.
When invoked 2,111 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02111 $0.02111
Opus 5 $0.01056 $0.01056
Sonnet 5 $0.00422 $0.00422
Haiku 4.5 $0.00211 $0.00211

Measured 7d ago against content hash 2ca2e3995723, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

copilot-agents-dojo copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 142 lines · 2,111 tokens per session scan A 2ca2e3995723

Subscribe to this mod's changes

copilot-agents-dojo copilot-instructions.md is an instructions file published in the GitHub repository andreaswasita/copilot-agents-dojo (51 stars, last pushed 1mo ago), licensed MIT. It adds 2,111 tokens to every session, about $0.0106 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories