一键导入
codebase-health
Perform a structured codebase health assessment and append results to docs/health-log.md. Use when asked to check codebase health.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform a structured codebase health assessment and append results to docs/health-log.md. Use when asked to check codebase health.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | codebase-health |
| description | Perform a structured codebase health assessment and append results to docs/health-log.md. Use when asked to check codebase health. |
| user-invocable | true |
| allowed-tools | Read Grep Glob Bash Edit |
| argument-hint | [] |
Perform a structured assessment of the codebase and append results to docs/health-log.md.
This creates a longitudinal record of codebase quality over time.
User says any of:
/codebase-healthrun codebase health checkassess codebase healthNone required. All context is derived from the repository.
git rev-parse --short HEAD # Current commit SHA
git log -1 --format=%ci # Commit date
date +%Y-%m-%d # Assessment date
Record:
assessment_date: Today's dategit_sha: Current commit (short)git_date: Date of that commitInspect the following areas:
| Area | What to Check |
|---|---|
| Source Code | Scan src/ for modules, patterns, code quality |
| Documentation | Verify docs/ files exist and are current |
| Tests | Check tests/ for test coverage |
| ADRs | Count ADRs in docs/decisions/ |
| Open Issues | Note any obvious gaps, TODOs, or debt |
Rate each dimension:
| Dimension | Rating | Criteria |
|---|---|---|
| Architecture | Strong / Adequate / Weak | Boundaries enforced? Layers clean? |
| Code Quality | Strong / Adequate / Weak | Patterns consistent? Readable? |
| Documentation | Strong / Adequate / Weak | Current? Complete? Accurate? |
| Test Coverage | Strong / Adequate / Weak | Validation scripts? Unit tests? |
| Technical Debt | None / Low / Medium / High | Shortcuts? Hacks? TODOs? |
| Completeness | Strong / Adequate / Weak | Protocol coverage? Spec alignment? |
List:
Produce a single-paragraph executive summary answering:
Is this codebase healthy, and is it on track?
The assessment MUST be appended to docs/health-log.md in this format:
---
## YYYY-MM-DD | `<git-sha>`
**Status:** Protocol-only reference implementation
### Dimensions
| Dimension | Rating |
|-----------|--------|
| Architecture | ... |
| Code Quality | ... |
| Documentation | ... |
| Test Coverage | ... |
| Technical Debt | ... |
| Phase Progress | ... |
### Risks
- ...
### Recommended Actions
1. ...
### Summary
<Executive summary paragraph>
After appending to the log:
This skill is optional and user-invoked. It does not block any other operations.