code-health-check

Solid

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.

AI & Automation 702 stars 259 forks Updated yesterday

Install

View on GitHub

Quality Score: 86/100

Stars 20%
95
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
84
Issue Health 10%
50
License 10%
0
Description 5%
100

Skill Content

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

Details

Author
huangjia2019
Repository
huangjia2019/claude-code-engineering
Created
4 months ago
Last Updated
yesterday
Language
JavaScript
License
None

Similar Skills

Semantically similar based on skill content — not just same category