claude-corps
CLAUDE.md4 starsChanged 8 months agoMITView on GitHub
Violating the letter of the rules is violating the spirit of the rules. There are no valid exceptions, clever workarounds, or "spirit of the intent" arguments that justify skipping a required step. NEVER merge a pull request without explicit confirmation from the user. Always ask before merging, even if all checks pass and the review looks clean. The human decides when code lands. If the Linear MCP server is connected (test: list_teams tool is available), use Linear for all task…
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
21 rules. About 0 are common, 9 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 23
If the Linear MCP server is connected (test: list_teams tool is available), use Linear for all task operations — creating issues, updating …
- Very specific: line 25
If Linear MCP is not available, skip all task tracking steps in skills silently.
- Distinctive: line 27
Task tracking is advisory, not a gate: Never block implementation on a task-tracking failure.
- Distinctive: line 31
When using Linear, reference these workspace details:
- Very specific: line 33
Detection: Check if list_teams or list_issues tools are available
- Very specific: line 40
Issue creation authority: Only orchestrator-facing skills (/spec, /reconcile-summary, /orient, /auto-run) may call save_issue to create new …
- Very specific: line 41
Quality gate: Every save_issue creating a new issue must include: structured description (Problem/Approach/Acceptance Criteria/Target Files …
- Very specific: line 45
A task is NOT complete until
/finish-taskhas been run: No exceptions. - Distinctive: line 49
Don't amend published commits — create new commits
- Very specific: line 50
Don't skip hooks (--no-verify, --no-gpg-sign) — investigate and fix the underlying issue
- Distinctive: line 51
Don't create new files when editing existing ones suffices
- Distinctive: line 52
Don't add error handling, validation, or abstractions for scenarios that can't happen
- Distinctive: line 53
Don't add comments, docstrings, or type annotations to code you didn't change
- Distinctive: line 54
Don't force-push to main/master
- Distinctive: line 55
Don't use git add -A or git add .
- Very specific: line 64
Before ending an orchestrator session, always run /reconcile-summary.
- Distinctive: line 72
Use these when the work calls for them:
- Very specific: line 80
When the user says "use codex" or asks you to delegate a task to Codex, use the codex CLI:
- Very specific: line 98
Use --full-auto for exec tasks (workspace-write sandbox, auto-approves commands)
- Very specific: line 99
Use --ephemeral if you don't need session persistence
- Very specific: line 103
Default model is configured in ~/.codex/config.toml.
≈ “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 (Global)
Violating the letter of the rules is violating the spirit of the rules. There are no valid exceptions, clever workarounds, or "spirit of the intent" arguments that justify skipping a required step.
- Parallel by default, sequential when needed — Independent tasks run simultaneously in isolated git worktrees (
isolation: "worktree"). Dependent tasks run sequentially on the branch (--sequential). Use the right mode for the dependency structure. - Orchestrator + Workers — One session orients (
/orient) and dispatches workers; workers execute discrete tasks (/start-task) and report back with session summaries. - Task-sized work — Break work into chunks that fit comfortably in context. Big enough to be a meaningful atomic change, small enough to complete without exhausting the context window.
- Bounded autonomy — Clarify requirements and define acceptance criteria before coding. Then execute autonomously within those bounds.
- Tests as the contract — "Done" means tests pass. Never close a task with failing tests. The code proves itself.
- Human in the loop — Humans approve PRs, prioritize tasks, and make architectural decisions. AI executes, human directs.
- Handoffs over context bloat — When context grows large, the orchestrator spawns a replacement worker with the prior context rather than degrading quality.
- Session summaries — Every completed task outputs a detailed summary. Each session leaves breadcrumbs for the next.
- Save what you learn — Save debugging insights, non-obvious solutions, and prevention strategies to auto-memory when completing tasks.
- Codify the routine — Repeated patterns become skills and commands. If you do something twice, automate it.
- Evaluate, don't agree — When receiving feedback, review findings, or processing reports: verify claims against evidence before acting. No performative agreement ("Great point!", "You're absolutely right!"). Fix silently or explain technical disagreement. YAGNI applies to review suggestions too.
Critical Rule: Never Merge a PR Without User Confirmation
NEVER merge a pull request without explicit confirmation from the user. Always ask before merging, even if all checks pass and the review looks clean. The human decides when code lands.
Task Tracking
If the Linear MCP server is connected (test: list_teams tool is available), use Linear for all task operations — creating issues, updating status, querying ready tasks, managing dependencies.
If Linear MCP is not available, skip all task tracking steps in skills silently. Continue with implementation work. Plan files in docs/plans/ are always the primary deliverable.
Task tracking is advisory, not a gate. Never block implementation on a task-tracking failure. If a Linear call fails, log a warning and continue.
Linear Config
When using Linear, reference these workspace details:
- Detection: Check if
list_teamsorlist_issuestools are available - "Ready" tasks:
list_issues(state=Todo)→ filter to those with emptyblockedByviaget_issue(includeRelations=true) - Status mapping: open → Todo, in_progress → In Progress, closed → Done
- Relations:
blocks/blockedByonsave_issue(append-only — remove via Linear UI) - Hierarchy:
parentIdonsave_issuefor sub-issues; Linear projects for grouping (projects are NOT issues) - Agent delegation:
delegatefield onsave_issueto assign to named agents - Comments:
save_commentfor session summaries, reconciliation notes - Issue creation authority: Only orchestrator-facing skills (
/spec,/reconcile-summary,/orient,/auto-run) may callsave_issueto create new issues. Worker skills (/finish-task,/multi-review) must document discovered work in the session summary's DISCOVERED WORK section instead. The orchestrator proposes new issues for user approval at reconciliation boundaries. - Quality gate: Every
save_issuecreating a new issue must include: structured description (Problem/Approach/Acceptance Criteria/Target Files sections), priority, at least one label, and project. After creation, run post-write validation (get_issueto check for formatting artifacts).
Critical Rule: Always Run /finish-task
A task is NOT complete until /finish-task has been run. No exceptions.
Don'ts
- Don't amend published commits — create new commits
- Don't skip hooks (
--no-verify,--no-gpg-sign) — investigate and fix the underlying issue - Don't create new files when editing existing ones suffices
- Don't add error handling, validation, or abstractions for scenarios that can't happen
- Don't add comments, docstrings, or type annotations to code you didn't change
- Don't force-push to main/master
- Don't use
git add -Aorgit add .— stage specific files by name
Commit Guidance
- Atomic commits: One logical change, independently passes tests, revertible
- Message format:
<type>: <summary>— types:feat,fix,refactor,test,docs,chore
Orchestrator Reminder
Before ending an orchestrator session, always run /reconcile-summary.
Planning
/deep-plan— full planning pipeline (product review, spec, deep reviews, multi-review on plan, decompose). Use as the default entry point for new features. Supports--yes,--skip-reviews,--no-decompose.
Optional Specialist Skills
Use these when the work calls for them:
/design-shotgun— explore 3-5 UI directions before locking a design approach/qa— run acceptance-first validation before calling risky or UI-visible work ready/benchmark— measure a repeatable command against a baseline before making performance claims
Using Codex (OpenAI)
When the user says "use codex" or asks you to delegate a task to Codex, use the codex CLI:
Code review:
codex review --base <branch> "<custom instructions>"Arbitrary task (non-interactive, sandboxed):
codex exec --full-auto "<task description>"With output capture:
codex exec --full-auto -o /tmp/codex-result.md "<task description>"Guidelines:
- Use
--full-autofor exec tasks (workspace-write sandbox, auto-approves commands) - Use
--ephemeralif you don't need session persistence - Codex output goes to stdout — capture and present to the user
- For long-running tasks, use
-o <file>to write the final result to a file - Codex operates in its own sandbox — it cannot see or modify Claude Code state
- Default model is configured in
~/.codex/config.toml. Override with-c model="o3"
Reference
@docs/reference.md @docs/workflow-cheatsheet.md
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.

