agentleFS
VersoXBTVersoXBT/claude-initial-setup/rules/agents.md

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.

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

    No user prompt needed for these scenarios:

    line 23
  2. Distinctive:

    ALWAYS run independent agents in parallel.

    line 34
  3. Distinctive:

    Use multiple agents to analyze the same code from different angles:

    line 62
  4. Distinctive:

    Use the right agent for the task — don't force a general agent into a specialist role

    line 82
  5. Distinctive:

    Run independent agents in parallel to save time

    line 83
  6. Distinctive:

    Always run security-reviewer before committing auth or data changes

    line 85
  7. Distinctive:

    Use tdd-guide proactively, not just when told to write tests

    line 86

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
agents.md

Agent Orchestration

Available Agents

AgentPurposeWhen to Use
plannerImplementation planningComplex features, multi-file changes, refactoring
architectSystem designArchitectural decisions, tech stack selection
code-reviewerCode quality reviewAfter writing or modifying code
security-reviewerSecurity analysisBefore commits, after auth changes
tdd-guideTest-driven developmentNew features, bug fixes
debuggerBug investigationTracking down root causes
build-error-resolverFix build failuresWhen builds or CI fail
refactor-cleanerDead code cleanupCode maintenance, tech debt
doc-updaterDocumentation updatesAfter API changes, new features
performance-optimizerPerformance analysisWhen profiling shows bottlenecks
database-reviewerDatabase reviewSchema changes, query optimization
api-designerAPI designNew endpoints, API restructuring
devops-engineerInfrastructure & CI/CDDeployment, containerization, pipelines

When to Use Agents Immediately

No user prompt needed for these scenarios:

  1. Complex feature request — Use planner to break it down first
  2. Code just written — Use code-reviewer for immediate feedback
  3. Bug fix or new feature — Use tdd-guide for test-first approach
  4. Architectural decision — Use architect for design evaluation
  5. Build failure — Use build-error-resolver to diagnose and fix
  6. 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    →     audit

Fan-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

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.