claude-code-config
CLAUDE.md13 starsChanged 2 months agoMITView on GitHub
This directory (~/.claude) is Claude Code's user config and runtime state — not a source code project. Work here is configuration and housekeeping, not feature development. It is a git repo tracking origin/main. Only config is versioned; all runtime state is ignored (see .gitignore). - settings.json — user-level settings (tracked). Edit via the update-config skill. Keys that merely restate a current default are removed on sight; tui: "fullscreen" stays because fullscreen is the shipped default only for accounts created after…
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cc-release-reviewSkill
- verifySkill
- code-auditSkill
- code-reductionSkill
- code-refactorSkill
- code-theorySkill
- code-walkthroughSkill
- editorSkill
- grillSkill
- issue-prSkill
- issue-triageSkill
- issue-verifySkill
- release-captainSkill
- release-gateSkill
- release-shipSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 55
Never modify or delete files under sessions/, projects/, cache/, shell-snapshots/, session-env/, file-history/, ide/, or history.jsonl.
≈ “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.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This directory (~/.claude) is Claude Code's user config and runtime state — not a source code project. Work here is configuration and housekeeping, not feature development.
It is a git repo tracking origin/main. Only config is versioned; all runtime state is ignored (see .gitignore).
Layout
settings.json— user-level settings (tracked). Edit via theupdate-configskill. Keys that merely restate a current default are removed on sight;tui: "fullscreen"stays because fullscreen is the shipped default only for accounts created after 2026-05-06 and this one dates to 2025-05-26. The file admits no comments — the settings validator rejects both//lines and unknown keys — so notes like this one belong here.- The
autoModeblock (environment,allow,soft_deny,hard_deny) is honored only from this file and the--settingslaunch flag. A project.claude/settings.jsonor.claude/settings.local.jsoncopy is silently ignored, not rejected — so never propose moving it there.--settingsappends to these arrays rather than replacing them. Because everything here applies to every repo on the machine, the block carries only machine-wide truths and names no repo, path, or owner.
- The
.claude/settings.json— project-scoped settings for this directory (tracked): a small permission allowlist, nothing more. Distinct from the user-levelsettings.jsonabove.rules/*.md— rule files, per language and for the release process. Each carriespaths:frontmatter, so they load only when Claude touches matching files, not globally.hooks/*.sh— shell scripts wired to thehooksblock insettings.json.- Skills live in two tiers, and the split is by invocation target — what the skill is run
against, not whether it happens to read
~/.claudepaths:skills/<name>/SKILL.md— user-level skills, run against other projects..claude/skills/<name>/SKILL.md— skills that operate on Claude Code's own configuration surface: this directory, plus files it owns elsewhere such as~/.claude.json. Not on a user project. They load only when the cwd is~/.claude.
skills/synced/andplugins/synced/— the claude.ai account sync, which pushes Anthropic's own skills (docx,pdf,xlsx,morning, …) and account plugins onto every machine you sign in from. Disabled viasyncClaudeAiSkills/syncClaudeAiPlugins: falsebecause a sign-in downloads them unannounced;/plugin listreports synced plugins as not installed, so these directories are the only sign of them. Both paths stay gitignored: deleting them re-synced on the very next launch, whereas the settings keys stop the download and move what is there toskills/.trash/plugins/.trash. Onlyfalseis honored — the feature is switched on server-side — and re-enabling re-downloads rather than restores.agents/<name>.md— subagent definitions. User-level, so they load from any cwd, which is the tier a skill underskills/needs; a.claude/agents/copy would load only here and be invisible to the skill that spawns it. The body is the agent's system prompt, so a contract that belongs to every spawn lives there rather than being repeated in the skill's invocation.state/*.txt— version baselines for state-tracking skills likecc-release-review.projects/<encoded-cwd>/memory/— persistent memory files (MEMORY.mdindex + individual*.mdentries) managed by the auto-memory system. Not versioned because the parent<encoded-cwd>hash is per-machine, making memories non-portable across hosts; to keep one, force-add it withgit add -f.tasks/holds background-agent task output — unrelated totaskfile.yml'staskrunner below.
Safety rules
- Never modify or delete files under
sessions/,projects/,cache/,shell-snapshots/,session-env/,file-history/,ide/, orhistory.jsonl. They are owned by the Claude Code runtime; hand-edits can corrupt sessions or lose work. backups/is the only deletion-safe runtime directory, and only for old entries the user explicitly identifies.- Memory files under
projects/<encoded-cwd>/memory/are managed by the auto-memory system (write a new<slug>.mdand add a line toMEMORY.md), not bulk-rewritten. They are not git-tracked; to preserve a specific memory across machines, usegit add -f <path>. - Settings changes go through the
update-configskill rather than direct edits, so hooks, permissions, and env vars stay schema-valid. - Keybinding changes go through the
keybindings-helpskill.
Writing skills
- Conventions for authoring a skill or agent here live in
.claude/rules/skill-authoring.md, which loads when you open aSKILL.mdor anagents/*.mdfile rather than in every session. - Restoring a deleted skill from git reintroduces the policy that was in force when it died.
Deletion is cheap here because git remembers, and git remembers the retired parts too. After
git show <sha>^:<path>, diff the frontmatter against a current sibling before committing.
Tests
task test runs the suites listed in taskfile.yml. Each script's header documents what it
covers and why it is written the way it is. None has a filter flag for a single test; narrow a
run by editing the script.
Formatting & linting
- The auto-format hook fires on Edit/Write/MultiEdit only. Markdown written through Bash
(heredoc,
tee, redirect) bypasses it — runtask format:mdafter, or use the file tools.
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.

