Obsessively curated dotfiles and agentic skills managed by a robust, extensible Go CLI.
Dots is a development environment management system built in Go. It provides a CLI for installing, updating, and managing your entire macOS development configuration — shell, editors, languages, system preferences, custom utilities, and a library of reusable agent skills for Claude Code and Codex.
# Install Homebrew and Go if needed
brew install go
# Clone and install
git clone https://github.com/drn/dots ~/.dots
cd ~/.dots
go install ./...
dots install allWarning: Installation overwrites existing configuration files without backups. Back up your dotfiles first.
dots # Show help and available commands
dots install all # Install all components
dots install <component> # Install specific component
dots update # Update configuration, plugins, and packages
dots doctor # Run system diagnostics
dots clean # Clean legacy configuration
dots docker stop-all # Stop all Docker containers| Component | What it installs |
|---|---|
agents |
Agent skills, custom agents, hooks, status lines, and repo-managed Pi extensions (symlinks agents/skills/ → ~/.claude/skills/ + ~/.agents/skills/, agents/custom/ → ~/.claude/agents/, registers Claude hooks and status line in ~/.claude/settings.json, and configures Codex's native status line with model, context remaining, 5-hour usage, and weekly usage in $CODEX_HOME/config.toml or ~/.codex/config.toml; one SessionStart hook prepends dev-tool bin dirs — go/bin, ~/.local/bin, cargo, asdf shims — onto the Bash tool's PATH so binaries like tts resolve by bare name) |
bin |
Custom shell scripts and Go utilities to ~/bin |
git |
.gitconfig, .gitignore_global, git extensions |
home |
Dotfiles symlinked to ~/ (.zshrc, .vimrc, .tmux.conf, .gitconfig, etc.) |
zsh |
ZSH configuration, zinit plugin manager, tmux plugin manager |
fonts |
Developer fonts via Homebrew Cask |
homebrew |
System packages from Brewfile (100+ formulae and casks) |
npm |
Global Node.js packages |
languages |
asdf version manager with Ruby, Python, Go, Node.js, Terraform |
vim |
Vim/Neovim configuration with vim-plug and plugins |
hammerspoon |
Lua-based window management and macOS automation |
osx |
macOS system preferences and defaults |
pi |
pi.dev coding agent CLI + config (installs pi via curl pi.dev/install.sh, symlinks pi/agent/models.json → ~/.pi/agent/models.json, and seeds defaultProvider/defaultModel for Ollama qwen3:32b in ~/.pi/agent/settings.json; auth.json and sessions/ stay local) |
In Hammerspoon, Command+Option+Shift+Enter opens or focuses Grok Bot, and Command+Shift+Z triggers Siri.
Dots includes 70 reusable slash-command skills for AI coding agents, following the Agent Skills open standard. Each skill lives in agents/skills/<name>/SKILL.md and is available as /<name> in Claude Code after running dots install agents.
| Skill | Description |
|---|---|
/test |
Intelligent test runner that targets changed code and identifies coverage gaps |
/pr |
Open a PR, wait for CI, fix failures, address review comments |
/address-comments |
Walk every unresolved review thread on a PR — triage, reply with rationale, fix if warranted, and resolve |
/review |
Code review panel for current branch changes |
/deploy |
Deploy master to production with version tags |
/deploy-audit |
Audit commits pending between a base branch and a deployed branch/tag for migration, config-wiring, flag, and schema risk, then open the GitHub compare diff |
/deploy-validate |
Post-deploy health check across CI, rollout, error tracking, and monitoring, correlated against deploy timing to filter pre-existing noise |
/merge |
Merge current branch to master via GitHub PR |
/debug |
Multi-agent competing hypotheses debugging |
/dev |
Iterative development, testing, and review with native agents or single-agent fallback in any harness |
/orchestrate |
Dependency-aware builds with optional native delegation and model tiering; falls back to single-agent execution |
/explore |
Multi-agent parallel research with peer-challenged synthesis |
/ci-investigate |
Investigate flaky CI failures across workflow runs |
/changelog |
Generate changelog from recent commits |
/combine-prs |
Compare two competing PRs and combine the best parts into one branch |
/release |
Release automation |
/bisect |
Automated git bisect |
/migrate |
Multi-agent codebase migration with module ownership |
/polish |
Code quality audit and refactoring |
/guard |
Pre-commit safety check for secrets and security antipatterns |
/scaffold |
Bootstrap new files matching existing repo conventions |
/deps |
Audit outdated dependencies and upgrade with test verification |
/spike |
Time-boxed technical investigation with structured findings |
/plan |
Generate an implementation plan from a PRD, spike, or spec |
/contest |
Competing implementations with judge evaluation |
/write-skill |
Create or improve a skill with best practices |
/bash-tool-path |
Safely add a directory to Claude Code's Bash tool PATH via a SessionStart hook and CLAUDE_ENV_FILE |
/screenshot |
View recent screenshots from ~/Downloads |
/handoff |
Generate handoff prompt for another agent thread |
/standup |
Daily standup summary from git activity |
/pdf |
Export conversation content to styled PDF |
/knowledge |
Initialize or update a project knowledge base |
/dream |
Ingest meetings and completed Claude Code/Codex JSONL turns into the inbox, synthesize raw notes into existing topical docs, and audit KB hygiene — frontmatter, sizing, naming |
/retro |
Structured retrospective or post-incident review |
/logo |
Logo generation |
/slides |
Build a self-contained HTML presentation deck from talking points or a doc, with keyboard, tap, and swipe navigation |
/markdown-preview |
Render a Markdown file to GitHub-flavored HTML via gh api /markdown and open a styled local preview (light + dark) |
/improve |
Improve skills, capture context and knowledge |
/batch-pr-review |
Review a batch or stack of PRs, describe every change, verify findings, and build a private review artifact |
/rereview |
Re-review with independent reviewers using models and delegation available in the active harness |
/rereview-loop |
Run /rereview, fix findings, and repeat until a complete panel meets the selected severity threshold |
/devils-advocate |
Contrarian review perspective |
/perf |
Performance analysis |
/prune |
Branch cleanup |
/rebase |
Rebase automation |
/squash |
Squash all branch commits into one and update open PRs |
/prioritize |
RICE-scored backlog prioritization for sprint planning |
/equip |
Analyze a spec or codebase to identify missing skills and agents, then write them |
/cross-agent |
Set up cross-agent skill infrastructure for multi-agent compatibility |
/loop |
Run a prompt on a recurring interval for polling, monitoring, and babysitting |
/skill-usage |
Show skill usage statistics, charts, and suggestions for pruning unused skills |
/wrapup |
End-of-session checklist that detects loose ends and routes to follow-up skills |
Skills use YAML frontmatter for metadata and dynamic context injection via shell commands. Some skills delegate to standalone bash scripts in agents/skills/<name>/scripts/. See /write-skill for the full authoring guide.
Dots also ships 3 reusable custom agent definitions in agents/custom/. These are specialized agent types that skills can spawn via the subagent_type parameter:
| Agent | Purpose |
|---|---|
code-analyst |
Code quality analysis across structure, design, and security dimensions |
investigator |
Evidence-based debugging with hypothesis-driven exploration |
verifier |
Test runner and implementation evaluator for regression checking |
Run dots install agents to symlink them to ~/.claude/agents/.
dots install agents links explicitly listed extensions from pi/agent/extensions/ into ~/.pi/agent/extensions/ (or $PI_CODING_AGENT_DIR/extensions/). It does not run pi install, download extension code, or replace existing extensions. Restart Pi or use /reload to load the links.
The workflow tool runs read-only research in parallel and passes results to later phases. In interactive Pi, try: “Use a workflow to map the CLI and configuration in parallel, then summarize how they fit together.” Pi asks for approval before starting. Workflows use task prompts, not executable scripts; they allow up to eight tasks and three concurrent subagents.
The subagent tool runs one to three independent, read-only reviewers. Try: “Use three subagents to review this diff independently for correctness, regressions, and test gaps.” Each reviewer can use an exact configured provider/model-id or inherit the active model. Choose a concrete model; virtual models that can route to another provider are not accepted. Pi asks for terminal approval before dispatch; reviewers use the same Pi provider configuration, not a separate CLI login. They receive their own prompt and any shared diff or briefing, not your conversation or other reviewers’ results.
Reviewers get only read, grep, find, and ls. This is not a filesystem sandbox: they can read local files and send content to the approved providers. Each batch has two minutes after approval, and completed results survive sibling failures or cancellation. Tool name subagent overlaps with Pi’s optional example extension; enable only one of them.
This avoids fetching third-party extension code at install time, but the links still load code from your current dots checkout. Review updates before loading them. Subagents have no shell or write tools, but this is not an OS sandbox: they can read local files and send content to the selected model provider.
tts uses Kokoro locally or OpenAI with --remote. It skips speech when
CoreAudio reports active input from any device, including USB or Bluetooth
mics selected inside a call app. It checks again before starting playback.
If macOS cannot report app-level input activity, tts falls back to checking
the system default input only.
~/.dots/
├── main.go # Entry point → cli/commands.Execute()
├── go.mod # Go module (1.21)
├── Brewfile # Homebrew package manifest
│
├── cli/ # CLI framework (Cobra)
│ ├── commands/ # Top-level commands
│ │ ├── root.go # Command setup, global flags
│ │ ├── install.go # Install orchestration
│ │ └── install/ # Component installers (12 files)
│ ├── is/ # Boolean helpers (File, Command, Tmux, Osx)
│ ├── link/ # Symlink/hardlink creation
│ └── git/, config/, tmux/ # Supporting utilities
│
├── pkg/ # Shared packages
│ ├── log/ # Colored logging (Action, Info, Success, Error)
│ ├── run/ # Command execution (Verbose, Silent, Capture)
│ ├── path/ # Path helpers (FromDots, FromHome)
│ └── cache/ # File-based caching with TTL
│
├── cmd/ # 23 standalone Go utilities
│ ├── git-ancestor/ # Common ancestor between branches
│ ├── git-canonical-branch/ # Canonical branch name
│ ├── git-killme/ # Delete branch and switch to master
│ ├── git-masterme/ # Rebase onto master
│ ├── git-rebase-master/ # Interactive rebase onto master
│ ├── git-reset-hard-master/ # Hard reset to master
│ ├── battery-percent/ # Battery percentage
│ ├── battery-state/ # Charging state
│ ├── cpu/ # CPU usage
│ ├── ip/ # IP utilities (external, local, home)
│ ├── router/, ssid/, gps/ # Network info
│ ├── spotify/ # Spotify control
│ ├── weather/ # Weather data
│ ├── tmux-status/ # Tmux status bar components
│ ├── search-github/ # GitHub search
│ ├── home-scp/ # SCP helper
│ ├── slack/ # Slack read-only client
│ ├── gmail/ # Gmail read-only client
│ └── tts/ # Text-to-speech via Kokoro or OpenAI
│
├── bin/ # 35 shell scripts installed to ~/bin
├── home/ # Dotfiles symlinked to ~/
├── zsh/ # ZSH configuration (aliases, plugins, prompt, etc.)
├── vim/ # Vim/Neovim configuration
├── git/ # Git extensions and hooks
├── hammerspoon/ # Lua automation scripts (with tests)
├── fonts/ # Developer fonts
├── pi/ # Pi models and repo-managed extensions
│
├── agents/ # Agent configuration
│ ├── skills/ # 70 reusable skills (SKILL.md per skill)
│ └── custom/ # 3 custom agent types (.md per agent)
│ └── tests/ # Skill test suite
│
└── openspec/ # Change proposal system
go install ./... # Build all binaries
go test ./... # Run tests
revive -set_exit_status ./... # Lint
luajit hammerspoon/test.lua # Hammerspoon tests
bash .github/skill-tests/run_all.sh # Skill script testsBehavioral changes (new commands/components, changed install behavior, new skills/agents/hooks,
altered conventions) are routed through openspec/ before coding: create a change folder with a
proposal, spec deltas, and tasks; get approval; implement; then archive into the base specs in
the same PR. Specs are local design docs only — never wired into CI. See the Spec-Driven
Development section in AGENTS.md and the full guide in openspec/AGENTS.md.
openspec list # Active changes
openspec validate <change-id> --strict # Validate a proposal
openspec archive <change-id> --yes # Apply deltas to base specs- Add to the
commandsslice incli/commands/install.go - Create installer in
cli/commands/install/<component>.go - Use
exec()helper for error handling andpkg/runfor command execution
- Create
cmd/<name>/root.gousing Cobra - Build with
go install ./...
- Create
agents/skills/<name>/SKILL.mdwith YAML frontmatter - See
agents/skills/write-skill/SKILL.mdfor the authoring guide - Run
dots install agentsto symlink into~/.claude/skills/
GitHub Actions runs on every push to master and all PRs:
- Build and test Go code
- Vet and staticcheck for correctness
- Revive for linting
- Hammerspoon tests via LuaJIT
- Skill lint — validates SKILL.md syntax
- Skill script tests — runs the skill test suite
- Agent config lint — validates configuration via agnix
| Variable | Description |
|---|---|
DOTS |
Override dots directory location (default: ~/.dots) |
GOPATH |
Go workspace |
GOBIN |
Go binary installation directory |
