
Code Health Check
This runs a systematic health check on your codebase, scanning for hardcoded secrets, missing error handling, oversized files, code duplication, and other common issues. It categorizes findings as critical, warning, or info, then gives you a graded report with file and line numbers. Think of it as a structured second pair of eyes before a code review or when inheriting a project. The checks are practical rather than exhaustive: it won't replace a linter, but it catches the kind of stuff that causes production fires. Most useful when you need a quick audit of unfamiliar code or want to spot low-hanging fruit in your own work.
- GitHub stars
- 826
- last updated
- May 30, 2026
Install
$ npx -y skills add huangjia2019/claude-code-engineering --skill code-health-check --agent claude-codeInstalls into .claude/skills of the current project.
Files
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:
Sponsors
Details
- Repository
- github.com/huangjia2019/claude-code-engineering
- Category
- Code Review & Quality
- First seen
- Jun 11, 2026