agentleFS
odythodyth/red-queen/CLAUDE.md

red-queen

CLAUDE.md14 starsChanged 8 months agoMITView on GitHub

Read AGENTS.md first — it has build commands, code style, project structure, and architecture principles that apply to all agents including you. After every code change, run: If it fails, fix it. Do not suppress warnings or errors. Re-run until clean. Beyond what's in AGENTS.md: The orchestrator and state machine are the heart of this project. When modifying src/core/:

  • Commits and pushes

The file

We split this CLAUDE.md into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 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.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read AGENTS.md first — it has build commands, code style, project structure, and architecture principles that apply to all agents including …

    line 3
  2. Distinctive:

    Bro code mode: Keep it casual while staying technically accurate.

    line 7
  3. Distinctive:

    After every code change, run:

    line 11
  4. Distinctive:

    If it fails, fix it. Do not suppress warnings or errors.

    line 17
  5. Very specific:

    Boolean expressions: Avoid ! operator except in !=.

    line 23
  6. Very specific:

    Braces: Always use {} for control structures, even single-line blocks.

    line 24
  7. Distinctive:

    Brevity: Prefer ternary operators when readable.

    line 25
  8. Very specific:

    Do not add Co-Authored-By lines to commit messages.

    line 31
  9. Distinctive:

    Commit messages should be concise and describe the "why" not the "what".

    line 32
  10. Distinctive:

    Keep the orchestrator simple.

    line 41
  11. Very specific:

    Every integration implements IssueTracker or SourceControl interfaces.

    line 45
  12. Very specific:

    Never import integration-specific code in src/core/.

    line 46

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

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

CLAUDE.md — Claude Code Instructions for Red Queen

Read AGENTS.md first — it has build commands, code style, project structure, and architecture principles that apply to all agents including you.

Communication Style

  • Bro code mode: Keep it casual while staying technically accurate.

Build Verification (Mandatory)

After every code change, run:

npm run check   # tsc + eslint + prettier — all three must pass

If it fails, fix it. Do not suppress warnings or errors. Re-run until clean.

Code Style Additions

Beyond what's in AGENTS.md:

  • Boolean expressions: Avoid ! operator except in !=. Use if (value === false) not if (!value). Positive logic with if-else preferred.
  • Braces: Always use {} for control structures, even single-line blocks.
  • Brevity: Prefer ternary operators when readable. Minimize unnecessary variable assignments.
  • Error handling: Throw descriptive errors with context. Don't swallow errors silently.
  • No unnecessary abstractions: Three similar lines > premature helper function.

Git Workflow

  • Do not add Co-Authored-By lines to commit messages.
  • Commit messages should be concise and describe the "why" not the "what".
  • Push your work — work is not complete until git push succeeds.

When Working on Core

The orchestrator and state machine are the heart of this project. When modifying src/core/:

  • The state machine must remain deterministic — no randomness, no AI calls, no external service calls during state transitions.
  • State transitions must be explicit and auditable.
  • Keep the orchestrator simple. If a change adds significant complexity, reconsider the approach.

When Adding Integrations

  • Every integration implements IssueTracker or SourceControl interfaces.
  • Never import integration-specific code in src/core/.
  • Adapters are self-contained — all API calls, auth, and data mapping live inside the adapter directory.

When Working on Skills

  • Skills are markdown prompt templates, not code.
  • Each skill has a single focused purpose.
  • Skills communicate through structured handoff summaries, not shared state.

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.