← ClaudeAtlas

code-qualities-assessmentlisted

Assess code maintainability through 5 foundational qualities (cohesion, coupling, encapsulation, testability, non-redundancy) with quantifiable scoring rubrics. Works at method/class/module levels across multiple languages. Produces markdown reports with remediation guidance.
rjmurillo/ai-agents · ★ 33 · AI & Automation · score 79
Install: claude install-skill rjmurillo/ai-agents
# Code Qualities Assessment Evaluate code maintainability using 5 timeless design qualities with quantifiable scoring rubrics. ## Triggers - `assess code quality` - `evaluate maintainability` - `check code qualities` - `testability review` - `run quality assessment` --- ## Quick Start ```bash # Assess a single file python3 scripts/assess.py --target src/services/auth.py # Assess changed files only (CI mode) python3 scripts/assess.py --target . --changed-only --format json # Full module assessment with HTML report python3 scripts/assess.py --target src/services/ --format html --output quality-report.html ``` --- ## The 5 Code Qualities | Quality | Question | Score 10 | Score 1-3 | |---------|----------|----------|-----------| | **Cohesion** | How related are responsibilities? | Single, well-defined responsibility | Unrelated responsibilities jammed together | | **Coupling** | How dependent on other code? | Minimal deps, depends on abstractions | Tightly coupled, hard-coded dependencies | | **Encapsulation** | How well are internals hidden? | All internals private, minimal API | Everything public, no information hiding | | **Testability** | How easily verified in isolation? | Pure functions, injected dependencies | Hard to test, requires full integration | | **Non-Redundancy** | How unique is each piece of knowledge? | Zero duplication, appropriate abstractions | Pervasive copy-paste | --- ## When to Use Use this skill when: - Reviewing code quality before merge