agentleFS
bendruckerbendrucker/claude/user/CLAUDE.md

claude / user

CLAUDE.md17 starsChanged 2 months agoMITView on GitHub

Every customization costs tokens on every session. Before adding one, define what shows it's working, what shows it isn't, and where that signal surfaces. Accommodate Claude Code's native defaults. Override one only as an experiment with removal criteria. Investigate in auto mode until the approach is settled, then enter plan mode to write it down. When I ask for a plan and something is still open, tell me what you're resolving and resolve it first. Schedule ⏰ plan check-ins in…

  • Commits and pushes

The file

Show its rules and text

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

14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't join independent clauses with semicolons or em dashes.

    line 5
  2. Distinctive:

    Don't hard-wrap markdown prose you author.

    line 7
  3. Distinctive:

    Put explanation of code you're writing in a message before the edit.

    line 9
  4. Very specific:

    Don't create or extend catch-all modules like utils.

    line 14
  5. Distinctive:

    Don't number steps or phases in code ("Phase 1:", "Step 2:").

    line 16
  6. Very specific:

    Every customization costs tokens on every session.

    line 20
  7. Very specific:

    Prefer analyst over general-purpose for read-only spawns.

    line 25
  8. Very specific:

    Run scripted cross-model or GPT review through github:copilot.

    line 27
  9. Very specific:

    Use the agent-browser skill when a task needs a real browser.

    line 28
  10. Distinctive:

    Never disable the sandbox for file writes.

    line 32
  11. Distinctive:

    Never git push to the default branch unless I say so.

    line 50
  12. Very specific:

    Write commit messages with one -m per paragraph, or a heredoc for complex ones.

    line 52
  13. Very specific:

    Update a checkout with git merge --ff-only <ref>.

    line 53
  14. Very specific:

    After gh stack merge, pull the surviving layers.

    line 82

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

Style

  • Don't join independent clauses with semicolons or em dashes. End the clause with a period. Swapping one connector for another is not a fix.
  • Wrap filenames and code identifiers with backticks in any markdown context.
  • Don't hard-wrap markdown prose you author. In an existing file, follow its wrapping.
  • Include a trailing newline in all new files.
  • Put explanation of code you're writing in a message before the edit.
  • Load the writing:writing skill before the first long-form prose you write for others (PR comments, reviews, documents, issues, Slack). One load covers the rest of the session.

Organization

  • Don't create or extend catch-all modules like utils. Name modules for what they hold.
  • Split code into files before splitting it across directories.
  • Don't number steps or phases in code ("Phase 1:", "Step 2:"). Use descriptive function names called in sequence.

Curation

Every customization costs tokens on every session. Before adding one, define what shows it's working, what shows it isn't, and where that signal surfaces. Accommodate Claude Code's native defaults. Override one only as an experiment with removal criteria.

Workflow

  • A skill that instructs a subagent fan-out or background dispatch carries my authorization for Agent. Run it as written. Degrade to inline only when Agent is absent, and say so.
  • Prefer analyst over general-purpose for read-only spawns. Pass model: haiku for pure lookup.
  • Delegate a whole task to a separate Claude process in another pane with herdr:herdr.
  • Run scripted cross-model or GPT review through github:copilot. An interactive GPT or Codex deep-dive goes through herdr:herdr into the copilot-gpt worktree, launched with copilot --max-ai-credits 120. "Consult fable" means the same second opinion from a Fable session.
  • Use the agent-browser skill when a task needs a real browser. WebFetch is fine for static pages.
  • Finish a branch with /ship. Use pull-request:create to open a PR directly, or an empty body if it's unavailable. Open PRs ready for review, draft only for speculative changes.
  • Root every find at a directory that can hold the target. Use fd -HI <pattern> <root> when the root must stay broad.
  • Send build output to /dev/null. Store temporary files in tmp/.
  • Never disable the sandbox for file writes. Bypass only after a sandboxed run of that command failed.

Planning

Investigate in auto mode until the approach is settled, then enter plan mode to write it down. When I ask for a plan and something is still open, tell me what you're resolving and resolve it first.

Check-ins

Schedule ⏰ plan check-ins in Things with things:url add and when=<yyyy-mm-dd>, tagged claude-code. Work-tracked check-ins go there too, linking their Linear issue. Notes carry what to check, the plan path, the repo, and a launch URL:

claude-cli://open?q=<url-encoded prompt>&cwd=<absolute main repo path>

The URL prefills a new session without submitting it. Point cwd at the main repo, never a worktree.

Git

  • Never git push to the default branch unless I say so.
  • Work on a topic branch with a short hyphenated name.
  • Write commit messages with one -m per paragraph, or a heredoc for complex ones. Wrap bodies at ~72 columns.
  • Update a checkout with git merge --ff-only <ref>. Revert your own edits with git restore <path>. A tree-wide reset, checkout, or clean needs me to name it.

Worktrees

Any change meant to become its own PR starts in a worktree created with worktrunk:wt-switch-create, even where a harness suggests EnterWorktree. Stay put when already on a topic branch in one. Work handed to a sibling agent gets its worktree through herdr:herdr. Use worktrunk:worktrunk for every other wt task. Disposable verification worktrees may use git worktree add tmp/<name>.

Inside an isolated worktree, write files with Write or Edit and keep each Bash command a single plain command. The isolation guard refuses heredocs, $(...), loops, and a cd into the main checkout before git.

Claude Configuration

My Claude Code setup lives in bendrucker/claude, worked on at ~/src/bendrucker/claude. The ~/.claude symlinks point into a deployed clone at ~/.claude-repo that claude-upgrade syncs from main. A merged change is not live until that sync runs, and editing through the symlinks writes into that clone instead of a branch. Project-scoped .claude/ directories stay with their repo.

Tools

@tools.md

Dotfiles

Machine setup lives in bendrucker/dotfiles at ~/.dotfiles, in topic directories. The Claude repo installs nothing. Anything the machine or shell must provide needs a merged dotfiles PR first: binaries (topic Brewfile or mise.toml), $PATH entries, shell aliases and functions, exported env vars (Claude-only vars go in settings.json), install steps, symlinks, launchd agents, macOS permission grants, and recurring jobs.

Work in another repo that needs a change in either repo goes to a sibling agent through herdr:herdr. Report the PR back to me, or tell me the change where herdr is unavailable.

Stacked PRs

Load github:stack before any gh stack command (gitlab:merge-request on GitLab). Pick one layout per stack and don't mix them:

  • Worktree per branch, for layers worked in parallel. wt sync rebases in dependency order (--fetch, --push, --prune, --dry-run). Publish with gh stack link after wt sync --push.
  • One worktree for the whole stack, for active reshaping. gh stack sync owns it end to end.

After gh stack merge, pull the surviving layers.

Personal Details

  • My username is @bendrucker. Refer to actions by that user as "you."

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.