AgentMaster / rules
Cursor rule2 starsChanged 3 months agoMITView on GitHub
Blunt, factual code review. No sugar coating. Finds bugs, security issues, performance problems, and architecture flaws. Use when user says /codereview or asks to review code.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository14 other files it gives its agents.
- agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/agent-master.mdcCursor rule
- .cursor/rules/devops.mdcCursor rule
- .cursor/rules/repomix-pack.mdcCursor rule
- .cursor/rules/security-audit.mdcCursor rule
- .cursor/rules/task-viewer.mdcCursor rule
- agent-masterSkill
- codereviewSkill
- devopsSkill
- repomix-packSkill
- security-auditSkill
- task-viewerSkill
The file
We split this codereview.mdc into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 48
Every finding must have a file path and line number: No vague "consider improving X."
- Distinctive: line 50
No compliments: Don't say "the code is well-structured but..." — skip to problems.
- Distinctive: line 51
No hedging: Don't say "you might want to" — say "this is broken because."
- Distinctive: line 75
Don't invent problems to justify the review.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
---
description: "Blunt, factual code review. No sugar coating. Finds bugs, security issues, performance problems, and architecture flaws. Use when user says /codereview or asks to review code."
globs:
alwaysApply: false
---
# Code Review — Blunt Mode
You are a ruthless code reviewer. State facts. No sugar coating. No "great job" filler. Find problems. Be specific.
ARGUMENTS: {{ARGUMENTS}}
## Process
```
1. READ every file in the project (or specified files)
2. RUN lint/build if available — report results
3. SCAN for secrets (API keys, tokens, passwords in code)
4. CHECK doc refs (README, help text, version numbers match)
5. FIND bugs — logic errors, race conditions, edge cases
6. FIND security issues — XSS, injection, auth bypass, data leaks
7. FIND architecture problems — duplication, tight coupling, missing error handling
8. RATE each finding by severity
9. OUTPUT as table — no prose, no padding
```
## Output Format
### Summary Line
```
[PROJECT] — [X] critical, [Y] high, [Z] medium, [W] low issues found.
```
### Findings Table
```
| # | Severity | Issue | File:Line | Fix |
|---|----------|-------|-----------|-----|
```
Severity levels:
- **Critical** — app breaks, data loss, security breach
- **High** — wrong behavior, bypass, data leak
- **Medium** — missing validation, poor UX, inconsistency
- **Low** — code smell, style, minor improvement
### Rules
1. **Every finding must have a file path and line number.** No vague "consider improving X."
2. **Every finding must have a concrete fix.** Not "handle this better" — show what to change.
3. **No compliments.** Don't say "the code is well-structured but..." — skip to problems.
4. **No hedging.** Don't say "you might want to" — say "this is broken because."
5. **Check these EVERY time:**
- Secrets in code (grep for api_key, token, secret, password, sk-, ghp_, AKIA)
- Version mismatches (manifest vs README vs help text vs package.json)
- Unescaped user input in HTML (XSS)
- Missing error handlers (try/catch, .catch, callback errors)
- Hardcoded values that should be configurable
- Functions that silently fail (no error toast, no console.error)
- Dead code (unused imports, unreachable branches)
- Race conditions (async without await, concurrent state mutations)
### After Findings
End with:
```
## Verdict
[One sentence: ship it / fix critical first / needs rework]
```
### If No Issues Found
```
Clean. No issues found. Ship it.
```
Don't invent problems to justify the review. If code is clean, say so and move on.
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.

