agentleFS
josephneumannjosephneumann/claude-corps/CLAUDE.md

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…

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
  1. Very specific:

    If the Linear MCP server is connected (test: list_teams tool is available), use Linear for all task operations — creating issues, updating …

    line 23
  2. Very specific:

    If Linear MCP is not available, skip all task tracking steps in skills silently.

    line 25
  3. Distinctive:

    Task tracking is advisory, not a gate: Never block implementation on a task-tracking failure.

    line 27
  4. Distinctive:

    When using Linear, reference these workspace details:

    line 31
  5. Very specific:

    Detection: Check if list_teams or list_issues tools are available

    line 33
  6. Very specific:

    Issue creation authority: Only orchestrator-facing skills (/spec, /reconcile-summary, /orient, /auto-run) may call save_issue to create new …

    line 40
  7. Very specific:

    Quality gate: Every save_issue creating a new issue must include: structured description (Problem/Approach/Acceptance Criteria/Target Files …

    line 41
  8. Very specific:

    A task is NOT complete until /finish-task has been run: No exceptions.

    line 45
  9. Distinctive:

    Don't amend published commits — create new commits

    line 49
  10. Very specific:

    Don't skip hooks (--no-verify, --no-gpg-sign) — investigate and fix the underlying issue

    line 50
  11. Distinctive:

    Don't create new files when editing existing ones suffices

    line 51
  12. Distinctive:

    Don't add error handling, validation, or abstractions for scenarios that can't happen

    line 52
  13. Distinctive:

    Don't add comments, docstrings, or type annotations to code you didn't change

    line 53
  14. Distinctive:

    Don't force-push to main/master

    line 54
  15. Distinctive:

    Don't use git add -A or git add .

    line 55
  16. Very specific:

    Before ending an orchestrator session, always run /reconcile-summary.

    line 64
  17. Distinctive:

    Use these when the work calls for them:

    line 72
  18. Very specific:

    When the user says "use codex" or asks you to delegate a task to Codex, use the codex CLI:

    line 80
  19. Very specific:

    Use --full-auto for exec tasks (workspace-write sandbox, auto-approves commands)

    line 98
  20. Very specific:

    Use --ephemeral if you don't need session persistence

    line 99
  21. Very specific:

    Default model is configured in ~/.codex/config.toml.

    line 103

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

  1. 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.
  2. Orchestrator + Workers — One session orients (/orient) and dispatches workers; workers execute discrete tasks (/start-task) and report back with session summaries.
  3. 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.
  4. Bounded autonomy — Clarify requirements and define acceptance criteria before coding. Then execute autonomously within those bounds.
  5. Tests as the contract — "Done" means tests pass. Never close a task with failing tests. The code proves itself.
  6. Human in the loop — Humans approve PRs, prioritize tasks, and make architectural decisions. AI executes, human directs.
  7. Handoffs over context bloat — When context grows large, the orchestrator spawns a replacement worker with the prior context rather than degrading quality.
  8. Session summaries — Every completed task outputs a detailed summary. Each session leaves breadcrumbs for the next.
  9. Save what you learn — Save debugging insights, non-obvious solutions, and prevention strategies to auto-memory when completing tasks.
  10. Codify the routine — Repeated patterns become skills and commands. If you do something twice, automate it.
  11. 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_teams or list_issues tools are available
  • "Ready" tasks: list_issues(state=Todo) → filter to those with empty blockedBy via get_issue(includeRelations=true)
  • Status mapping: open → Todo, in_progress → In Progress, closed → Done
  • Relations: blocks/blockedBy on save_issue (append-only — remove via Linear UI)
  • Hierarchy: parentId on save_issue for sub-issues; Linear projects for grouping (projects are NOT issues)
  • Agent delegation: delegate field on save_issue to assign to named agents
  • Comments: save_comment for session summaries, reconciliation notes
  • Issue creation authority: Only orchestrator-facing skills (/spec, /reconcile-summary, /orient, /auto-run) may call save_issue to 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_issue creating 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_issue to 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 -A or git 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-auto for exec tasks (workspace-write sandbox, auto-approves commands)
  • Use --ephemeral if 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

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.