claude-initial-setup / rules
AGENTS.md4 starsChanged 9 months agoMITView on GitHub
No user prompt needed for these scenarios: ALWAYS run independent agents in parallel. This saves significant time. Chain agents when each step depends on the previous: Use multiple agents to analyze the same code from different angles: For complex problems, get diverse perspectives:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/claude-initial-setup.mdcCursor rule
The file
We split this agents.md into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
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 23
No user prompt needed for these scenarios:
- Distinctive: line 34
ALWAYS run independent agents in parallel.
- Distinctive: line 62
Use multiple agents to analyze the same code from different angles:
- Distinctive: line 82
Use the right agent for the task — don't force a general agent into a specialist role
- Distinctive: line 83
Run independent agents in parallel to save time
- Distinctive: line 85
Always run security-reviewer before committing auth or data changes
- Distinctive: line 86
Use tdd-guide proactively, not just when told to write tests
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.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
Agent Orchestration
Available Agents
| Agent | Purpose | When to Use |
| planner | Implementation planning | Complex features, multi-file changes, refactoring |
| architect | System design | Architectural decisions, tech stack selection |
| code-reviewer | Code quality review | After writing or modifying code |
| security-reviewer | Security analysis | Before commits, after auth changes |
| tdd-guide | Test-driven development | New features, bug fixes |
| debugger | Bug investigation | Tracking down root causes |
| build-error-resolver | Fix build failures | When builds or CI fail |
| refactor-cleaner | Dead code cleanup | Code maintenance, tech debt |
| doc-updater | Documentation updates | After API changes, new features |
| performance-optimizer | Performance analysis | When profiling shows bottlenecks |
| database-reviewer | Database review | Schema changes, query optimization |
| api-designer | API design | New endpoints, API restructuring |
| devops-engineer | Infrastructure & CI/CD | Deployment, containerization, pipelines |
When to Use Agents Immediately
No user prompt needed for these scenarios:
- Complex feature request — Use planner to break it down first
- Code just written — Use code-reviewer for immediate feedback
- Bug fix or new feature — Use tdd-guide for test-first approach
- Architectural decision — Use architect for design evaluation
- Build failure — Use build-error-resolver to diagnose and fix
- Security-sensitive change — Use security-reviewer before committing
Parallel Execution
ALWAYS run independent agents in parallel. This saves significant time.
# CORRECT: Parallel (independent tasks)
Launch simultaneously:
1. security-reviewer → analyze auth module
2. code-reviewer → review new utility functions
3. tdd-guide → write tests for payment service
# WRONG: Sequential when tasks are independent
First security-reviewer, wait...
Then code-reviewer, wait...
Then tdd-guide, wait...Agent Orchestration Patterns
Pipeline Pattern
Chain agents when each step depends on the previous:
planner → tdd-guide → code-reviewer → security-reviewer
plan → build → review → auditFan-Out Pattern
Use multiple agents to analyze the same code from different angles:
┌─ code-reviewer ──────┐
code change ──> ├─ security-reviewer ──├─> merge findings
└─ performance-opt ────┘Split-Role Analysis
For complex problems, get diverse perspectives:
Problem ──> Agent 1: "As a security expert, review..."
──> Agent 2: "As a performance engineer, review..."
──> Agent 3: "As a maintainability advocate, review..."Best Practices
- Use the right agent for the task — don't force a general agent into a specialist role
- Run independent agents in parallel to save time
- For complex tasks, plan first with the planner agent
- Always run security-reviewer before committing auth or data changes
- Use tdd-guide proactively, not just when told to write tests
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.

