技能 编程开发 全面代码健康检查

全面代码健康检查

v20260307
code-health
通过 Centinela 质量代理扫描死代码、技术债务、过期依赖与代码异味,并审计 TODO/FIXME,生成报告以支持发布与重构前的代码质量把控。
获取技能
283 次下载
概览

Code Health

Runs a comprehensive code health scan using the Centinela (QA) agent.

When to Use This Skill

  • Periodic codebase hygiene check
  • Before a release to ensure no dead code or unresolved debt
  • After a large refactoring to verify cleanliness
  • When onboarding to understand current code quality

What This Skill Does

  1. Runs the SIGN IN checklist
  2. Scans for dead code (unused imports, variables, functions, commented-out blocks, unreachable code)
  3. Checks for outdated and vulnerable dependencies
  4. Detects code smells (long functions, deep nesting, duplication)
  5. Audits TODO/FIXME comments for issue references
  6. Runs the Scan Complete checklist (TIME OUT)
  7. Writes findings to docs/reviews/code-health-{date}.md
  8. Prepares findings handoff to Dev agent

How to Use

Basic Usage

/code-health

Example

User: /code-health

Output: A code health report at docs/reviews/code-health-2026-02-23.md with:

  • Dead code findings (verified, not false positives)
  • Dependency status and vulnerabilities
  • Code smell inventory
  • TODO/FIXME audit
  • Prioritized findings: Critical > Warning > Suggestion

Tips

  • Scans all source directories, not just src/ — includes tests/ and config files
  • Previous scan findings are compared to track recurring issues
  • Findings are verified to avoid false positives from dynamic imports or plugins
信息
Category 编程开发
Name code-health
版本 v20260307
大小 1.56KB
更新时间 2026-03-08
语言