Imported from chetaldrich/dotfiles (
AGENTS.md). Install upstream withnpx skills add chetaldrich/dotfiles. Copyright stays with the author.
Dotfiles
Personal dotfiles managed with chezmoi.
Setup
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply chetaldrich
If chezmoi is already installed, run make apply.
Script conventions
| Prefix | Runs when |
|---|---|
run_once_* |
First apply only |
run_onchange_* |
Script contents change |
run_always_* |
Every chezmoi apply (avoid) |
Scripts ending in .tmpl are Go templates processed by chezmoi.
Makefile
Run make with apply, diff, status, edit (opens source dir), or update.
Brewfile
Run brew bundle dump from the repo root to snapshot current machine state.
Git
Author: Chet Aldrich chetaldrich@gmail.com
Code organization
As you work, prefer to factor the existing monolith (e.g. src/App.jsx) into smaller, focused files (components, hooks, lib, data) rather than appending to it, and extract reusable pieces when you touch them. Keep new functionality in appropriately named modules instead of growing the monolith.
Testing
Before calling any change complete, run the project's unit tests and ensure they pass. Add unit tests for any new functionality or refactored logic you introduce, and run them. Do not declare a task done while tests are failing.
