/gabbe-ops:tech-debtfrom gabbe-ops
Scans codebases for technical debt markers (TODO/FIXME), complexity, duplication, coverage gaps, structural smells, and stale dependencies. Scores items by impact and effort, producing a P1-P4 prioritized backlog for refactoring planning.
Ships in gabbe-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Surface, document, and prioritize technical debt so it can be systematically planned and repaid. Produce an Impact×Effort prioritized backlog using TECH_DEBT_TEMPLATE.md.
For existing code without tests, start with existing-project-onboarding.skill and characterization-tests.skill before repaying any debt.
Scan for explicit debt markers
# Find all TODO, FIXME, HACK, XXX markers
grep -rn "TODO\|FIXME\|HACK\|XXX\|@deprecated\|@todo" src/ --include="*.ts" --include="*.php" --include="*.py"
For each marker: note file:line, understand context, assign Impact and Effort scores.
Run complexity analysis
# JavaScript/TypeScript
npx [email protected] --format json src/ > complexity-report.json
# Look for: functions with cyclomatic complexity > 10
# PHP
vendor/bin/phpmd app/ text codesize,complexity
# Python
radon cc src/ -a -s # Cyclomatic complexity
xenon --max-absolute B --max-modules A --max-average A src/
# Look for: NPathComplexity > 200, CyclomaticComplexity > 10
# SonarQube (if configured)
sonar-scanner
# Look for: cognitive complexity, code smells
Check code duplication
# JavaScript/TypeScript
npx [email protected] src/ --min-lines 5 --min-tokens 50
# PHP
vendor/bin/phpcpd app/
# Flag: any duplication > 3 occurrences → candidate for extraction
Check test coverage gaps
[test coverage command]
# Flag files with < 60% line coverage as test debt
Identify structural debt patterns
God objects (too many responsibilities):
Fat Controllers (business logic in wrong layer):
Missing abstractions:
Stale dependencies:
npm outdated # Node.js — shows current vs wanted vs latest
composer outdated # PHP
pip list --outdated # Python
Score each debt item using Impact×Effort matrix
Impact (how much does this hurt development?):
H = blocks development, causes bugs, creates security risk
M = slows development, increases maintenance burden
L = minor annoyance, cosmetic
Effort (how long to fix?):
H = days or weeks of work
M = hours of focused work
L = < 1 hour
Priority matrix:
High Impact + Low Effort = P1 (do immediately)
High Impact + High Effort = P2 (plan for next sprint)
Low Impact + Low Effort = P3 (good for juniors/onboarding)
Low Impact + High Effort = P4 (deprioritize or skip)
Fill TECH_DEBT_TEMPLATE.md for each debt item
Produce prioritized backlog
## Tech Debt Backlog — [Date]
### P1 — High Impact, Low Effort (do now)
- TD-001: Extract UserValidator from UserController (2h effort, removes security bug risk)
### P2 — High Impact, High Effort (plan next sprint)
- TD-002: Refactor OrderService God class (3 days, blocks all new order features)
### P3 — Low Impact, Low Effort (good first issues)
- TD-003: Replace magic numbers in pricing module with named constants (30min)
### P4 — Deprioritize
- TD-004: Rename legacy variable names in archived report module (low business value)
Add P1 and P2 items to project/TASKS.md
Filled TECH_DEBT_TEMPLATE.md entries + prioritized backlog. Report: "Found [N] debt items. P1: [N], P2: [N], P3: [N], P4: [N]."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/caching-strategyChoose a cache pattern (cache-aside, read-through, write-through, write-behind) with TTLs, invalidation, key naming and fallbacks for Redis or Memcached. Use when you add a cache, see stale data, or a hot key overloads the store./capacity-planningEstimate how many instances, how much memory, IO and connections a service needs, from a baseline, a growth factor, a load test and headroom. Use when you plan for a traffic increase, size a cluster or set autoscaling limits./cloud-deployConfigure and deploy an app to Vercel, Railway or AWS (SST) with config files in the repo, parity of environments and no hand-set options. Use when you pick a hosting platform or write vercel.json, railway.toml or sst.config.ts./configuration-managementWrite a software configuration management plan - branching model, baselines, change control, reproducible builds, versioning, SBOM and configuration audit. Use when a project has no clear release identity, builds differ between machines, or you must choose trunk or git-flow./cost-optimizationFind cloud spend that can be cut (idle compute, unused storage, network, over-sized databases) and report each item with savings and risk. Use when the cloud bill grows, a FinOps review is due, or you look for unused resources./decommission-sunsetPlan the retirement of a service or product - deprecation timeline, data retention and export, user notices, contracts, traffic drain, teardown and checks afterwards. Use when the human decides to retire or shut down a system.npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-opsOther plugins' skills for the same job