health

其他 社区 v1.0.0
解读按原文结构重写,命令、链接、术语均保留;右侧可核对作者原始 SKILL.md

设计思路

health 是 gstack 的「项目体检看板」——跑项目自带的工具(type check / lint / test / dead-code / shellcheck / gbrain),按权重合成一个 0-10 的综合分,并和历史趋势对比。设计哲学最重要的一条是 Wrap, don't replace——本 skill 跑的是项目自己的工具,用 LLM 自己的判断替代工具的输出。

输出结构

当前分(按类目展开权重)+ 历史趋势:

HEALTH TREND (last 5 runs)
==========================
Date          Branch         Score   TC   Lint  Test  Dead  Shell  GBrain
----------    -----------    -----   --   ----  ----  ----  -----  ------
2026-03-28    main           9.4     10   9     10    8     10     10
...

Trend: IMPROVING (+0.9 since last run)

回归检测:与上次相比降了哪些类目,每条带具体的 evidence(biome warnings、failing tests 等)。

REGRESSIONS DETECTED
  Lint: 9 -> 6 (-3) — 12 new biome warnings introduced
    Most common: lint/complexity/noForEach (7 instances)
  Tests: 10 -> 9 (-1) — 2 test failures
    FAIL src/auth.test.ts > should validate token expiry

改进建议(永远展示):按 weight * (10 - score) 降序,只列分数 < 10 的类目,每条配可执行命令:

RECOMMENDATIONS (by impact)
============================
1. [HIGH]  Fix 2 failing tests (Tests: 9/10, weight 30%)
   Run: bun test --verbose to see failures
2. [MED]   Address 12 lint warnings (Lint: 6/10, weight 20%)
   Run: biome check . --write to auto-fix

重要规则

  1. Wrap, don't replace——跑项目自己的工具,绝不用 LLM 的判断替换它的报告。
  2. Read-only——不修任何 issue,把仪表盘呈给用户决定。
  3. Respect CLAUDE.md——如果 ## Health Stack 配置了具体命令就用它,不二次猜测。
  4. Skipped ≠ failed——工具不可用就优雅跳过、按比例重分配权重,不扣分。
  5. 失败时显示原始输出——tail -50 让用户不必再重跑。
  6. 趋势依赖历史——首次跑就说「First health check — no trend data yet」。
  7. 诚实评分——100 个 type error + 测试全过 ≠ 健康;composite 分要反映现实。

适合谁

  • 想给项目建立长期质量基线的小团队
  • 给 review 之前快速过一遍仪表盘的工程师
  • 周期性体检(CI 跑、每周报表)

不适合

  • 项目工具链没立起来——本 skill 是 wrapper,没工具可包
  • 一次性脚本——开仪表盘成本不划算

配套

devex-review(开发体验维度的更深审)、design-review(视觉维度)、gstack-openclaw-retro(团队节奏复盘)。

流狐档案 作者与许可取自来源;运行、权限和网络为流狐检测或估算
流狐分类
通用
作者声明 Agent
未找到明确声明;不据此推断已兼容或已测试
静态检查
92 / 100 · 启发式扫描,不代表运行安全
作者 / 版本 / 许可
@garrytan · v1.0.0 · 未声明 license
流狐 Token 估算
较高消耗
流狐接入估算
需手动接入
是否需要外部 API Key
未发现要求
检测到的系统要求
macOS · Linux · Windows
底层运行要求
Node.js · Bun
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
  • Shell 执行
检测到的网络行为
允许外网请求
安装命令数
无(仅作为资料)

档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。

需要注意: 未限定 allowed-tools,默认拥有全部工具权限。

输出预览 health.preview
# Writing Style (skip entirely if EXPLAINLEVEL: terse appears in the preamble echo OR the user's current message explicitly requests terse / no-explanations output)

- Gloss curated jargon on first use per skill invocation, even if the user pasted the term.
- Frame questions in outcome terms: what pain is avoided, what capability unlocks, what user experience changes.
- Use short sentences, concrete nouns, active voice.
- Close decisions with user impact: what the user sees, waits for, loses, or gains.
- User-turn override wins: if the current message asks for terse / no explanations / just the answer, skip this section.
- Terse mode (EXPLAIN_LEVEL: terse): no glosses, no outcome-framing layer, shorter responses.

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。