一键导入
sg-health
Use this when something feels broken or before onboarding — diagnoses GSD, Superpowers, hooks, HANDOFF.md, and STATE.md installation line by line.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this when something feels broken or before onboarding — diagnoses GSD, Superpowers, hooks, HANDOFF.md, and STATE.md installation line by line.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sg-health |
| description | Use this when something feels broken or before onboarding — diagnoses GSD, Superpowers, hooks, HANDOFF.md, and STATE.md installation line by line. |
<execution_context> Self-contained — reads ~/.claude/*, ${CLAUDE_PLUGIN_ROOT}/hooks/hooks.json, .planning/HANDOFF.md, .planning/STATE.md. Writes nothing. </execution_context>
Check the following 7 items in order. Accumulate FAIL and WARN counters and print a summary line at the end. File write operators (>, >>, tee, sed -i) are never used.GSD installation
test -d "$HOME/.claude/get-shit-done" && echo OK || echo FAIL
GSD .............. [OK]GSD .............. [FAIL] ~/.claude/get-shit-done/ directory not found, FAIL++Superpowers installation
test -d "$HOME/.claude/plugins/data/superpowers-claude-plugins-official" && echo OK || echo FAIL
Superpowers ...... [OK]Superpowers ...... [FAIL] directory not found, FAIL++Hook script existence (required for Codex/Gemini install)
test -f "hooks/stop_hook.cjs" && test -f "hooks/rule_runner.cjs" && echo OK || echo WARN
Hook scripts .... [OK]Hook scripts .... [WARN] hooks/stop_hook.cjs or hooks/rule_runner.cjs not found. For Codex/Gemini use: cp -r ~/super-gsd/hooks ., WARN++Stop hook registration
grep -q '"Stop"[[:space:]]*:' "${CLAUDE_PLUGIN_ROOT}/hooks/hooks.json" && echo OK || echo FAIL
Stop hook ........ [OK]Stop hook ........ [FAIL] Stop hook not found in hooks.json, FAIL++SubagentStop hook registration
grep -q '"SubagentStop"' "${CLAUDE_PLUGIN_ROOT}/hooks/hooks.json" && echo OK || echo FAIL
SubagentStop hook [OK]SubagentStop hook [FAIL] SubagentStop hook not found in hooks.json, FAIL++HANDOFF.md schema
test -f .planning/HANDOFF.md && echo EXISTS || echo MISSING
HANDOFF.md ....... [WARN] file not found (no handoffs yet), WARN++grep -E '^\| [0-9]{4}-' .planning/HANDOFF.md | head -1
HANDOFF.md ....... [WARN] no data rows (no handoffs yet), WARN++grep -E '^\| [0-9]{4}-' .planning/HANDOFF.md | head -1 | awk -F'|' '{print NF}'
HANDOFF.md ....... [OK] (Phase 39+ 6-column pipe schema with User)HANDOFF.md ....... [WARN] legacy 5-column rows (pre-Phase 39 — User column missing), WARN++HANDOFF.md ....... [FAIL] schema corrupted (expected 5 or 6 pipe-delimited columns), FAIL++STATE.md frontmatter
test -f .planning/STATE.md && echo EXISTS || echo MISSING
STATE.md ......... [WARN] file not found, WARN++grep -c '^---$' .planning/STATE.md
STATE.md ......... [OK]STATE.md ......... [FAIL] frontmatter cannot be parsed (missing --- delimiter), FAIL++Summary output
Print a blank line, then:
All checks passed.[FAIL] ${FAIL} item(s), [WARN] ${WARN} item(s) — check the items above.
<success_criteria>
GSD .............. [OK] — dot padding + [OK]/[WARN]/[FAIL]/[OPTIONAL]).Detect the current workflow stage from HANDOFF.md and STATE.md and report the next sg-* skill to activate.
Detect existing session or start new project — super-gsd workflow entry point
Display current workflow stage, last handoff timestamp, and next recommended command
Toggle the sg-learn stage on or off in the super-gsd workflow by flipping super_gsd.skip_learn in .planning/config.json. Accepts on|off, or no argument to flip.
Toggle the sg-review stage on or off in the super-gsd workflow by flipping super_gsd.skip_review in .planning/config.json. Accepts on|off, or no argument to flip.
Toggle the sg-tdd stage on or off in the super-gsd workflow by flipping super_gsd.tdd_mode in .planning/config.json. Accepts on|off, or no argument to flip.