name: rr-system
description: System setup, tool information, and AI configuration management for development environments. Use when setting up new machines, explaining available tools (shell-config, ai-rules, wt), managing AI assistant configurations (Claude/Codex/Gemini/OpenCode), checking system configuration, or troubleshooting environment issues. Also triggers when working with configuration files (.json, .toml, .fish, .zsh, .bash), Brewfiles, or installation scripts. Example triggers: "Set up my development environment", "Install tools on new machine", "Configure AI assistant", "What tools do I have?", "Update my shell config", "Add MCP server to Claude", "Check system configuration"
System Setup & Configuration
Comprehensive system setup automation and tool reference for the rr- development environment. Provides automated installation scripts, AI configuration management, and modern CLI tools for macOS and Linux.
⚠️ IMPORTANT: ALWAYS CHECK OFFICIAL DOCUMENTATION ONLINE
Tools evolve rapidly. Before providing commands or configuration changes:
- Load
references/tools-reference.md for official documentation URLs
- Search online for latest official documentation
- Verify CLI options and flags are current
- Use official docs as source of truth - this skill may be outdated
When to Use This Skill
- Setting up new macOS or Linux machines
- Explaining available tools (shell commands, aliases, modern CLI tools)
- Managing AI assistant configurations (Claude Code, Codex, Gemini, OpenCode)
- Editing, validating, or updating AI configuration files
- Adding/removing MCP servers across AI platforms
- Checking if tool or configuration exists
- Troubleshooting environment issues
- Updating existing installations
Progress Reporting Requirements
CRITICAL: Provide continuous progress updates for all installation tasks.
Before ANY task:
- Use TodoWrite tool to create task list
- Explain what you're about to do
- Show exact command you'll run
During execution:
- Report real-time progress
- Show relevant output
- Explain warnings/errors immediately
After each step:
- Mark task as completed
- Summarize accomplishments
- Note issues or next steps
Never run commands silently - always inform user what and why.
Quick Installation
Complete 4-step setup on macOS or Linux:
cd .claude/skills/rr-system
# 1. Install tools (includes Homebrew)
bash scripts/install-tools.sh
# 2. Upgrade all packages (MANDATORY)
brew upgrade
# 3. Install shell configs
bash scripts/install-shell-config.sh
# 4. Install AI configs
bash scripts/install-ai-configs.sh
# 5. Restart terminal
For detailed instructions, see references/installation-guide.md
Core Capabilities
1. System Installation
4 automated scripts for zero-interaction setup:
install-tools.sh - Development tools via Homebrew
- Installs Homebrew (macOS & Linux)
- CLI tools from
Brewfile (cross-platform)
- macOS apps from
Brewfile.macos (auto-skipped on Linux)
- Verifies critical tools installed
brew upgrade - MANDATORY after installing Homebrew
- Upgrades all packages to latest versions
- Ensures security patches and features
- Must run before other installation scripts
install-shell-config.sh - Shell configurations
- Fish/Zsh/Bash configs with modular conf.d structure
- Starship prompt + Ghostty terminal (macOS)
- wt function (Fish only - git worktree manager)
- Registers shells in /etc/shells (requires sudo)
- Fixes Zsh permissions (requires sudo)
- Enables Touch ID for sudo (macOS, requires sudo)
install-ai-configs.sh - AI assistant configurations
- Claude Code, Codex, Gemini, OpenCode configs
- Validates JSON/TOML syntax
- Creates directories, overwrites existing configs
All scripts are idempotent (safe to run multiple times) with automatic verification.
2. Brewfile Structure
Two Brewfiles for organized package management:
Brewfile - Shared CLI tools (macOS & Linux):
- Shells (Fish, Zsh, Bash)
- Modern CLI (bat, eza, fd, ripgrep, fzf, jq, yq, btop)
- Development (git, neovim, node, go, python, mkcert)
- Cloud (AWS, Azure, GCloud, kubectl, helm, k9s)
- Terminal (tmux, zellij, lazygit, lazydocker)
- AI CLIs (gemini-cli, opencode)
Brewfile.macos - macOS-only applications:
- Password & Security (1Password, 1Password CLI)
- Communication (Slack, Zoom, Linear)
- Development (Cursor, Ghostty, Tower)
- AI Assistants (Claude, ChatGPT, Codex, Claude Code)
- Productivity (Raycast, Granola, Shottr)
Adding tools:
- Edit
Brewfile for CLI: brew "tool-name"
- Edit
Brewfile.macos for macOS apps: cask "app-name"
- Run:
bash scripts/install-tools.sh
3. AI Configuration Management
Manage AI assistant configs with automated installation or manual editing.
Supported platforms:
- Claude Code (
~/.claude/settings.json)
- Codex CLI (
~/.codex/config.toml)
- Gemini CLI (
~/.gemini/settings.json)
- OpenCode (
~/.config/opencode/opencode.json)
- Cursor (
~/.cursor/mcp.json)
Quick install (recommended):
bash scripts/install-ai-configs.sh
Manual editing workflow:
- Read current config file
- Reference
assets/ai-configs/<platform>-* templates
- Make changes with Edit tool
- Validate syntax:
- JSON:
jq empty <file>
- TOML:
python3 -c "import tomllib; tomllib.load(open('<file>', 'rb'))"
- Restart AI assistant
Common tasks:
- Add MCP server: Modify mcpServers section, validate, restart
- Update environment variables: Edit env section, validate, restart
- Modify hooks (Claude): Edit hooks array, validate, restart
Feature Parity Principle:
Maintain near-identical configs across all platforms:
- Keep same MCP servers on all platforms
- Adapt only syntax for each platform's format
- When adding/removing MCP servers, update ALL platforms
- Only deviate when feature unavailable or platform requires different approach
For detailed schemas and patterns, see references/ai-config-schemas.md
4. Tool Reference
⚠️ Load references/tools-reference.md for complete documentation links
Modern CLI tools installed:
- File operations: bat, eza, fd, ripgrep
- Development: neovim, lazygit, lazydocker, fzf, ast-grep
- Linting: actionlint, shellcheck
- Navigation: zoxide, atuin, direnv
- Version managers: fnm (Node.js), uv (Python)
- System: procs, hexyl, broot, git-delta, difftastic
- Cloud: kubectl, helm, gh, aws-cli, azure-cli, gcloud
- Blockchain: foundry (forge, cast, anvil, chisel)
- Terminal: tmux, zellij
- AI CLIs: Claude Code, OpenCode, Codex, Gemini CLI
- Package managers: Homebrew, Bun
Configuration locations:
- Fish:
~/.config/fish/ (config.fish + conf.d/)
- Zsh:
~/.zshrc + ~/.config/zsh/conf.d/
- Bash:
~/.bashrc, ~/.bash_profile + ~/.config/bash/conf.d/
- Neovim:
~/.config/nvim/ (LazyVim with Catppuccin)
- Starship:
~/.config/starship.toml
- Claude:
~/.claude/
- Codex:
~/.codex/
- Gemini:
~/.gemini/
- Cursor:
~/.cursor/
Git Worktree Manager (wt):
- Installation: Included in Fish config (via
install-shell-config.sh)
- Location:
~/.config/fish/functions/wt.fish
- Availability: Fish shell only (use
fish -c "wt <cmd>" from bash/zsh)
- Commands: new, switch, list, remove, clean, status
- Auto package manager detection
- Storage:
~/.wt/<repo-name>/
Key aliases:
ls → eza, cat → bat, grep → rg
- File finder:
fd
- Navigation:
z dirname, zi (zoxide)
- Git: 60+ abbreviations (
g, ga, gc, gp, gl, gs, etc.)
- Tools:
lzg (lazygit), lzd (lazydocker), ff (fzf preview)
Essential Workflows
Setting Up New Machine
cd .claude/skills/rr-system
# 1. Install development tools (includes Homebrew)
bash scripts/install-tools.sh
# 2. Upgrade all packages (MANDATORY)
brew upgrade
# 3. Install shell configs
bash scripts/install-shell-config.sh
# 4. Install AI configs
bash scripts/install-ai-configs.sh
# 5. Restart terminal, then:
fish # Start Fish shell
chsh -s $(which fish) # Optional: make Fish default
Verify:
bat --version
fish --version
ls ~/.config/fish/config.fish
ls ~/.claude/settings.json
fish -c "wt help"
Updating Existing Installation
# ALWAYS upgrade Homebrew first (MANDATORY)
brew upgrade
# Then update components
bash scripts/install-tools.sh
bash scripts/install-shell-config.sh
bash scripts/install-ai-configs.sh
# Restart terminal
Adding MCP Server to All Platforms
To maintain feature parity:
- Load
references/ai-config-schemas.md for formats
- For each platform (Claude, Codex, Gemini, OpenCode):
- Read current config
- Add server definition (adapt syntax for platform)
- Validate: JSON (
jq empty), TOML (python3 tomllib)
- Verify all 4 configs have server
- Restart each AI assistant
- Test server on each platform
Checking System Status
Verify tool installation:
command -v <tool> # Check if exists
which <tool> # Show location
<tool> --version # Check version
For wt (Fish function):
ls ~/.config/fish/functions/wt.fish # Check file exists
fish -c "wt help" # Test from any shell
Check configurations:
# Shell configs
ls ~/.config/fish/conf.d/
ls ~/.config/zsh/conf.d/
# AI configs
ls ~/.claude/settings.json
ls ~/.codex/config.toml
Troubleshooting
Homebrew
Not in PATH (macOS):
# Apple Silicon
eval "$(/opt/homebrew/bin/brew shellenv)"
# Intel
eval "$(/usr/local/bin/brew shellenv)"
Shell
Shell not found:
sudo sh -c "echo $(which fish) >> /etc/shells"
sudo sh -c "echo $(which zsh) >> /etc/shells"
Config not loading:
source ~/.config/fish/config.fish # Fish
source ~/.zshrc # Zsh
source ~/.bashrc # Bash
Tools
Tool not working:
command -v <tool> # Check exists
brew list | grep <tool> # Check installed
brew reinstall <tool> # Reinstall
source ~/.config/fish/config.fish # Reload config
wt
Command not found:
ls ~/.config/fish/functions/wt.fish # Check file
fish -c "wt help" # Test from any shell
fish # Or switch to Fish
wt help
Note: wt is Fish-only. Use fish -c "wt <cmd>" from bash/zsh.
AI Configs
Syntax error:
# Validate JSON
jq empty ~/.claude/settings.json
# Validate TOML
python3 -c "import tomllib; tomllib.load(open('~/.codex/config.toml', 'rb'))"
Common errors:
- Trailing commas (JSON)
- Missing quotes around keys
- Mismatched brackets/braces
- Unescaped special characters
Config missing:
bash scripts/install-ai-configs.sh # Reinstall
For detailed troubleshooting, see references/installation-guide.md
Best Practices
Installation
- Run scripts in order: tools → brew upgrade → shell → AI
- Always
brew upgrade after installing Homebrew
- Restart terminal after installation
Shell Selection
- Fish (recommended): Best autosuggestions, modular structure, wt integration
- Zsh: Good plugin ecosystem, bash-compatible
- Bash: Universal compatibility, enhanced features
Tool Usage
- Use modern alternatives:
bat (cat), eza (ls), rg (grep), fd (find)
- Use
z instead of cd for frequent directories
- Use
wt for git worktrees (Fish only)
Resources
⚠️ ALWAYS START WITH OFFICIAL DOCUMENTATION
Before using skill resources:
- Load
references/tools-reference.md for official doc URLs
- Search online for current documentation
- Verify commands with official sources
- Use skill as baseline only - official docs are source of truth
references/
installation-guide.md - Complete installation instructions, troubleshooting, verification
tools-reference.md - Official documentation URLs, quick reference (verify online first)
ai-config-schemas.md - Config schemas, MCP patterns, validation, merge strategies
scripts/
install-tools.sh - Install development tools via Homebrew
install-shell-config.sh - Install shell configurations
install-ai-configs.sh - Install AI assistant configurations
All scripts are idempotent with verification.
assets/
Brewfile - CLI tools package list (cross-platform)
Brewfile.macos - macOS-only applications
ai-configs/ - AI configuration templates
shell-config/ - Shell configuration files
Common Scenarios
"What tools do I have?"
- Load
references/tools-reference.md for organized list by category
"How do I install on new machine?"
- Run 4 scripts in order (see Quick Installation)
- Restart terminal, verify with
bat --version, fish, wt help
"How do I update everything?"
- Run
brew upgrade (MANDATORY first step)
- Run all install scripts
- Restart terminal
"Where is X configured?"
- Shell:
~/.config/<shell>/
- AI:
~/.claude/, ~/.codex/, ~/.gemini/
- Neovim:
~/.config/nvim/
- Starship:
~/.config/starship.toml
"Tool not working after install?"
- Check PATH:
command -v <tool>
- Reload config:
source ~/.config/fish/config.fish
- Reinstall:
brew reinstall <tool>
- For wt: Check
~/.config/fish/functions/wt.fish, use fish -c "wt help"
1---2name: rr-system3description: System setup, tool information, and AI configuration management for development environments. Use when setting up new machines, explaining available tools (shell-config, ai-rules, wt), managing AI ass4---5
6---
7name: rr-system
8description: System setup, tool information, and AI configuration management for development environments. Use when setting up new machines, explaining available tools (shell-config, ai-rules, wt), managing AI assistant configurations (Claude/Codex/Gemini/OpenCode), checking system configuration, or troubleshooting environment issues. Also triggers when working with configuration files (.json, .toml, .fish, .zsh, .bash), Brewfiles, or installation scripts. Example triggers: "Set up my development environment", "Install tools on new machine", "Configure AI assistant", "What tools do I have?", "Update my shell config", "Add MCP server to Claude", "Check system configuration"
9---
10
11# System Setup & Configuration
12
13Comprehensive system setup automation and tool reference for the rr- development environment. Provides automated installation scripts, AI configuration management, and modern CLI tools for macOS and Linux.
14
15**⚠️ IMPORTANT: ALWAYS CHECK OFFICIAL DOCUMENTATION ONLINE**
16
17Tools evolve rapidly. Before providing commands or configuration changes:
18
191. Load `references/tools-reference.md` for official documentation URLs
202. Search online for latest official documentation
213. Verify CLI options and flags are current
224. Use official docs as source of truth - this skill may be outdated
23
24## When to Use This Skill
25
26- Setting up new macOS or Linux machines
27- Explaining available tools (shell commands, aliases, modern CLI tools)
28- Managing AI assistant configurations (Claude Code, Codex, Gemini, OpenCode)
29- Editing, validating, or updating AI configuration files
30- Adding/removing MCP servers across AI platforms
31- Checking if tool or configuration exists
32- Troubleshooting environment issues
33- Updating existing installations
34
35## Progress Reporting Requirements
36
37**CRITICAL: Provide continuous progress updates for all installation tasks.**
38
39**Before ANY task:**
40
411. Use TodoWrite tool to create task list
422. Explain what you're about to do
433. Show exact command you'll run
44
45**During execution:**
46
471. Report real-time progress
482. Show relevant output
493. Explain warnings/errors immediately
50
51**After each step:**
52
531. Mark task as completed
542. Summarize accomplishments
553. Note issues or next steps
56
57**Never run commands silently** - always inform user what and why.
58
59## Quick Installation
60
61**Complete 4-step setup on macOS or Linux:**
62
63```bash
64cd .claude/skills/rr-system
65
66# 1. Install tools (includes Homebrew)
67bash scripts/install-tools.sh
68
69# 2. Upgrade all packages (MANDATORY)
70brew upgrade
71
72# 3. Install shell configs
73bash scripts/install-shell-config.sh
74
75# 4. Install AI configs
76bash scripts/install-ai-configs.sh
77
78# 5. Restart terminal
79```
80
81**For detailed instructions, see `references/installation-guide.md`**
82
83## Core Capabilities
84
85### 1. System Installation
86
87**4 automated scripts for zero-interaction setup:**
88
89**install-tools.sh** - Development tools via Homebrew
90
91- Installs Homebrew (macOS & Linux)
92- CLI tools from `Brewfile` (cross-platform)
93- macOS apps from `Brewfile.macos` (auto-skipped on Linux)
94- Verifies critical tools installed
95
96**brew upgrade** - MANDATORY after installing Homebrew
97
98- Upgrades all packages to latest versions
99- Ensures security patches and features
100- Must run before other installation scripts
101
102**install-shell-config.sh** - Shell configurations
103
104- Fish/Zsh/Bash configs with modular conf.d structure
105- Starship prompt + Ghostty terminal (macOS)
106- wt function (Fish only - git worktree manager)
107- Registers shells in /etc/shells (requires sudo)
108- Fixes Zsh permissions (requires sudo)
109- Enables Touch ID for sudo (macOS, requires sudo)
110
111**install-ai-configs.sh** - AI assistant configurations
112
113- Claude Code, Codex, Gemini, OpenCode configs
114- Validates JSON/TOML syntax
115- Creates directories, overwrites existing configs
116
117All scripts are idempotent (safe to run multiple times) with automatic verification.
118
119### 2. Brewfile Structure
120
121**Two Brewfiles for organized package management:**
122
123**`Brewfile`** - Shared CLI tools (macOS & Linux):
124
125- Shells (Fish, Zsh, Bash)
126- Modern CLI (bat, eza, fd, ripgrep, fzf, jq, yq, btop)
127- Development (git, neovim, node, go, python, mkcert)
128- Cloud (AWS, Azure, GCloud, kubectl, helm, k9s)
129- Terminal (tmux, zellij, lazygit, lazydocker)
130- AI CLIs (gemini-cli, opencode)
131
132**`Brewfile.macos`** - macOS-only applications:
133
134- Password & Security (1Password, 1Password CLI)
135- Communication (Slack, Zoom, Linear)
136- Development (Cursor, Ghostty, Tower)
137- AI Assistants (Claude, ChatGPT, Codex, Claude Code)
138- Productivity (Raycast, Granola, Shottr)
139
140**Adding tools:**
141
142- Edit `Brewfile` for CLI: `brew "tool-name"`
143- Edit `Brewfile.macos` for macOS apps: `cask "app-name"`
144- Run: `bash scripts/install-tools.sh`
145
146### 3. AI Configuration Management
147
148Manage AI assistant configs with automated installation or manual editing.
149
150**Supported platforms:**
151
152- Claude Code (`~/.claude/settings.json`)
153- Codex CLI (`~/.codex/config.toml`)
154- Gemini CLI (`~/.gemini/settings.json`)
155- OpenCode (`~/.config/opencode/opencode.json`)
156- Cursor (`~/.cursor/mcp.json`)
157
158**Quick install (recommended):**
159
160```bash
161bash scripts/install-ai-configs.sh
162```
163
164**Manual editing workflow:**
165
1661. Read current config file
1672. Reference `assets/ai-configs/<platform>-*` templates
1683. Make changes with Edit tool
1694. Validate syntax:
170 - JSON: `jq empty <file>`
171 - TOML: `python3 -c "import tomllib; tomllib.load(open('<file>', 'rb'))"`
1725. Restart AI assistant
173
174**Common tasks:**
175
176- Add MCP server: Modify mcpServers section, validate, restart
177- Update environment variables: Edit env section, validate, restart
178- Modify hooks (Claude): Edit hooks array, validate, restart
179
180**Feature Parity Principle:**
181
182Maintain near-identical configs across all platforms:
183
184- Keep same MCP servers on all platforms
185- Adapt only syntax for each platform's format
186- When adding/removing MCP servers, update ALL platforms
187- Only deviate when feature unavailable or platform requires different approach
188
189**For detailed schemas and patterns, see `references/ai-config-schemas.md`**
190
191### 4. Tool Reference
192
193**⚠️ Load `references/tools-reference.md` for complete documentation links**
194
195Modern CLI tools installed:
196
197- File operations: bat, eza, fd, ripgrep
198- Development: neovim, lazygit, lazydocker, fzf, ast-grep
199- Linting: actionlint, shellcheck
200- Navigation: zoxide, atuin, direnv
201- Version managers: fnm (Node.js), uv (Python)
202- System: procs, hexyl, broot, git-delta, difftastic
203- Cloud: kubectl, helm, gh, aws-cli, azure-cli, gcloud
204- Blockchain: foundry (forge, cast, anvil, chisel)
205- Terminal: tmux, zellij
206- AI CLIs: Claude Code, OpenCode, Codex, Gemini CLI
207- Package managers: Homebrew, Bun
208
209**Configuration locations:**
210
211- Fish: `~/.config/fish/` (config.fish + conf.d/)
212- Zsh: `~/.zshrc` + `~/.config/zsh/conf.d/`
213- Bash: `~/.bashrc`, `~/.bash_profile` + `~/.config/bash/conf.d/`
214- Neovim: `~/.config/nvim/` (LazyVim with Catppuccin)
215- Starship: `~/.config/starship.toml`
216- Claude: `~/.claude/`
217- Codex: `~/.codex/`
218- Gemini: `~/.gemini/`
219- Cursor: `~/.cursor/`
220
221**Git Worktree Manager (wt):**
222
223- Installation: Included in Fish config (via `install-shell-config.sh`)
224- Location: `~/.config/fish/functions/wt.fish`
225- Availability: Fish shell only (use `fish -c "wt <cmd>"` from bash/zsh)
226- Commands: new, switch, list, remove, clean, status
227- Auto package manager detection
228- Storage: `~/.wt/<repo-name>/`
229
230**Key aliases:**
231
232- `ls` → `eza`, `cat` → `bat`, `grep` → `rg`
233- File finder: `fd`
234- Navigation: `z dirname`, `zi` (zoxide)
235- Git: 60+ abbreviations (`g`, `ga`, `gc`, `gp`, `gl`, `gs`, etc.)
236- Tools: `lzg` (lazygit), `lzd` (lazydocker), `ff` (fzf preview)
237
238## Essential Workflows
239
240### Setting Up New Machine
241
242```bash
243cd .claude/skills/rr-system
244
245# 1. Install development tools (includes Homebrew)
246bash scripts/install-tools.sh
247
248# 2. Upgrade all packages (MANDATORY)
249brew upgrade
250
251# 3. Install shell configs
252bash scripts/install-shell-config.sh
253
254# 4. Install AI configs
255bash scripts/install-ai-configs.sh
256
257# 5. Restart terminal, then:
258fish # Start Fish shell
259chsh -s $(which fish) # Optional: make Fish default
260```
261
262**Verify:**
263
264```bash
265bat --version
266fish --version
267ls ~/.config/fish/config.fish
268ls ~/.claude/settings.json
269fish -c "wt help"
270```
271
272### Updating Existing Installation
273
274```bash
275# ALWAYS upgrade Homebrew first (MANDATORY)
276brew upgrade
277
278# Then update components
279bash scripts/install-tools.sh
280bash scripts/install-shell-config.sh
281bash scripts/install-ai-configs.sh
282
283# Restart terminal
284```
285
286### Adding MCP Server to All Platforms
287
288To maintain feature parity:
289
2901. Load `references/ai-config-schemas.md` for formats
2912. For each platform (Claude, Codex, Gemini, OpenCode):
292 - Read current config
293 - Add server definition (adapt syntax for platform)
294 - Validate: JSON (`jq empty`), TOML (`python3 tomllib`)
2953. Verify all 4 configs have server
2964. Restart each AI assistant
2975. Test server on each platform
298
299### Checking System Status
300
301**Verify tool installation:**
302
303```bash
304command -v <tool> # Check if exists
305which <tool> # Show location
306<tool> --version # Check version
307```
308
309**For wt (Fish function):**
310
311```bash
312ls ~/.config/fish/functions/wt.fish # Check file exists
313fish -c "wt help" # Test from any shell
314```
315
316**Check configurations:**
317
318```bash
319# Shell configs
320ls ~/.config/fish/conf.d/
321ls ~/.config/zsh/conf.d/
322
323# AI configs
324ls ~/.claude/settings.json
325ls ~/.codex/config.toml
326```
327
328## Troubleshooting
329
330### Homebrew
331
332**Not in PATH (macOS):**
333
334```bash
335# Apple Silicon
336eval "$(/opt/homebrew/bin/brew shellenv)"
337
338# Intel
339eval "$(/usr/local/bin/brew shellenv)"
340```
341
342### Shell
343
344**Shell not found:**
345
346```bash
347sudo sh -c "echo $(which fish) >> /etc/shells"
348sudo sh -c "echo $(which zsh) >> /etc/shells"
349```
350
351**Config not loading:**
352
353```bash
354source ~/.config/fish/config.fish # Fish
355source ~/.zshrc # Zsh
356source ~/.bashrc # Bash
357```
358
359### Tools
360
361**Tool not working:**
362
363```bash
364command -v <tool> # Check exists
365brew list | grep <tool> # Check installed
366brew reinstall <tool> # Reinstall
367source ~/.config/fish/config.fish # Reload config
368```
369
370### wt
371
372**Command not found:**
373
374```bash
375ls ~/.config/fish/functions/wt.fish # Check file
376fish -c "wt help" # Test from any shell
377fish # Or switch to Fish
378wt help
379```
380
381**Note:** wt is Fish-only. Use `fish -c "wt <cmd>"` from bash/zsh.
382
383### AI Configs
384
385**Syntax error:**
386
387```bash
388# Validate JSON
389jq empty ~/.claude/settings.json
390
391# Validate TOML
392python3 -c "import tomllib; tomllib.load(open('~/.codex/config.toml', 'rb'))"
393```
394
395**Common errors:**
396
397- Trailing commas (JSON)
398- Missing quotes around keys
399- Mismatched brackets/braces
400- Unescaped special characters
401
402**Config missing:**
403
404```bash
405bash scripts/install-ai-configs.sh # Reinstall
406```
407
408**For detailed troubleshooting, see `references/installation-guide.md`**
409
410## Best Practices
411
412### Installation
413
414- Run scripts in order: tools → brew upgrade → shell → AI
415- Always `brew upgrade` after installing Homebrew
416- Restart terminal after installation
417
418### Shell Selection
419
420- **Fish (recommended):** Best autosuggestions, modular structure, wt integration
421- **Zsh:** Good plugin ecosystem, bash-compatible
422- **Bash:** Universal compatibility, enhanced features
423
424### Tool Usage
425
426- Use modern alternatives: `bat` (cat), `eza` (ls), `rg` (grep), `fd` (find)
427- Use `z` instead of `cd` for frequent directories
428- Use `wt` for git worktrees (Fish only)
429
430## Resources
431
432**⚠️ ALWAYS START WITH OFFICIAL DOCUMENTATION**
433
434Before using skill resources:
435
4361. Load `references/tools-reference.md` for official doc URLs
4372. Search online for current documentation
4383. Verify commands with official sources
4394. Use skill as baseline only - official docs are source of truth
440
441### references/
442
443- `installation-guide.md` - Complete installation instructions, troubleshooting, verification
444- `tools-reference.md` - Official documentation URLs, quick reference (verify online first)
445- `ai-config-schemas.md` - Config schemas, MCP patterns, validation, merge strategies
446
447### scripts/
448
449- `install-tools.sh` - Install development tools via Homebrew
450- `install-shell-config.sh` - Install shell configurations
451- `install-ai-configs.sh` - Install AI assistant configurations
452
453All scripts are idempotent with verification.
454
455### assets/
456
457- `Brewfile` - CLI tools package list (cross-platform)
458- `Brewfile.macos` - macOS-only applications
459- `ai-configs/` - AI configuration templates
460- `shell-config/` - Shell configuration files
461
462## Common Scenarios
463
464**"What tools do I have?"**
465
466- Load `references/tools-reference.md` for organized list by category
467
468**"How do I install on new machine?"**
469
470- Run 4 scripts in order (see Quick Installation)
471- Restart terminal, verify with `bat --version`, `fish`, `wt help`
472
473**"How do I update everything?"**
474
475- Run `brew upgrade` (MANDATORY first step)
476- Run all install scripts
477- Restart terminal
478
479**"Where is X configured?"**
480
481- Shell: `~/.config/<shell>/`
482- AI: `~/.claude/`, `~/.codex/`, `~/.gemini/`
483- Neovim: `~/.config/nvim/`
484- Starship: `~/.config/starship.toml`
485
486**"Tool not working after install?"**
487
488- Check PATH: `command -v <tool>`
489- Reload config: `source ~/.config/fish/config.fish`
490- Reinstall: `brew reinstall <tool>`
491- For wt: Check `~/.config/fish/functions/wt.fish`, use `fish -c "wt help"`