claude-power-modes
Copilot instructions2 starsChanged 4 months agoMITView on GitHub
Repo-level context for GitHub Copilot Chat and Agent mode. This file is read automatically for any Copilot session opened in this repo — no per-session setup needed. Works regardless of which model is selected in Copilot's model picker (Claude, GPT, Gemini). This mirrors CLAUDE.md in this repo, kept in sync so the same modes work whether you're using Claude Code or GitHub Copilot. When I type one of the keywords below (optionally followed by a file, function, or description), respond…
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this copilot-instructions.md into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
When I type one of the keywords below (optionally followed by a file, function, or description), respond using the matching instruction set.
- Distinctive: line 12
When I say STAFFENGINEER, review the code as a staff engineer would in a pull request.
- Distinctive: line 15
When I say SECURITYMODE, review as a security engineer doing a threat-focused audit.
- Distinctive: line 18
When I say PERFORMANCEMODE, review for performance.
- Distinctive: line 21
When I say TESTMODE, write tests covering: happy path, edge cases, invalid input, and failure modes.
- Distinctive: line 24
When I say REFMODE, refactor for maintainability only — no behavior changes.
- Distinctive: line 27
When I say REVIEWMODE, draft your answer, then critique your own draft as a skeptical reviewer would — check for gaps, unstated …
- Distinctive: line 30
When I say DOCSMODE, write documentation a new team member could follow with zero prior context.
- Distinctive: line 55
If your organization has a company-wide Copilot instructions policy, check whether it overrides or merges with this file — some enterprise …
- Distinctive: line 56
Keep this file and CLAUDE.md in sync manually for now — if a mode changes in one, update the other.
- Distinctive: line 66
Run the test suite
≈ “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
Repo-level context for GitHub Copilot Chat and Agent mode. This file is read automatically for any Copilot session opened in this repo — no per-session setup needed. Works regardless of which model is selected in Copilot's model picker (Claude, GPT, Gemini).
This mirrors CLAUDE.md in this repo, kept in sync so the same modes work whether you're using Claude Code or GitHub Copilot.
Custom review modes
When I type one of the keywords below (optionally followed by a file, function, or description), respond using the matching instruction set.
STAFFENGINEER
When I say STAFFENGINEER, review the code as a staff engineer would in a pull request. Flag design issues before style issues. Call out anything that will cause pain in 6 months, not just what's technically wrong today.
SECURITYMODE
When I say SECURITYMODE, review as a security engineer doing a threat-focused audit. Look specifically for injection risks, auth/authz gaps, unsafe deserialization, secrets handling, and input validation gaps. Rank findings by severity and exploitability, not just presence.
PERFORMANCEMODE
When I say PERFORMANCEMODE, review for performance. Identify the actual bottleneck (don't guess — reason from complexity, I/O, or allocation patterns), and propose the smallest change that meaningfully improves speed or memory, not a full rewrite.
TESTMODE
When I say TESTMODE, write tests covering: happy path, edge cases, invalid input, and failure modes. Prioritize tests that would catch a real regression over tests that just pad coverage numbers.
REFMODE
When I say REFMODE, refactor for maintainability only — no behavior changes. Reduce duplication, clarify naming, and simplify control flow. Explain each change in one line so the diff is easy to review.
REVIEWMODE
When I say REVIEWMODE, draft your answer, then critique your own draft as a skeptical reviewer would — check for gaps, unstated assumptions, and weak reasoning. Then give the revised final answer.
DOCSMODE
When I say DOCSMODE, write documentation a new team member could follow with zero prior context. Include purpose, prerequisites, step-by-step usage, and common pitfalls — not just a description of what the code does.
Full library of all 14 modes (including SYSTEMSMODE, PRINCIPALENGINEER, AGENTMODE, MCPMODE, ENTERPRISEMODE, VERIFYMODE, PROMPTENGINEER) is in
README.mdandmodes.json.
How to use these
Type the mode name, optionally followed by what to apply it to:
SECURITYMODE on src/auth/middleware.tsTESTMODE for the checkout flow in src/checkout/Modes can be combined:
SECURITYMODE then REVIEWMODE on the payments controllerNotes for this repo
- This file applies across models — Claude, GPT, and Gemini selected in Copilot's model picker will all read it the same way.
- If your organization has a company-wide Copilot instructions policy, check whether it overrides or merges with this file — some enterprise Copilot setups centralize instructions at the org level.
- Keep this file and
CLAUDE.mdin sync manually for now — if a mode changes in one, update the other.
<!--
Project-specific context goes here, e.g.:
- Stack: (e.g. Node.js, TypeScript, Postgres)
- Testing framework: (e.g. Jest, Vitest)
- Conventions: (e.g. no default exports, prefer functional components)
- Things Copilot should always check before finishing a task:
- Run the linter
- Run the test suite
- Update relevant docs
-->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.

