My dotfiles repository, managed with chezmoi.
tldrawOffline in chezmoi's local data controls the tldraw agent definitions
and Claude's context hook. It defaults to whether tldraw offline.app exists
in /Applications or ~/Applications when generating the local config.
Enable it only after installing the app and its companion skill/helper files.
The app owns those helpers; this repo does not install the app.
Neovim uses the NvChad starter configuration,
tracked here without its Git
checkout. Lazy installs NvChad and its plugins on first launch. Use Space-ch
for the mapping cheatsheet and :Lazy for plugin management.
Interactive shells check once a day, in the background, whether this repo has
new commits. If it has, the next new shell prints one line suggesting
brewup, and starship shows in the prompt until an apply brings
those commits in. The check uses anonymous HTTPS, so it never prompts for SSH
keys. When it fails it prints nothing and waits a day before trying again. To
check sooner, delete ~/.cache/dotfiles-update/checked.
The same check can count outdated Homebrew packages and mise tools, adding a
line for each to that notice. It never upgrades anything; brewup does.
Switch them in the local chezmoi config's data mapping:
brewUpdateCheck: false # default: on for macOS, off on work machines
miseUpdateCheck: true # default: on for development machinesThe brew check runs brew update, the same refresh brew does before its own
commands, so leave it off where Homebrew needs admin rights. Machines set up
before these keys existed have both checks off until chezmoi init writes the
defaults.
brewup updates the whole machine in order. It runs chezmoi update first,
because applying the dotfiles can add or remove packages and change the mise
config. Then it re-runs itself from the freshly applied copy and upgrades
Homebrew (update, upgrade, bundle --global, cleanup), App Store apps
through mas, and mise and its global tools. On Linux it also runs
apt-get upgrade. It skips tools that are not installed. It lists pending
macOS updates but doesn't install them, since they can restart the machine.
A failed step doesn't stop the others. The summary names what failed, and the
exit code is 1. mas and apt-get ask for sudo, and so may some casks.
1Password and its CLI are installed through the Brewfile. Enable desktop app
integration for the CLI. To generate a private ~/.npmrc, add your real secret
references to the local chezmoi config's data mapping:
npmGithubTokenRef: op://YOUR-VAULT/YOUR-GITHUB-ITEM/YOUR-TOKEN-FIELD
npmjsTokenRef: op://YOUR-VAULT/YOUR-NPM-ITEM/YOUR-TOKEN-FIELDEither reference is optional. With neither set, chezmoi leaves .npmrc alone.
Tokens are retrieved with onepasswordRead during apply; the generated file is
private but contains plaintext tokens, as npm expects. Source control contains
only references. Avoid sharing rendered diffs for secret-bearing files.
Use individual secret references for other CLI configuration when needed. Raycast's session tokens and agent OAuth state remain owned by their apps.
For the Environments MCP server, turn on Settings > Developer > Integrate with
MCP clients in the 1Password app, then run chezmoi apply. On development
machines this registers 1password-mcp with Claude Code, Codex, OpenCode and pi.
pq-audit checks SSH and GPG for post-quantum readiness without changing
anything. It lists SSH keys from ~/.ssh, authorized_keys and the configured
agent, and probes each concrete Host in the ssh config for its key exchange.
It also checks GPG secret keys and the git signing key for a Kyber (ML-KEM)
encryption subkey, close expiry, and a stale copy on GitHub. Pass host names to
probe only those. It exits 1 only for hard failures (an expired key, weak RSA
or DSA, or a host without post-quantum key exchange); the rest are warnings.
OpenSSH has no post-quantum signature keys yet; the audit says when one becomes available. Post-quantum GPG encryption needs GnuPG 2.5 or later.
gpg-key-update is a step-by-step wizard for renewing the GPG key. It imports the
armored secret key from 1Password into a temporary keyring and extends the
expiry. It then publishes the key to keyservers and the Debian keyring, and
replaces GitHub's copy. If the key has no Kyber encryption subkey, it adds one.
It saves the result to 1Password as new Secure Notes and keeps the temporary
keyring if that save fails. YubiKeys can't hold the Kyber subkey, so it gets its
own note for importing on the machines that decrypt. Run it once a year, before
the key expires.
Personal Claude instructions, documentation rules, status line, and preferences
are tracked. Deja hooks and commands are deliberately excluded. Project-derived
Claude auto-mode environment assumptions are excluded from global settings.
cleanupPeriodDays is 3650 so Claude Code keeps transcripts until the session
archive (Mezzle/hansard) collects them; the default sweep deletes them after 30 days.
Skills are installed by the manifest in .chezmoiscripts; external writing uses
unslop.
Mezzle/skills owns Wayfinder and file-pr. Matt Pocock's selected complementary
skills include setup-matt-pocock-skills and triage; Wayfinder is excluded from
that selection so its update record stays with Mezzle. Hook 04 runs on every
apply. It fast-forwards MEZZLE_SKILLS_SOURCE (default ~/dev/skills) when that
checkout is clean and on its default branch, and leaves it alone otherwise. When
the checkout's revision differs from the last one installed, it reinstalls
Mezzle/skills from GitHub for the other harnesses. It then links promoted Mezzle
skills and the security-review draft from the checkout into Codex and Claude, so
merged skills, including new ones, arrive with chezmoi apply or
chezmoi update. Hook 05 installs the global manifest for all seven configured
harnesses, then restores those editable links using the same template.
Third-party skills still refresh manually: run npx skills update -g -y, then
rerun hook 05 (for example with chezmoi's --force option on that script).
Updates follow the
global installer lock record; the next manifest install migrates an older
Matt-owned Wayfinder record to Mezzle. Refreshes can replace Codex/Claude links,
so restoring the editable links is part of the refresh procedure. Do not
re-add Matt's Wayfinder independently. Validate configuration without touching
live skills with python3 tests/skill-installation.py --skills-source PATH.