CLAUDE.md ยท diff
git:20260811.35f3f3b to git:20260821.990bc47
1 added, 2 removed. Audit A to A.
# CLAUDE.md
macOS dev environment automation: dotfiles, AI agent configs, skills, and dev stacks.
## Commands
Run `make help` to list targets and `hal --help` for the CLI.
Use `make` targets instead of running the underlying commands directly. They chain the right tools with the right flags.
## Gotchas
- **Dotfiles are the source of truth**: `dotfiles/` is the source of truth for files under `~/`. `dotfiles/.claude/` syncs to `~/.claude/` via `hal_dotfiles.json`. Always edit under `dotfiles/`, never under `~/` directly.
- **Skills are the source of truth in `skills/`**: Distributed via Claude Code plugin marketplaces configured in `dotfiles/.claude/settings.json` (the `hal-9000` marketplace loads the published version from GitHub), and via `npx skills add vinta/hal-9000` for other coding agents.
- All skill descriptions must start with `Use when` (may have a `(project)` prefix if it's a project-level skill).
- For generated artifacts such as zsh completion, regenerate them with the repo command instead of editing them by hand (e.g. `make hal-completion` after modifying `bin/hal.py`).
## External Tool Documentation
Invoke the `find-docs` skill BEFORE writing code or config that touches the tools below, not only when asked about them. Do not answer from training data, even for familiar tools. Use `WebFetch` for user-provided URLs and the documentation links below.
### Context7 Library IDs
Pre-resolved IDs for the `find-docs` skill. Pass directly to `ctx7 docs`, skipping the `ctx7 library` step:
| Tool | `libraryId` |
| -------------- | ------------------------------------------ |
| ansible | `/websites/ansible_projects_ansible` |
| ansible-lint | `/ansible/ansible-lint` |
| argcomplete | `/kislyuk/argcomplete` |
- | detect-secrets | `/yelp/detect-secrets` |
+ | betterleaks | `/betterleaks/betterleaks` |
| fnm | `/schniz/fnm` |
| github-actions | `/websites/github_en_actions` |
- | gitleaks | `/gitleaks/gitleaks` |
| homebrew | `/homebrew/brew` |
| oh-my-zsh | `/ohmyzsh/ohmyzsh` |
| ollama | `/ollama/ollama` |
| pre-commit | `/pre-commit/pre-commit.com` |
| pytest | `/pytest-dev/pytest` |
| ruff | `/websites/astral_sh_ruff` |
| ty | `/websites/astral_sh_ty` |
| uv | `/websites/astral_sh_uv` |
| zsh | `/websites/zsh_sourceforge_io_doc_release` |
### Documentation Links
For topics not well covered by Context7, use `WebFetch` on these URLs:
- Claude Prompting Best Practices
- https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
- https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5
- Claude Code Settings
- https://code.claude.com/docs/en/settings
- Claude Code Rules
- https://code.claude.com/docs/en/memory#path-specific-rules
- Claude Code Plugins / Marketplaces
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/plugin-marketplaces