claude-code-config
CLAUDE.md2 starsChanged 26 days agoMITView on GitHub
This repository is the shared global Claude Code config for all of the owner's machines (macOS and Windows). sync.sh copies it between ~/.claude and the repository. The human guide is the "Keeping machines in sync" section of README.md; this file is the procedure Claude follows. - Never push to main. Every change goes through a sync/... branch and a pull request. - Never commit secrets. The repository is public. If sync.sh reports a secret-looking env key, stop and ask. -…
In this repository21 other files it gives its agents.
- animation-vocabularySkill
- apple-designSkill
- context7-mcpSkill
- find-docsSkill
- graphifySkill
- multi-account-subagent-driven-developmentSkill
- omni-subagent-driven-developmentSkill
- remotion-best-practicesSkill
- remotion-captionsSkill
- remotion-createSkill
- remotion-docsSkill
- remotion-interactivitySkill
- remotion-mapsSkill
- remotion-markupSkill
- remotion-multimediaSkill
- remotion-renderSkill
- remotion-saasSkill
- remotion-studioSkill
- remotion-upgradeSkill
- reverse-engineer-anythingSkill
- tailwind-design-systemSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
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 9
Never push to main. Every change goes through a sync/...
- Very specific: line 10
Never commit secrets. The repository is public.
- Very specific: line 12
Never pass --prune, and never delete a rule, skill or setting, without asking first.
- Very specific: line 13
Keep macOS and Windows both working.
- Very specific: line 21
Every item same: report "in sync" and stop.
- Very specific: line 40
If a plugin or MCP server was added or removed, also update install.sh and README sections 3 and 4 on the same branch before the PR is …
- Distinctive: line 50
Put the recommended option first and end its label with "(Recommended)".
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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-code-config
This repository is the shared global Claude Code config for all of the owner's machines (macOS and
Windows). sync.sh copies it between ~/.claude and the repository. The human guide is the
"Keeping machines in sync" section of README.md; this file is the procedure Claude follows.
Hard rules
- Never push to
main. Every change goes through async/...branch and a pull request. - Never commit secrets. The repository is public. If
sync.shreports a secret-lookingenvkey, stop and ask. - Never pass
--prune, and never delete a rule, skill or setting, without asking first. - Keep macOS and Windows both working. Shared files must stay platform-neutral. Platform-only values go
in the README Platform guide or in
MACHINE_ONLY_ENV, never in the sharedsettings.json. install.shandsync.shmust keep LF line endings (.gitattributesenforces this).
Sync procedure ("sync my global config")
git switch main && git pull. If the working tree is dirty, ask what to do with the changes.- Run
./sync.sh status. - Every item
same: report "in sync" and stop. - Work out a direction for each item that is not
same:machine-only: publish it, unlessgit log --diff-filter=D -- <path>shows another machine deleted it from the repository. In that case, ask.repo-only: import it, unless this machine deleted it on purpose. If unsure, ask.differs: always ask. Compare the file's modification time in~/.claudewithgit log -1 --format=%cI -- <path>, showgit diff --no-index <repo path> <machine path>, and recommend the newer side.
- Apply the answers.
publishandexportalways take every machine item, andimportalways takes every repository item, so make both sides agree item by item first:- Take the repository copy: copy only that item from the repository into
~/.claude, after a.bak.<timestamp>backup. - Merge by hand: write the merged result into
~/.claude. - Skip: use the manual flow from the README and
git restore <path>each skipped item before the commit. Do not runimportafterwards; copyrepo-onlyitems into~/.claudeone by one instead. Then run./sync.sh publish. When nothing was skipped, run./sync.sh importafterwards to bringrepo-onlyitems to this machine.
- Take the repository copy: copy only that item from the repository into
- Give the user the PR link. After merge, remind them to run
git pull && ./sync.sh importon the other machines and restart Claude Code. - If a plugin or MCP server was added or removed, also update
install.shand README sections 3 and 4 on the same branch before the PR is merged.
Asking the user
Whenever anything about a sync is unclear, stop and ask with the AskUserQuestion tool. Do not guess.
Examples: which side of a differs item is newer, deletions, a secret-looking key, a merge conflict,
a dirty working tree, or a setting that might be platform-specific.
- Give exactly 4 options per question.
- Put the recommended option first and end its label with "(Recommended)". Say why in its description, based on evidence such as dates, diffs or git history.
- One decision per question. Batch up to 4 questions in one call when several items need decisions.
Example for a differs item:
| Option | Description |
| Publish this machine's copy (Recommended) | ~/.claude copy changed after the last repo commit that touched it |
| Import the repo copy | Overwrites the local copy; a .bak.<timestamp> backup is kept |
| Merge both by hand | Show the diff, combine both versions, then publish |
| Skip for now | Leave both sides as they are and report it as still out of sync |
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.

