一键导入
zsh-config
Use when adding, splitting, or reorganizing files under config/zsh/ — conventions, testing, and module-split guidance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when adding, splitting, or reorganizing files under config/zsh/ — conventions, testing, and module-split guidance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | zsh-config |
| description | Use when adding, splitting, or reorganizing files under config/zsh/ — conventions, testing, and module-split guidance. |
See config/zsh/CLAUDE.md for the directory layout first.
#!/bin/zsh on every file.# Depends: <file> (for <thing>) line only when load order actually matters (silent breakage if reordered) — don't narrate obvious things like numeric-prefix ordering.[[ -n "$PYTHON_SETUP_DONE" ]] && return 0
command -v pyenv &>/dev/null && { eval "$(pyenv init -)"; PYTHON_SETUP_DONE=1; }
modules/languages/)Each defines setup_LANG(), is gated by a LANG_MODE flag from language-modes.zsh, and exposes toggle_LANG/enable_LANG aliases. LANG_MODE=0 means the function is defined but not auto-invoked (deferred, not lazy — it's still parsed at startup).
modules/services/)Naming: ABBREVinit, ABBREVstop, ABBREVrestart, ABBREVcheck, ABBREVcli, ABBREVport. Comment out the source line in init.zsh to disable a whole category — there's no runtime command -v gating.
languages/, services/, or utils/).source line to init.zsh in the right position (sourcing is fully explicit — no globbing).grep -rn "your_function_name" config/zsh/) — duplication across modules has bitten this config before.git.zsh growing past git-core.zsh / git-branch.zsh).zsh -n config/zsh/<file>.zsh # syntax check
zsh -i -c "source config/zsh/init.zsh; exit" # loads without error
time zsh -i -c exit # startup regression check (<5% vs baseline)
alias | grep <name>; type <function_name> # confirm it's defined