check-code-hygiene
SolidCheck code for standardization, readability, maintenance complexity, and defensive coding
Code & Development 30 stars
1 forks Updated 1 months ago MIT
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
Analyze the codebase for code hygiene issues. Generate a report highlighting problems with standardization, human readability, maintenance complexity, and defensive coding.
## Process
1. **Read CLAUDE.md** to understand the project's documented conventions and architecture.
2. **Scan the source code** (`src/`) for these categories of issues:
### Standardization
- Inconsistent naming conventions (camelCase vs snake_case, abbreviations)
- Inconsistent patterns for similar operations (e.g., error handling done differently in similar contexts)
- Inconsistent import ordering or module organization
- Mixed paradigms without clear justification
### Human Readability
- Functions that are too long or do too many things (>50 lines of logic)
- Deeply nested code (>3 levels of nesting)
- Unclear variable/function names that require reading the implementation to understand
- Missing or misleading comments on complex logic
- Magic numbers or strings without named constants
- Complex boolean expressions that should be extracted to named variables
### Maintenance Complexity
- Tight coupling between modules that should be independent
- Circular dependencies
- God objects or functions that know too much about other modules
- Duplicated logic that should be shared
- Files that mix multiple unrelated concerns (check against the "one primary export per file" convention in CLAUDE.md)
### Defensive Coding
- Unvalidated external input (API request bodies, query params, file contents)
- Missin...
Details
- Author
- brianwestphal
- Repository
- brianwestphal/glassbox
- Created
- 6 months ago
- Last Updated
- 1 months ago
- Language
- TypeScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
claude-md-review
Audit a CLAUDE.md file for the patterns that actually degrade Claude Code's output — vagueness, unnamed files, stale facts, and bloat. Use when asked to review, audit, improve, shrink, or fix a CLAUDE.md, and when a project's results feel inconsistent or Claude keeps rediscovering the same context.
2,996 Updated 1 months ago
wesammustafa AI & Automation Listed
ccc-claudemd
Audit the project CLAUDE.md against the codebase — stale paths, dead commands, token waste — fixes applied only after AskUserQuestion approval. Use when: 'audit claude md', 'optimize instructions'.
6 Updated today
KevinZai