From terminal-guru
This skill should be used when the user asks to "create a zsh function", "configure fpath", "add a keychain secret", "set up keychainctl", "check shell startup", or needs help with autoload functions, completions, zsh testing, Plugin Standard compliance, storing tokens, retrieving secrets, or macOS keychain management via keychainctl. Do NOT use for terminal display issues or signal handling (use terminal-emulation or signals-monitoring skills instead).
How this skill is triggered — by the user, by Claude, or both
Slash command
/terminal-guru:zsh-devThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create, test, and optimize Zsh shell configurations: autoload functions, fpath management, completions, function generation from established patterns, and a Python-based testing framework for safe experimentation in isolated environments.
references/isolated_environments.mdreferences/zsh_completion_guide.mdreferences/zsh_configuration.mdreferences/zsh_function_patterns.mdscripts/analysis/__init__.pyscripts/analysis/output_analyzer.pyscripts/environment_builder.pyscripts/install_autoload.shscripts/keychainctlscripts/terminal_test_runner.pyscripts/tests/__init__.pyscripts/tests/base.pyscripts/tests/performance_tests.pyscripts/tests/plugin_tests.pyCreate, test, and optimize Zsh shell configurations: autoload functions, fpath management, completions, function generation from established patterns, and a Python-based testing framework for safe experimentation in isolated environments.
keychainctl)Use this skill to generate, create, or write zsh functions using established patterns:
See references/zsh_function_patterns.md for pattern documentation and references/zsh_completion_guide.md for completion patterns.
Refer to references/zsh_configuration.md for comprehensive guidance on startup file order, ZDOTDIR, autoload syntax, fpath management, compinit, debugging, and performance.
Autoload function workflow:
# 1. Create file (no extension, name = function name)
# 2. Install and configure fpath
bash scripts/install_autoload.sh myfunction ~/.zsh/functions/myfunction
# 3. Add to ~/.zshrc
fpath=(~/.zsh/functions $fpath); autoload -Uz myfunction
# 4. Reload after changes
unfunction myfunction; autoload -Uz myfunction
Isolated test environments for safe experimentation. All test logic is in Python, eliminating the circular dependency of "shell testing shell."
python3 scripts/environment_builder.py --create <name>python3 scripts/terminal_test_runner.py --name <name> --suite all|performancepython3 scripts/terminal_test_runner.py --compare baseline.json optimized.jsonpython3 scripts/environment_builder.py --cleanup <path>See references/isolated_environments.md for the full testing workflow.
The keychainctl script provides macOS keychain operations for secure credential storage.
keychainctl set API_KEY # prompts securely
TOKEN=$(keychainctl get API_KEY) # stdout only — safe for capture
keychainctl ls [keychain] # optional fzf browse
keychainctl rm OLD_SECRET
get outputs only the password to stdout (safe for $(...)). Optional fzf integration for interactive browse.
$ZDOTDIR/functions/ — see references/zsh_function_patterns.md for patternsprint -l $fpath — verify directory is listedwhence -v <name> — check function locationunfunction <name>; autoload -Uz <name>python3 scripts/terminal_test_runner.py --name perf --suite performancekeychainctl - macOS keychain secret management CLIenvironment_builder.py - Isolated ZDOTDIR test environmentsterminal_test_runner.py - Automated test suitesinstall_autoload.sh - Install autoload functions to fpathzsh_configuration.md - Comprehensive Zsh configuration guidezsh_function_patterns.md - Function generation patterns and templateszsh_completion_guide.md - Completion implementation patternsisolated_environments.md - ZDOTDIR isolation and testing workflowsnpx claudepluginhub totallygreg/claude-mp --plugin terminal-guruManages terminal/shell environment config including zsh, aliases, tmux, starship, Ghostty, yabai, and GNU Stow dotfiles. Useful when editing shell config, adding aliases, or managing dotfiles.
Provides shell scripting expertise for bash, zsh, POSIX; CLI tools like jq, yq, fd, rg for JSON/YAML processing, file search, automation, error handling, and cross-platform best practices. Useful for CLI commands, pipes, script development.
Generates professional bash/shell scripts with Google Shell Style Guide compliance, ShellCheck validation, cross-platform support (Linux/macOS/Windows/containers), POSIX compliance, security hardening, error handling, performance optimization, and BATS testing. Useful for automation, DevOps/CI/CD, build scripts, debugging.