claude-power-modes
CLAUDE.md2 starsChanged 4 months agoMITView on GitHub
Project context and custom instructions for Claude Code. These are shorthand modes you can invoke by name during a session. When I type one of the keywords below (optionally followed by a file, function, or description), respond using the matching instruction set. Want more modes (SYSTEMSMODE, PRINCIPALENGINEER, AGENTMODE, MCPMODE, ENTERPRISEMODE, VERIFYMODE, PROMPTENGINEER)? See the full library and copy-pasteable definitions in README.md. Type the mode name, optionally followed by what to apply it to: Modes can be combined: - Stack: (e.g.…
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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 10
When I say STAFFENGINEER, review the code as a staff engineer would in a pull request.
- Distinctive: line 13
When I say SECURITYMODE, review as a security engineer doing a threat-focused audit.
- Distinctive: line 16
When I say PERFORMANCEMODE, review for performance.
- Distinctive: line 19
When I say TESTMODE, write tests covering: happy path, edge cases, invalid input, and failure modes.
- Distinctive: line 22
When I say REFMODE, refactor for maintainability only — no behavior changes.
- Distinctive: line 25
When I say REVIEWMODE, draft your answer, then critique your own draft as a skeptical reviewer would — check for gaps, unstated …
- Distinctive: line 28
When I say DOCSMODE, write documentation a new team member could follow with zero prior context.
- Distinctive: line 60
Run the test suite
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md
Project context and custom instructions for Claude Code.
Custom review modes
These are shorthand modes you can invoke by name during a session. 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.
Want more modes (SYSTEMSMODE, PRINCIPALENGINEER, AGENTMODE, MCPMODE, ENTERPRISEMODE, VERIFYMODE, PROMPTENGINEER)? See the full library and copy-pasteable definitions in
README.md.
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 controllerProject context
<!--
Fill this section in with details specific to your repo, 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 Claude 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.

