Skip to content
Back to skills

Code Health Check

ASecurity

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.

  • 1,089 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 6, 2026
ai-agentsgosqlapisecurity

Works with

  • api

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add huangjia2019/claude-code-engingeering --skill code-health-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Health Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Health Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huangjia2019-code-health-check-claude-code-engineering/badge)](https://www.skillsdirectory.com/skills/huangjia2019-code-health-check-claude-code-engineering)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-health-check
description: 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.
context: fork
agent: general-purpose
allowed-tools:
  - Read
  - Grep
  - Glob
---

# Code Health Check

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

## Checks to Perform

### 1. File Organization
- Are files reasonably sized? (Flag files > 200 lines)
- Is the directory structure logical?
- Any files that look misplaced?

### 2. Error Handling
- Are async operations wrapped in try/catch?
- Are errors propagated correctly (not swallowed)?
- Is there a global error handler?

### 3. Security Basics
- Any hardcoded secrets, API keys, or passwords?
- Any use of `eval()` or similar dangerous functions?
- Are user inputs validated before use?

### 4. Code Quality
- Any obvious code duplication (similar blocks in multiple files)?
- Any unused variables or imports?
- Are function signatures reasonable (not too many parameters)?

### 5. Dependency Hygiene
- Are all imported modules actually used?
- Any circular dependencies?

## 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:

```markdown
# 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}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.