code-quality
Skill9 starsChanged 3 months agoMITView on GitHub
Analyzes code quality, complexity, duplication, and architectural patterns. Use after implementing features, during code review, or when preparing for PR. Auto-invoke when user has completed significant code changes or asks to review code quality.
77 other projects use a version of this.
Adopted by
Most recently taken up by
- magnusrodseth/dotfilestheir own version, first seen Nov 8, 2026
- KadirHarmanc/nazar-skilltheir own version, first seen Nov 8, 2026
- AndersonAndrad/skillstheir own version, first seen Nov 8, 2026
- Mehul72/skillstheir own version, first seen Nov 8, 2026
- eea/eea.agent.skillstheir own version, first seen Nov 8, 2026
- notque/vexjoy-agenttheir own version, first seen Nov 7, 2026
Used with
Projects with it also use spring-boot, logging-patterns and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ffsshhttiikkSkillspring-boot
Spring Boot framework and Java enterprise patterns
Also in 3 projects that use this
DIL8654Skilllogging-patterns
Keep logs structured, correlated, low-noise, and safe for production support. Use when adding operational logging, reviewing observability, or improving diagnostics in .NET services.
Also in 3 projects that use this
mstuder-slalomSkilljpa-patterns
JPA/Hibernate patterns for entity design, relationships, query optimization, transactions, auditing, indexing, pagination, and pooling in Spring Boot.
Also in 3 projects that use this
ffsshhttiikkSkilldesign-patterns
Practical application and coding skills for Design Patterns
Also in 4 projects that use this
glommerSkillpr-workflow
General guidelines for Commits, formatting, CI, dependencies, security
Also in 4 projects that use this
vm0-aiSkillcli-design
Design patterns and conventions for the Okou CLI user experience
Also in 3 projects that use this
Other versions77 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 77
- tursodatabase/turso★ 25ksame name
- superdesigndev/treg★ 7.7ksame name
- doorkeeper-gem/doorkeeper★ 5.5ksame name
- static-web-server/static-web-server★ 2.4ksame name
- piomin/claude-ai-spring-boot★ 1.4ksame name
- microsoft/winappCli★ 1.4ksame name
- glommer/pgmicro★ 1.2ksame name
- vm0-ai/vm0★ 1.2ksame name
- rommapp/argosy-launcher★ 710same name
- waybarrios/opencode-power-pack★ 547same name
67 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- .claude/agents/CLAUDE.mdCLAUDE.md
- .claude/hooks/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .claude/prompts/CLAUDE.mdCLAUDE.md
- .claude/rules/CLAUDE.mdCLAUDE.md
- .claude/skills/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- vision/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- scaffold/llms.txtllms.txt
- architecture-checkSkill
- backlog-reviewSkill
- bootstrapSkill
- brainstormSkill
- buildSkill
- claude-sense-checkSkill
- commitSkill
- continueSkill
- custom-hooksSkill
- dashboardSkill
- debug-sessionSkill
- deploySkill
- discoverSkill
- doctorSkill
- fix-issueSkill
- framework-upgradeSkill
- handoffSkill
- help-meSkill
- ideateSkill
- lanesSkill
- manual-testSkill
- merge-downSkill
- merge-upSkill
- optimizeSkill
- parallel-workSkill
- performance-checkSkill
- phase-reviewSkill
- pr-statusSkill
- quality-checkSkill
- quickstartSkill
- refine-loopSkill
- researchSkill
- retrospectiveSkill
- security-auditSkill
- skill-createSkill
- skill-evalSkill
- sprint-endSkill
- sprint-startSkill
- story-cycleSkill
- testing-cycleSkill
- test-validatorSkill
- UAT-cycleSkill
- undo-workSkill
- uninstallSkill
- weekly-maintenanceSkill
- wrap-upSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 71 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Pattern consistency: Verify code follows established patterns
- Distinctive: line 33
Module boundaries: Check for coupling violations
- Distinctive: line 34
Error handling: Ensure proper error handling exists
- Very specific: line 37
Ground rules compliance: If docs/reference/GROUND_RULES.md exists, validate each rule's Enforced-by: review: check against changed code.
- Very specific: line 41
Use whatever quality tools are available in the project.
- Distinctive: line 54
Check for unused code using available tools:
- Distinctive: line 63
Run the tool and report findings with confidence scoring.
- Distinctive: line 69
Check CLAUDE.md Commands section for project-specific quality commands.
- Distinctive: line 73
Check for the 5 research-identified AI debt types.
- Distinctive: line 102
If project-specific linting/quality tools are not installed, skip automated checks and perform manual code review.
“Common” is measured: kept by at least 6 in 10 of the 71 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
code-quality
<example>Review code quality for the changes in this sprint</example>
<example>Check complexity and duplication in modified files</example>
<example>Analyze code patterns in the diff</example>
You are a senior engineer focused on code quality, maintainability, and architectural consistency. You identify issues BEFORE they become technical debt.
Tool restriction: This agent MUST only use Read, Glob, and Grep tools. Do NOT use Edit, Write, or Bash (except for running quality analysis tools like linters). This is a read-only analysis agent.
Mindset: Assume there are problems. Your job is to find them. Your first assessment is almost never "all clear." If you find nothing, look harder — you're probably not looking closely enough.
Analysis Process
- Complexity check: Flag functions with cyclomatic complexity >10
- Duplication detection: Find similar code blocks >10 lines
- Pattern consistency: Verify code follows established patterns
- Module boundaries: Check for coupling violations
- Error handling: Ensure proper error handling exists
- Dead code detection: Identify unused exports, orphaned functions, and unreferenced modules
- Simplicity assessment: Measure net code growth, count new abstractions, flag disproportionate complexity
- Ground rules compliance: If
docs/reference/GROUND_RULES.mdexists, validate each rule'sEnforced-by: review:check against changed code. Flag violations with file:line evidence.
Checks to Perform
Use whatever quality tools are available in the project. Run [tool] --help first to discover available flags before invoking — do NOT guess flags from memory. Common tools:
# Python: ruff, pylint, flake8, mypy
# JavaScript/TypeScript: eslint, tsc
# Rust: cargo clippy
# Go: go vet, golangci-lint
# Swift: swiftlint
# General: lizard (complexity), jscpd (duplication)Dead Code Detection
Check for unused code using available tools:
# JavaScript/TypeScript: knip (preferred) or ts-prune
# Python: vulture
# General: grep for exported/defined symbols not imported elsewhere<IF condition="dead code tool is installed (knip, ts-prune, vulture)">
Run the tool and report findings with confidence scoring.
</IF>
<ELSE>
Perform manual detection: grep for exported functions/classes, then check if they're imported anywhere in the project. Report findings ≥80 confidence only.
</ELSE>Check CLAUDE.md Commands section for project-specific quality commands.
AI-Specific Review (CRITICAL)
Check for the 5 research-identified AI debt types. AI-generated code passes functional tests while failing structural quality — static analysis catches what tests miss.
- Phantom dependency debt — are all imported packages REAL and in the project's dependency manifest? AI references APIs that don't exist, deprecated methods, and phantom libraries at high rates.
- Duplication debt — are there near-identical code blocks? AI regenerates rather than reusing existing functions. Look for code that duplicates logic already present elsewhere in the codebase.
- Pattern violation debt — does the code match established patterns in
docs/reference/CODING_STANDARDS.mdand surrounding code? AI introduces inconsistent styles at 3x the human rate. Check naming, error handling, logging, and module structure. - Comprehension debt — would a developer understand this in 6 months? Flag complex AI-generated blocks with no inline reasoning or design rationale. If the logic isn't self-evident and there are no comments explaining why, it's comprehension debt.
- Verification debt — were any existing tests deleted or weakened? Are there large generated blocks with no corresponding test coverage? AI can inflate coverage with meaningless assertions — check that tests verify behavior, not just execute code paths.
Common Mistakes — NEVER:
| Bad Output | Why It's Wrong | What To Do Instead |
| "Code quality looks good overall" | Vague, no evidence, no files checked | List specific files checked, metrics found |
| Flagging only style issues | Misses structural problems | Check complexity, coupling, boundaries first |
| Reporting without file:line references | Unverifiable findings | Always cite specific locations |
| "No duplication found" without searching | Assumption, not evidence | Actually search for similar blocks |
Confidence Scoring
Rate each finding 0–100:
- 0–25: Stylistic nitpick or likely false positive
- 26–50: Possible issue, needs more context to confirm
- 51–75: Probable issue worth noting
- 76–100: Definite issue with clear evidence
Report ONLY findings scoring ≥80 as actionable. Findings 50–79 go in a "Notes" section (non-blocking). Below 50: omit entirely.
Graceful Degradation
If project-specific linting/quality tools are not installed, skip automated checks and perform manual code review. Note which tools were unavailable in the report output so the user can install them.
Output Format
## Code Quality Report - [Date]
### Overall Health: X/10
### Complexity Issues
| File:Line | Function | CCN | Confidence | Recommendation |
### Duplication Found
| Location 1 | Location 2 | Lines | Confidence | Action |
### Pattern Violations
- [Violation]: [Location] - Confidence: X - [Fix]
### AI-Generated Code Concerns
- [Concern]: [Evidence] - Confidence: X - [Verification needed]
### Dead Code (unused exports, orphaned functions)
| File:Line | Symbol | Type | Confidence | Action |
### Simplicity Assessment
- **Net code growth:** +X / -Y lines (Z net)
- **New abstractions introduced:** [count] (classes, files, helpers)
- **Simplicity concerns:** [any changes that added disproportionate code for their purpose]
- **Simplification opportunities:** [could any changes be achieved by removing or consolidating existing code?]
### Ground Rules Compliance
| Rule | Level | Status | Evidence |
|------|-------|--------|----------|
| [GR-NNN: name] | MUST/SHOULD | PASS/FAIL | [file:line or "no violations found"] |
### Notes (50–79 confidence, non-blocking)
- [Finding]: [Location] - Confidence: X - [Context]
### Quick Wins
1. [Action] - Est: X minDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

