feat: global CLAUDE.md follows live, location moves to a private import
Ports routr, dev-server, vault and beads sections from the live file. The personal location line becomes @~/.claude/CLAUDE.personal.md, written by the private tier, and the rules paragraph now says agents, skills and rules come from the private tier.
This commit is contained in:
1 parent
170db93f35
commit
536fdd1834
1 file changed
+54
-24
+54
-24
@@ -1,5 +1,9 @@
|
||||
# Global Claude Configuration
|
||||
|
||||
@~/.claude/CLAUDE.personal.md
|
||||
|
||||
Write American English (behavior, color, gray, license).
|
||||
|
||||
## Tool Preferences
|
||||
|
||||
### Search & Navigation
|
||||
@@ -51,11 +55,26 @@ Before proposing changes to unfamiliar code:
|
||||
- Use subagents for exploratory searches (they don't pollute parent context)
|
||||
- Compress findings into structured summaries
|
||||
|
||||
### routr
|
||||
- When starting routr workers, ideally use **haiku or sonnet** for workers that run and
|
||||
summarize tests. Keep the stronger model for the work that needs judgment.
|
||||
|
||||
### Dev servers
|
||||
- **Always bind dev, desk and preview servers to `0.0.0.0`, never `127.0.0.1` or
|
||||
`localhost`.** The user views them from another machine. This applies to every
|
||||
server started for the user to look at, including test-harness servers. If the
|
||||
app refuses non-loopback Host headers, turn that check off for the dev run too
|
||||
(e.g. an `-allow-lan` flag). Report the URL with the host's LAN name or IP.
|
||||
|
||||
## Active Rule Sets
|
||||
Language rule sets, specialized agents, skills and hooks are **not** in this
|
||||
repo. They live in a separate repository and are installed independently. This
|
||||
file is deliberately limited to system-level conventions that should hold on
|
||||
any machine, including a throwaway one with nothing else configured.
|
||||
- common, golang, python, typescript, web
|
||||
- C++ rules preserved at `rules/_inactive-cpp/` (not loaded)
|
||||
|
||||
Rule sets, specialized agents, skills and hooks are **not** in this public
|
||||
repo. They come from the private dotfiles tier (`~/.claude/{agents,rules,skills}`,
|
||||
`~/.codex/{skills,rules}`), and a machine with only the public tier has none of
|
||||
them. This file is deliberately limited to system-level conventions that should
|
||||
hold on any machine, including a throwaway one with nothing else configured.
|
||||
|
||||
## Shell
|
||||
- Use zsh syntax when writing shell scripts or commands
|
||||
@@ -70,30 +89,41 @@ any machine, including a throwaway one with nothing else configured.
|
||||
|
||||
## Obsidian vaults
|
||||
|
||||
Two vaults, both on PATH-accessible tooling, both the user's long-term memory:
|
||||
`~/Documents/Obsidian-Work` and `~/Documents/Obsidian-Personal` are the user's
|
||||
long-term memory. **Both vaults carry their own instructions, and those are
|
||||
authoritative.** This file is per-machine and drifts; the vault copies sync.
|
||||
|
||||
- **`vault`** (CLI) + the **`obsidian-notes`** skill — everything except host changes.
|
||||
`vault search <terms>` is the **recall** path: run it before answering from
|
||||
scratch about a work project or customer, the user's machines and home
|
||||
network, or anything they may have solved before. `vault append` to add to an
|
||||
existing note, `vault new` for a genuinely new subject. See the skill for the
|
||||
full protocol and guardrails.
|
||||
- **`sysjournal`** — host/environment changes only (below).
|
||||
- The **`obsidian-notes` skill** owns the protocol — `vault` and `sysjournal`
|
||||
usage, recall-before-answering, folder ownership, guardrails.
|
||||
- Each vault's **`Meta/Note Conventions.md`** owns its note rules, and they are
|
||||
deliberately different between the two. Read with
|
||||
`vault conventions --vault <work|personal>` before authoring anything
|
||||
substantial.
|
||||
|
||||
`~/Documents/Obsidian25` is the frozen pre-split original. **Never write to it.**
|
||||
Two things to know without reading anything:
|
||||
|
||||
### System Knowledge Journal (sysjournal)
|
||||
1. **Recall first.** `vault search <terms>` before answering from scratch about a
|
||||
work project or customer, the user's machines and home network, or anything
|
||||
they may have solved before. Terms are ANDed — 2–3 specific words.
|
||||
2. **Host/environment changes go to `sysjournal`, never `vault`.** The skill's
|
||||
"Which tool" table draws the line and states the trigger.
|
||||
|
||||
Maintain a running journal of **host/environment** changes in the Obsidian vault at `Tech/Infrastructure/`, using the shared `sysjournal` helper (on PATH). This is for *system administration*, NOT ordinary work inside a code repo.
|
||||
`~/Documents/Obsidian25` is the pre-split original. It is **not** yet frozen: a
|
||||
VPS cron still writes `_planning/`, `_agent/` and `Health/Garmin/` there nightly.
|
||||
Never hand-write anywhere in it, and treat those three folders as owned by their
|
||||
programs in every vault.
|
||||
|
||||
**Trigger — the task changes the machine/environment, not just repo code:** system config; services/daemons (systemd/launchd/cron); networking/DNS/VPN/firewall; VMs & host-level containers; drivers/kernel/boot; disks/mounts; build toolchains & global/system package installs; or **wiring an app into the host** (a systemd unit, cron job, opened port, service account).
|
||||
## Beads (`bd`)
|
||||
|
||||
**Do NOT journal** feature work, bug fixes, refactors, or tests *inside* a project repo. Discriminator: *does it change state outside the repo, on the host?* If no → skip. **Straddle case** (you build an app **and** install it as a service): journal only the **host-wiring** part (the unit/cron/port), not the app code.
|
||||
Some repos track execution work in beads. A repo is wired in when `bd where` succeeds there.
|
||||
|
||||
1. **Recall first.** Before diagnosing or acting on such a task, search the journal and read relevant hits:
|
||||
`sysjournal search <keywords>` (e.g. `sysjournal search systemd relay port`)
|
||||
2. **Journal after.** Once the change is made or the problem resolved:
|
||||
`sysjournal new "Short Descriptive Title" --type change --status deployed --tags systemd,relay`
|
||||
Then fill in the created note (its path is printed): **Why**, **What changed**, **Design decisions / gotchas**, **Verify** (command + observed result), **Status / follow-ups**. Link related notes with `[[wikilinks]]`.
|
||||
|
||||
Keep it a real record — what changed, why, the gotcha you hit, how you verified. `sysjournal help` for the frontmatter schema (the `System Log MOC.md` Dataview index depends on it).
|
||||
- In a wired repo, the session-start hook injects the workflow from `.beads/PRIME.md`. If it is
|
||||
missing from context — after compaction, or in a harness without the hook — run `bd prime`.
|
||||
- Beads holds execution work: tasks, blockers, discovered follow-ups, handoff. Intent stays in
|
||||
`.design/` when the repo has one; a bead never stands in for a plan.
|
||||
- Memory stays where it is: the harness memory and the Obsidian vaults. Never `bd remember`.
|
||||
- Beads syncs itself: each write pushes to origin, and the session-start hook pulls first. Don't
|
||||
run `bd dolt push` by hand unless a sync failure was reported. At handoff, say which beads
|
||||
changed.
|
||||
- To wire a repo in, run `~/code/agent-templates/beads/setup <repo>` — never plain
|
||||
`bd init`, which rewrites `AGENTS.md` and commits tool config.
|
||||
Reference in new issue
Block a user