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
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
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
- Distinctive: line 3
Read AGENTS.md first — it has build commands, code style, project structure, and architecture principles that apply to all agents including …
- Distinctive: line 7
Bro code mode: Keep it casual while staying technically accurate.
- Distinctive: line 11
After every code change, run:
- Distinctive: line 17
If it fails, fix it. Do not suppress warnings or errors.
- Very specific: line 23
Boolean expressions: Avoid ! operator except in !=.
- Very specific: line 24
Braces: Always use {} for control structures, even single-line blocks.
- Distinctive: line 25
Brevity: Prefer ternary operators when readable.
- Very specific: line 31
Do not add Co-Authored-By lines to commit messages.
- Distinctive: line 32
Commit messages should be concise and describe the "why" not the "what".
- Distinctive: line 41
Keep the orchestrator simple.
- Very specific: line 45
Every integration implements IssueTracker or SourceControl interfaces.
- Very specific: line 46
Never import integration-specific code in src/core/.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 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 — 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 passIf 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!=. Useif (value === false)notif (!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-Bylines to commit messages. - Commit messages should be concise and describe the "why" not the "what".
- Push your work — work is not complete until
git pushsucceeds.
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
IssueTrackerorSourceControlinterfaces. - 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.
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.

