This is a macOS dotfiles repository that provides automated development environment setup with a focus on:
# Full automated setup
./bootstrap.sh
# Alternative entry point
make run
# Check installation status
brew list | grep -E "(uv|poetry|kubectl)"
# Validate configuration
stow -n -v -d config -t "$HOME" zsh starship git opencode zed && echo "β
All configs valid"
# Run local checks
make check
# Update environment
source ~/.config/zsh/.zshrc && direnv reload
.dotfiles/
βββ π bootstrap.sh # Main installation orchestrator
βββ π¦ Brewfile # ALL packages (read this first)
βββ βοΈ config/ # Symlinked to $HOME via GNU Stow
β βββ π€ agent_skills/ # Custom AI capabilities (submodule)
β βββ π€ opencode/ # OpenCode AI assistant config
β βββ π zsh/ # Shell configuration
β βββ β starship/ # Shell prompt themes
βββ π¨ install/ # Installation scripts (ORDERED)
β βββ brew.sh β shell.sh β git.sh β dotfiles.sh β python.sh β ai.sh
βββ π lib/ # Utility functions
βββ logs.sh # log_info, log_error, log_success
βββ variables.sh # Environment variables
# ALWAYS validate first
stow -n -v -d config -t "$HOME" zsh starship git opencode zed 2>&1 | grep -i conflict
# Use existing logging
source lib/logs.sh
log_info "Starting task"
Brewfileconfig/<tool>/install/dotfiles.shstow -n -v <tool># Check available versions
uv python list
# Create project environment
echo "3.14" > .python-version
direnv allow
# Validate
python --version && echo "β
Ready"
config/ and are symlinked~/.zshrc, use config/zsh/.zshrcstow -n -v -d config -t "$HOME" <tool> before applying changes*.local
.envrc.local
.env
.env.*
*.pem
*.key
*_rsa
.aws/credentials
.envrc.local files (auto-gitignored)# Core tools validation
command -v brew && echo "β
Homebrew"
command -v uv && echo "β
uv"
command -v stow && echo "β
GNU Stow"
# Configuration validation
[ -f ~/.config/zsh/.zshrc ] && echo "β
zsh configured"
[ -f ~/.gitconfig ] && echo "β
git configured"
# Agent skills
npx skills list && echo "β
Skills available"
ls -la config/agent_skills/ && echo "β
Custom skills"
# Security checks
make security
# Stow conflicts
stow -R -v -d config -t "$HOME" zsh starship git opencode zed
# Homebrew issues
brew doctor && brew update && brew upgrade
# Python environment problems
direnv reload && uv python list
npx skills add python-helper
npx skills list
npx skills update
Specialized skills for:
Usage:
npx skills use python-security-scanner scan .
npx skills use code-review-assistant review src/
# Weekly updates
brew update && brew upgrade
uv self update
npx skills update
stow -R -v -d config -t "$HOME" zsh starship git opencode zed
# Cleanup
brew cleanup
uv cache clean
cd ~/.dotfiles
stow -D -v -d config -t "$HOME" zsh starship git opencode zed
git checkout HEAD -- config/ # Reset configs
./bootstrap.sh # Reinstall everything
# Fix only Stow issues
stow -R -v -d config -t "$HOME" zsh starship git opencode zed
# Fix only Python
uv self update && direnv reload
# Fix only Homebrew
brew doctor && brew update && brew upgrade
| Path | Purpose | Agent Action |
|---|---|---|
Brewfile |
All package definitions | Read before adding tools |
config/*/ |
Tool configurations | Modify instead of ~/.* files |
lib/logs.sh |
Logging functions | Use for consistent output |
install/*.sh |
Setup scripts | Understand before modifying |
.envrc.local |
Local secrets | Create for API keys (gitignored) |
β Installation Complete When:
stow -n -v -d config -t "$HOME" zsh starship git opencode zed shows no conflictspython --version shows 3.14 (or desired version)gh auth status shows authenticatedβ Environment Ready When:
ls -la ~ | grep "\.dotfiles"docker version, kubectl versionLast Updated: 2026-02-18 Format: AGENTS.md v2.0 Standard Compatible With: OpenCode, GitHub Copilot, Cursor, Zed, Claude Code, and other AI coding agents