dotfiles / start
CLAUDE.md78 starsChanged 4 months agoMITView on GitHub
See setup.md for the human/agent-facing install guide (flags, env vars, one-liners). Four entry points, all built on the shared TUI library in lib/: - bootstrap — full machine setup: Homebrew → oh-my-zsh (--unattended) → symlinks → macOS deps (sources bin/dot). - link_dotfiles — symlinks only: every *.symlink (maxdepth 2) under the repo becomes ~/.<basename>. Idempotent; safe to re-run. - install — brew bundle (streamed) + every topic install.sh (spinnered; failures don't abort the rest). - setuplinux.sh — Pop!OS/apt setup: packages,…
- Installs packages
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
No associative arrays, no ${var,,}, no readarray.
- Distinctive: line 42
Don't spinner commands that prompt (sudo apt, brew bundle) — stream them.
- Very specific: line 43
Verify with bash -n, shellcheck --severity=warning, and a sandbox run: fake $HOME + fake repo, execute with /bin/bash (3.2).
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 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
start/ — installers
See setup.md for the human/agent-facing install guide (flags, env vars,
one-liners).
Four entry points, all built on the shared TUI library in lib/:
bootstrap— full machine setup: Homebrew → oh-my-zsh (--unattended) → symlinks → macOS deps (sourcesbin/dot).link_dotfiles— symlinks only: every*.symlink(maxdepth 2) under the repo becomes~/.<basename>. Idempotent; safe to re-run.install—brew bundle(streamed) + every topicinstall.sh(spinnered; failures don't abort the rest).setup_linux.sh— Pop!_OS/apt setup: packages, oh-my-zsh + plugins, TPM, explicit link list, chsh. Unattended:backup_all=true, never prompts.
lib/
ui.sh— source first. Capability-detected TUI: banner boxes, step counters (ui_steps_total+ui_step), status lines (ui_ok/info/warn/err),ui_fail(aborts),ui_run LABEL CMD…(spinner; captures output, shows last 15 lines on failure, returns the command's rc),ui_done(elapsed). Degrades for non-tty /NO_COLOR/TERM=dumb/ non-UTF-8 locales.links.sh— source after ui.sh; needs$DOTFILES_ROOTset.link_file src dstwith conflict policy globals (overwrite_all/backup_all/skip_all— set before calling to skip prompts),install_dotfiles(the find loop),links_summary(counters). Has an-efself-link guard so linking the repo onto itself can't move it away. Non-interactive support:noninteractive/on_conflictglobals (auto-set fromUI_TTY/DOTFILES_NONINTERACTIVE/DOTFILES_ON_CONFLICT); when no TTY or-y,link_fileapplieson_conflict(defaultbackup) instead of theread </dev/ttyprompt.links_parse_args "$@"parses the shared flags (-y/--non-interactive,--backup/--overwrite/--skip,-h→ calls the caller'susage).
Constraints
- Bash 3.2 — runs on fresh macOS before Homebrew installs bash 5.
No associative arrays, no
${var,,}, noreadarray. - Pad TUI strings by character count, not
printf %-*s(bytes) — multibyte glyphs break box alignment otherwise. - Don't spinner commands that prompt (sudo apt, brew bundle) — stream them.
- Verify with
bash -n,shellcheck --severity=warning, and a sandbox run: fake$HOME+ fake repo, execute with/bin/bash(3.2).
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude.symlink/CLAUDE.mdCLAUDE.md
- hammerspoon.symlink/CLAUDE.mdCLAUDE.md
- pyscripts.symlink/CLAUDE.mdCLAUDE.md
- shellscripts/CLAUDE.mdCLAUDE.md
- tmux/CLAUDE.mdCLAUDE.md
- zsh/CLAUDE.mdCLAUDE.md
- housekeepingSkill
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.

