1w diet103
source-command-verify-setup Skill
运行基础设施健康检查并修复所有失败的项
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
source-command-verify-setup
Use this skill when the user asks to run the migrated source command verify-setup.
Command Template
Run the Codex infrastructure health check and get it fully green.
Steps
- Run the health check from the project root:
bash .Codex/scripts/verify-setup.sh
- For every
[FAIL]line, apply the printed fix. Common fixes:
- Dependencies missing:
cd .Codex/hooks && npm install - Scripts not executable:
chmod +x .Codex/hooks/*.sh - Invalid JSON in
.Codex/settings.jsonor.Codex/skills/skill-rules.json: read the file, find the syntax error (usually a trailing comma), and repair it without changing any settings values - Missing hook scripts registered in settings.json: ask the user whether to copy them from the showcase repo (https://github.com/diet103/Codex-infrastructure-showcase) or remove the dead registrations
- Re-run the script after each fix until it reports 0 failed.
[WARN]lines are optional features (session intelligence, jq-based file tracking, AI classification keys). Do NOT install API keys or system packages on the user's behalf - summarize what each warning means and let the user decide.
- Report the final result to the user: what was broken, what you fixed, and what (if anything) remains as a warning.