一键导入
gpd-health
Run project health checks and optionally auto-fix issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run project health checks and optionally auto-fix issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add research phase to end of current milestone in roadmap
Capture idea or task as todo from current research conversation context
Prepare a paper for arXiv submission with validation and packaging
Audit research milestone completion against original research goals
Create a hypothesis branch for parallel investigation of an alternative approach
List pending research todos and select one to work on
| name | gpd-health |
| description | Run project health checks and optionally auto-fix issues |
| argument-hint | [--fix] |
| context_mode | project-required |
| allowed-tools | ["read_file","write_file","shell","glob","grep"] |
<codex_runtime_notes> Codex shell compatibility:
gpd on PATH.GPD_ACTIVE_RUNTIME=codex uv run gpd ....
</codex_runtime_notes>Checks include: environment, project structure, storage-path policy, state validity, compaction, roadmap consistency, orphaned phase directories, convention lock integrity, plan frontmatter, latest return envelope, config.json validity, checkpoint tags, and git status.
Use --fix to automatically repair detected issues.
Check $ARGUMENTS for --fix flag.
if echo "$ARGUMENTS" | grep -q "\-\-fix"; then
HEALTH=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local --raw health --fix)
else
HEALTH=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local --raw health)
fi
if [ $? -ne 0 ]; then
echo "ERROR: health check failed: $HEALTH"
exit 1
fi
Parse JSON output containing:
checks: Array of {name, status, message, fixed} where status is "pass", "warn", or "fail"summary: Object with total, passed, warnings, failures, fixed## Project Health
| Check | Status | Details |
|-------|--------|---------|
| {name} | {pass/warn/fail} | {message} |
| ... | ... | ... |
---
**{passed}/{total} passed** | {warnings} warnings | {failures} failures
[If --fix was used:] | {fixed} auto-fixed
If there are failures and --fix was not used:
Run `$gpd-health --fix` to auto-repair {fixable_count} issue(s).
If all checks pass:
All {total} health checks passed.
<success_criteria>