Track authored Claude Code configuration

This commit is contained in:
2026-09-20 18:00:44 +02:00
commit 990a7ac9b9
21 changed files with 1657 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# Claude Code configuration
The authored half of `~/.claude`: global instructions, agents, skills, principles, memory and settings. Publishes nothing.
## Goals
1. **No secret and no transcript ever reaches a commit.** `.gitignore` is an allowlist: everything is ignored, and a file is tracked only by being named. A new Claude Code release dropping a token file next to these is untracked by default.
2. **A clone restores the configuration on a new machine.** Anything needed to work the way these instructions describe is tracked; anything the tool regenerates is not.
3. **The history explains why an instruction changed.** One behaviour change per commit, message saying what it now does.
## Audience
The owner of this machine, and the Claude Code sessions that read these files. Both may rely on everything tracked here being hand-written and safe to share — no credentials, no session data, no machine-generated state.
## Tracking a new file
Add it to `.gitignore` as a negation, then `git check-ignore -v <path>` to confirm. Re-including a file needs its parent directories un-ignored too:
```
!commands/
!commands/*.md
```