agentleFS
kirtikirti/claude-power-modes/.github/copilot-instructions.md

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.

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
  1. Distinctive:

    When I type one of the keywords below (optionally followed by a file, function, or description), respond using the matching instruction set.

    line 9
  2. Distinctive:

    When I say STAFFENGINEER, review the code as a staff engineer would in a pull request.

    line 12
  3. Distinctive:

    When I say SECURITYMODE, review as a security engineer doing a threat-focused audit.

    line 15
  4. Distinctive:

    When I say PERFORMANCEMODE, review for performance.

    line 18
  5. Distinctive:

    When I say TESTMODE, write tests covering: happy path, edge cases, invalid input, and failure modes.

    line 21
  6. Distinctive:

    When I say REFMODE, refactor for maintainability only — no behavior changes.

    line 24
  7. Distinctive:

    When I say REVIEWMODE, draft your answer, then critique your own draft as a skeptical reviewer would — check for gaps, unstated …

    line 27
  8. Distinctive:

    When I say DOCSMODE, write documentation a new team member could follow with zero prior context.

    line 30
  9. Distinctive:

    If your organization has a company-wide Copilot instructions policy, check whether it overrides or merges with this file — some enterprise …

    line 55
  10. Distinctive:

    Keep this file and CLAUDE.md in sync manually for now — if a mode changes in one, update the other.

    line 56
  11. Distinctive:

    Run the test suite

    line 66

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

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.md and modes.json.

How to use these

Type the mode name, optionally followed by what to apply it to:

SECURITYMODE on src/auth/middleware.ts
TESTMODE for the checkout flow in src/checkout/

Modes can be combined:

SECURITYMODE then REVIEWMODE on the payments controller

Notes 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.md in 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 -->

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.