agentsclimarketplace

Qa tech debt

Skill christopherlouet/claude-base/.claude/skills/qa-tech-debt

Opinionated Claude Code foundation — Explore → TDD → Audit workflow, auto-detected stack presets (nextjs, fastapi, astro, ...), curl | bash install. MIT.

Install
npx -y skills add christopherlouet/claude-base --skill qa-tech-debt

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Technical debt management and prioritization, including test-coverage analysis and Kaizen continuous improvement. Trigger when the user wants to identify, prioritize or plan the repayment of technical debt, analyse/improve test coverage, or run a PDCA continuous-improvement cycle.

SKILL.md

3.9 KB, as published. Nobody here has run it

Tech Debt Management

Triggers

  • "technical debt"
  • "tech debt"
  • "refactoring priority"
  • "legacy code"
  • "code quality"

Identification

Code Smells to Detect

# TODOs and FIXMEs
grep -r "TODO\|FIXME\|HACK\|XXX" --include="*.ts" --include="*.tsx" src/

# Large files
find src -name "*.ts" -o -name "*.tsx" | xargs wc -l | sort -n | tail -20

# Complexity (nesting)
grep -r "if.*if.*if" --include="*.ts" src/

# any in TypeScript
grep -r ": any" --include="*.ts" --include="*.tsx" src/

Metrics

MetricThresholdCommand
LOC/file< 500wc -l
Functions/file< 15grep
Nesting depth< 4analysis
Test coverage> 70%npm test -- --coverage

Categorization

Impact

LevelDescriptionExamples
CriticalBlocks developmentCircular coupling
HighSignificantly slows downMassive duplication
MediumHinders maintenanceConfusing naming
LowCosmeticInconsistent style

Effort

LevelTimeExamples
Trivial< 1hRename variable
Low< 1 dayExtract function
Medium1-5 daysRestructure module
High> 1 weekRewrite component

Prioritization

Impact/Effort Matrix

Impact
  ^
  |  Quick Wins  |  Strategic
  |     (P1)     |    (P2)
  +--------------+-------------
  |   Fill-in    |   Avoid
  |     (P3)     |    (P4)
  +-------------------------> Effort

Remediation Plan

Template

## Item: [Name]

**Priority**: P[1-4]
**Impact**: [Critical/High/Medium/Low]
**Effort**: [Trivial/Low/Medium/High]

### Description
[Description of the problem]

### Files concerned
- path/to/file.ts:L42

### Proposed solution
[Refactoring approach]

### Success criteria
- [ ] Tests pass
- [ ] No regression
- [ ] Improved metrics

Test coverage analysis

Test debt is a first-class category of technical debt. Measure and close the gaps.

# Current coverage (statements / branches / functions / lines)
npm test -- --coverage          # Jest / Vitest
MetricThresholdNotes
Statements> 80%
Branches> 75%Hardest and highest-value gap
Functions> 80%
  • Categorise gaps by criticality (business code and edge cases first), not by raw %.
  • Prioritise critical business code; 100% coverage != 100% quality — never sacrifice test quality to hit a number.
  • Add missing tests for branches, boundary conditions and error paths; wire a coverage gate into CI (/ops:ops-ci). Generate the tests via /dev:dev-tdd or /dev:dev-tdd.

Continuous improvement (Kaizen)

For incremental, durable improvement of code and process, run the PDCA cycle instead of a big-bang rewrite.

  • PLAN: identify the problem and root cause (5 Whys), set a SMART objective.
  • DO: implement one change at a time, atomic commits.
  • CHECK: measure before/after, compare to the objective.
  • ACT: standardise on success, adjust on failure; plan the next iteration.
  • Eliminate the 7 Muda (overproduction, waiting, transport, over-processing, inventory, motion, defects). Always measure before and after; one change at a time, no revolutions.

Workflow

  1. Identify - Scan the codebase (smells, coverage gaps, Muda)
  2. Categorize - Impact and effort
  3. Prioritize - Decision matrix
  4. Plan - Integrate into the backlog
  5. Execute - Incremental refactoring (one change at a time, PDCA)
  6. Validate - Tests, coverage and metrics (before/after)

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.