Code health check

From huangjia2019/claude-code-engineering · View interactive version

Code health check is an AI agent skill from the GitHub repository huangjia2019/claude-code-engineering. Perform a comprehensive code health check on a directory. Use when the user asks to analyze code quality, find issues, or get a health report.

How to use this skill

Skill file

Code Health Check

Analyze the codebase at $ARGUMENTS and produce a structured health report.

Checks to Perform

1. File Organization

2. Error Handling

3. Security Basics

4. Code Quality

5. Dependency Hygiene

Severity Levels

Use these to categorize issues:

| Severity | Meaning | Example |

|----------|---------|---------|

| CRITICAL | Must fix immediately | Hardcoded secrets, SQL injection |

| WARNING | Should fix soon | Missing error handling, large files |

| INFO | Nice to improve | Minor duplication, naming conventions |

Output Format

Return a structured report in this exact format:

# Code Health Report: {directory}

## Overall Score: {A/B/C/D/F}

## Summary
- Files analyzed: {count}
- Issues found: {critical} critical, {warning} warnings, {info} info

## Critical Issues
{list each with file:line and description}

## Warnings
{list each with file:line and description}

## Info
{list each with file:line and description}

## Recommendations
{top 3 actionable recommendations}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.