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
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-ideasSkill
- cliSkill
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
- Distinctive: line 5
Don't join independent clauses with semicolons or em dashes.
- Distinctive: line 7
Don't hard-wrap markdown prose you author.
- Distinctive: line 9
Put explanation of code you're writing in a message before the edit.
- Very specific: line 14
Don't create or extend catch-all modules like utils.
- Distinctive: line 16
Don't number steps or phases in code ("Phase 1:", "Step 2:").
- Very specific: line 20
Every customization costs tokens on every session.
- Very specific: line 25
Prefer analyst over general-purpose for read-only spawns.
- Very specific: line 27
Run scripted cross-model or GPT review through github:copilot.
- Very specific: line 28
Use the agent-browser skill when a task needs a real browser.
- Distinctive: line 32
Never disable the sandbox for file writes.
- Distinctive: line 50
Never git push to the default branch unless I say so.
- Very specific: line 52
Write commit messages with one -m per paragraph, or a heredoc for complex ones.
- Very specific: line 53
Update a checkout with git merge --ff-only <ref>.
- Very specific: line 82
After gh stack merge, pull the surviving layers.
≈ “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.
Files
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
backticksin 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:writingskill 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 whenAgentis absent, and say so. - Prefer
analystovergeneral-purposefor read-only spawns. Passmodel: haikufor 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 throughherdr:herdrinto thecopilot-gptworktree, launched withcopilot --max-ai-credits 120. "Consult fable" means the same second opinion from a Fable session. - Use the
agent-browserskill when a task needs a real browser.WebFetchis fine for static pages. - Finish a branch with
/ship. Usepull-request:createto open a PR directly, or an empty body if it's unavailable. Open PRs ready for review, draft only for speculative changes. - Root every
findat a directory that can hold the target. Usefd -HI <pattern> <root>when the root must stay broad. - Send build output to
/dev/null. Store temporary files intmp/. - 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 pushto the default branch unless I say so. - Work on a topic branch with a short hyphenated name.
- Write commit messages with one
-mper 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 withgit 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 syncrebases in dependency order (--fetch,--push,--prune,--dry-run). Publish withgh stack linkafterwt sync --push. - One worktree for the whole stack, for active reshaping.
gh stack syncowns 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."
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.

