/dev-skills:tech-debtfrom dev-skills
Audits codebase for structural debt (SOLID violations, duplication, unnecessary layering) using parallel review agents. Ranks top 10 findings, excludes existing backlog items, and walks owner through each for GitHub issue filing.
Ships in dev-skills. 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.
Foreground, standalone: no worktree, no issue coupling, no code edits. A team of review agents reads the whole codebase looking for structural debt, ranks what it finds, and the owner decides — one finding at a time — what's worth turning into real backlog work.
Establish scope. Default is the whole repo. If the owner (or argument-hint) named a
path/module, scope the review to it and say so up front.
Snapshot the existing backlog, once, before spawning anything. The whole point is to never re-surface what's already known:
gh issue list --state open --json number,title,url --limit 200
Keep this list in context — you'll hand it to every lens agent below so they self-filter, and you'll do a final cross-check yourself before presenting anything to the owner.
Spawn three lens agents in parallel (one Agent tool call each, sent together — not
sequential), each subagent_type: general-purpose, model: opus (the strongest available tier —
this is a deep, whole-codebase read, not a quick lookup). Give every lens the scope from step 1
and the open-issue list from step 2 verbatim, with the instruction to silently drop any candidate
that duplicates an existing open issue's title/body rather than flagging it. Each lens returns
its own ranked candidate list — file:line evidence, the concrete problem, and a concrete direction
to fix it, never a vague "consider refactoring X":
Each lens caps itself at its own strongest ~5-8 candidates rather than padding to hit a number — a lens with fewer genuine findings should return fewer.
Merge, dedupe, and rank globally. Collect all three lenses' candidates. Two different lenses sometimes point at the same underlying spot (a god-class is both a SOLID violation and the reason its duplicated logic never got extracted) — merge those into one finding citing both angles rather than presenting it twice. Do your own pass against the step-2 backlog list too (lens-level self-filtering can miss a near-match) — drop anything that's substantially already an open issue. Rank what's left by impact: how much it currently costs (bug surface, onboarding friction, how often it's touched) weighed against how contained the fix is. Keep the top 10 — fewer if fewer genuinely impactful findings survive; never pad the list to reach 10.
Present findings one at a time — full context, owner decides each one before you show the next. Don't dump the ranked list upfront. For each:
[3 of 10] <one-line title>
Lens: <SOLID | duplication | structure>
Where: <file:line, file:line, ...>
Problem: <what's actually wrong, concretely>
Direction: <the shape of the fix — not a full design, just where it points>
Impact: <why this one ranked where it did>
Ask: file as a GitHub issue, skip, or adjust (owner can narrow/reshape it before it's filed). Never file anything without that per-item confirmation — the owner decides what enters the backlog, this skill only surfaces candidates.
File exactly what the owner accepted, drafted with a distinct ## Direction section (not
folded into Notes) — keep it as its own heading, verbatim; some downstream consumer of the filed
issue may key off that section being present:
gh issue create --title "<concise title>" --label "<P0|P1|P2|P3>" --label "status:ready" --label "type:tech-debt" \
--body "## Scope
<what this touches, in/out>
## Acceptance criteria
- [ ] <behavior is unchanged — existing tests still pass unmodified, no public signature/error-contract/CLI/config/serialized-output change>
- [ ] <the structural outcome itself — e.g. 'X and Y are split into single-responsibility units'>
## Direction
<the finding's Direction field, verbatim — the shape of the fix, where it points>
## Notes / context
Lens: <SOLID | duplication | structure>. Where: <file:line, file:line, ...>. Problem: <what's wrong>."
The first acceptance criterion is always the behavior-preservation one, worded plainly — this is the contract the whole fast path rests on, not optional boilerplate. Propose a priority (default P2 — real but not urgent, unless the finding's impact argues otherwise) and confirm before creating.
Log the run, even if nothing got filed. This creates an audit trail a consuming pipeline can use to compute a review cadence later, without guessing:
LOG_URL=$(gh issue create --title "Tech debt review — $(date +%Y-%m-%d)" \
--body "Scope: <repo or path>. Candidates found: <N>. Filed: <issue numbers>. Skipped: <count>." \
--label "tech-debt-review")
gh issue close "$LOG_URL"
gh issue create prints the new issue's URL; gh issue close accepts a URL directly, so no
number-parsing needed.
Immediately closed — it's an audit-trail marker, not a work item.
Report. List what got filed (numbers + brief descriptions), what got skipped, and confirm the run is logged for cadence tracking.
gh issue create calls in steps 6-7. No worktree, no
code edits — this skill finds and files, it never fixes anything itself. A finding worth fixing
becomes a normal issue that goes through the repo's own issue pipeline like any other.type:docs. The two fast paths are
mutually exclusive — a finding is either a structural code change or a documentation change, never
both from this skill. Filed issues get type:tech-debt and nothing else in that label kind.(description) — the owner does not track raw numbers.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rustyrazorblade/skills --plugin dev-skills6 skills in this plugin
/complexity-reductionMeasure cognitive complexity and duplicate code with PMD (Java) or rust-code-analysis-cli (Rust), then reduce both by pure-move extraction, re-measuring after every step. Runs over a subsystem or over a PR diff. Use this when the user asks to simplify, refactor, clean up, or reduce the complexity of a subsystem, asks "how complex is X", asks to find duplicate code, asks to make code "beautiful", or asks for a complexity check on a diff or PR. It measures before it edits and re-measures after; it never accepts an unmeasured claim that a change helped. It reports only, unless the user passes `--refactor`. It is not `/simplify`, which reads the current diff and has no metric.
/ide-explainRender an IDE-style single-page HTML view that explains anything the owner needs to see whole — a code diff, a GitHub issue plus everything linked to it, project docs, or any mix — as a file tree on the left, a code/diff/doc editor top-right, and an explanation pane bottom-right. Deterministic by default (no model tokens spent on markup); a hand-authored manifest mode exists for taught narratives. Self-contained output, no server, no CDN. Standalone — works in any repo, no other plugin required. Use whenever the owner wants one visual, walkable view instead of raw diff output or hopping between GitHub tabs — including looking at a plain backlog issue before any worktree or diff exists.Other plugins' skills for the same job