code-quality
Skill0 starsChanged 4 months agoApache-2.0View on GitHub
Assess and improve code quality in TypeScript/React projects. Runs lint, type-check, coverage, duplication, and complexity analysis with sprint planning.
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 repository5 other files it gives its agents.
- code-healthSkill
- code-readabilitySkill
- github-wikiSkill
- security-auditSkill
- wiki-publishSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 71 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Run comprehensive code quality checks and establish baseline metrics.
- Very specific: line 62
Use the Grep tool with pattern : any on src/, glob *.{ts,tsx}, output_mode count.
- Very specific: line 67
Use the Glob tool with pattern src//*.{ts,tsx}, then Read each file to check line count.
- Very specific: line 92
Files with most
anytypes: Use the Grep tool with pattern : any, glob *.{ts,tsx}, path src/, output_mode count. - Very specific: line 93
Largest non-test files: Use the Glob tool with pattern src//*.{ts,tsx}.
- Very specific: line 94
Duplicate code locations: Use the Read tool on duplication-report/jscpd-report.json and parse the duplicates array to find the …
- Distinctive: line 130
After each sprint, run full validation:
“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 Assessment & Improvement Skill
Systematic code quality analysis, metric tracking, and improvement sprint planning for TypeScript/React projects.
How this relates to
code-health. In the quality-butler bundle,code-healthowns the structural roll-up (Maintainability Index, coupling, hotspots) and the graded dashboard, and already folds in coverage and lint signals.code-qualityis the hands-on improvement side: lint/type-check/coverage runs plus sprint planning to act on the findings. Some measures overlap (both can compute complexity/duplication) — reach forcode-healthfor the score and trend, andcode-qualitywhen you're planning and doing the cleanup.
Quick Commands
/code-quality assess- Run full assessment and generate report/code-quality metrics- Show current metrics vs targets/code-quality hotspots- Identify highest-priority improvement areas/code-quality sprint- Plan a focused improvement sprint
Workflow
Phase 1: Assessment
Run comprehensive code quality checks and establish baseline metrics.
Required Checks:
- Lint Analysis
npm run lint- Target: 0 errors, 0 warnings
- Track: Total warnings by category
- Type Safety
npm run type-check- Target: 0 TypeScript errors
- Track: Error count and locations
- Test Coverage
npx vitest run --coverage- Target: 80%+ line coverage
- Track: Coverage by directory
- Code Duplication
npx jscpd src --reporters json --output duplication-report- Target: <2% duplication
- Track: Percentage and clone locations
anyType Count Use the Grep tool with pattern: anyonsrc/, glob*.{ts,tsx}, output_modecount. Exclude test files by filtering results.- Target: <50
anytypes - Track: Count by file
- Target: <50
- Large File Detection
Use the Glob tool with pattern
src/**/*.{ts,tsx}, then Read each file to check line count. Sort results by size.- Target: No files >500 lines (excluding data files)
- Track: Files exceeding threshold
- Complexity Analysis (if eslint-plugin-complexity configured)
npx eslint src --rule 'complexity: [warn, 15]'- Target: No functions with complexity >15
- Track: High-complexity function locations
Phase 2: Hotspot Identification
Prioritize issues using the Impact/Effort Matrix:
| Priority | Impact | Effort | Examples |
| P0 | High | Low | ESLint errors, TypeScript errors |
| P1 | High | Medium | Large files blocking changes, high any concentration |
| P2 | Medium | Low | Duplicate code in same file |
| P3 | Medium | Medium | Missing test coverage for critical paths |
| P4 | Low | Any | Minor style inconsistencies |
Hotspot Detection:
- Files with most
anytypes: Use the Grep tool with pattern: any, glob*.{ts,tsx}, pathsrc/, output_modecount. Exclude test files. Sort by count descending. - Largest non-test files: Use the Glob tool with pattern
src/**/*.{ts,tsx}. Skip files matching.test.or__tests__. Read each to get line count, then rank by size. - Duplicate code locations: Use the Read tool on
duplication-report/jscpd-report.jsonand parse theduplicatesarray to find the most-repeated file paths.
Phase 3: Sprint Planning
Structure improvement work into focused sprints:
Sprint Template:
## Sprint [N]: [Theme]
**Duration**: [X] hours
**Goal**: [Specific, measurable objective]
### Tasks
| ID | Task | Effort | Impact |
|----|------|--------|--------|
| 1 | [Task description] | [hours] | [metric improvement] |
### Success Criteria
- [ ] Metric A: [before] → [target]
- [ ] Metric B: [before] → [target]
### Validation
- [ ] All tests pass
- [ ] Lint clean
- [ ] Type-check clean
- [ ] No regressionsSprint Sizing Guidelines:
- Quick Win Sprint: 4-8 hours, targets easy P0/P1 items
- Standard Sprint: 16-24 hours, tackles systematic issues
- Deep Dive Sprint: 40+ hours, major architectural refactoring
Phase 4: Validation
After each sprint, run full validation:
npm run lint && npm run type-check && npm testRegression Checklist:
- All existing tests pass
- No new lint warnings introduced
- No new TypeScript errors
- Build succeeds
- Application runs correctly
Metric Targets Reference
| Metric | Minimum | Good | Excellent |
| ESLint Errors | 0 | 0 | 0 |
| ESLint Warnings | <50 | <20 | 0 |
| TypeScript Errors | 0 | 0 | 0 |
| Test Coverage | 60% | 80% | 90%+ |
| Code Duplication | <5% | <2% | <1% |
any Types | <100 | <50 | <20 |
| Files >500 LOC | <10 | <5 | 0 |
| Complexity >15 | <10 | <5 | 0 |
Output Format
This report gets pasted into leadership decks, so it must read for a non-technical
audience — a verdict and a "so what," not bare numbers. (Same encoding principles as the
code-health dashboard; see code-health/references/methodology.md and the Audience-Personas
wiki page.) Lead with an executive summary; give every metric an explicit verdict and a
plain-language business impact. Verdict banding: ✅ at/above Good, ⚠️ at/above Minimum,
❌ below Minimum (per the Metric Targets Reference above). Relative context uses honest
yardsticks only — the metric's own target/last reading — never an invented "top X% of teams."
## Code Quality Assessment — [Date]
### Executive summary
> **[✅ Healthy / ⚠️ Watch / ❌ Needs action] — [one plain sentence a non-technical reader can repeat].**
> [What moved since the last reading and why it matters]. Biggest lever: [the single fix with the most payoff].
### Summary
| Metric | Current | Target | Verdict | Why it matters (business impact) |
|--------|---------|--------|:------:|----------------------------------|
| Lint errors | X | 0 | ✅/⚠️/❌ | Broken or unsafe code slips into the product |
| Lint warnings | X | 0 | ✅/⚠️/❌ | Small issues accumulate into slow, risky changes |
| TypeScript errors | X | 0 | ✅/⚠️/❌ | The type safety net has holes where bugs hide |
| Test coverage | X% | 80% | ✅/⚠️/❌ | Untested code means regressions ship unnoticed |
| Code duplication | X% | <2% | ✅/⚠️/❌ | One fix must be made in several places — easy to miss one |
| `any` types | X | <50 | ✅/⚠️/❌ | Each is a spot the compiler can't catch a mistake |
| Large files | X | 0 | ✅/⚠️/❌ | Slow to change, hard to review, easy to break |
### Top Hotspots
1. [File/Issue]: [Description] — [Recommended action] — [payoff]
2. ...
### Recommended Sprint
[Sprint plan based on hotspots]Related Files
methodology.md- Refactoring patterns, sprint structure, prioritization, and lessons learnedmetrics-template.md- Tracking templates for baseline, sprint progress, and final validation
Does 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.

