一键导入
zsh-completions
Add custom zsh completions for a tool.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add custom zsh completions for a tool.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Capture global dotfile changes made by a CLI installer into the chezmoi source, then commit. Use after an installer (curl pipe to sh, npm -g, brew, etc.) edits shell rc files or PATH. Pass the install command as the argument; the skill runs it, diffs what changed, ports only the portable edits into the chezmoi source templates, confirms anything ambiguous, then commits.
Audit macOS efficiency, background load, cache sprawl, Homebrew cleanup, login items, LaunchAgents, and safe developer cache cleanup. Use for Mac performance, disk cleanup, cache cleanup, background process, launch daemon, or login item audits.
Refresh stale CLI-backed skills in PaulRBerg/agent-skills after installed CLI versions advance; update docs from official upstream release docs and set references/version.txt.
Add a new dependency to tool installation scripts
| name | zsh-completions |
| description | Add custom zsh completions for a tool. |
| argument-hint | <tool-name> |
Add or update completions for the tool "$1".
Basics:
fpath via compinit.$ZSH_CUSTOM/completions and enabled plugin directories to fpath before compinit.Steps:
Find or generate the completion script.
If the tool supports it, generate a zsh completion file, for example:
$1 completion zsh > _${1}
Choose a placement strategy.
Option A: custom completions directory (no plugin needed):
mkdir -p "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/completions"
mv _${1} "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/completions/_${1}"
Option B: custom plugin (useful if you want plugins=(...) control):
mkdir -p "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/${1}"
mv _${1} "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/${1}/_${1}"
Add ${1} to the plugins=(...) list in your .zshrc if you use Option B.
Reload completions.
rm -f "$ZSH_COMPDUMP"
exec zsh
Notes:
_${tool} to be discovered._tool manually using zsh completion functions.