technical-debt-auditor
БесплатноБез исполняемых скриптовНе проверенScans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO/FIXME/HACK markers, dependency…
от davila7★ 34 631 звезда на GitHubОб этом скилле
Technical Debt Auditor
You are performing a systematic technical debt audit of this codebase. Your goal: produce a quantified, actionable report that tells the team exactly where their debt is, how severe it is, and what to fix first. This is not a vague "code review" — it's a structured scan with concrete metrics and a prioritized remediation plan.
Technical debt is like financial debt — it accumulates interest. A quick hack today costs 10x more to fix in six months when three features depend on it. Your job is to find the debt before the interest compounds, quantify it so it can be prioritized against feature work, and give the team a realistic plan to pay it down.
What you're scanning for
| Debt category | What to look for | Why it matters |
|---|---|---|
| Marker debt | TODO, FIXME, HACK, XXX, TEMP, WORKAROUND comments | Developers flagged these as known shortcuts — they're self-reported debt |
| Dead code | Unused exports, unreachable branches, commented-out code blocks, unused files | Dead code misleads readers, adds cognitive load, and sometimes hides bugs |
| Dependency debt | Outdated packages, deprecated APIs, pinned-to-old-major versions, unused deps in package manifest | Stale deps accumulate security vulns and block upgrades |
| Complexity hotspots | Large files (>300 lines), large functions (>50 lines), deeply nested logic (>3 levels), high cyclomatic complexity | Complex code is where bugs hide and where changes are slowest |
| Duplication signals | Near-identical code blocks, copy-pasted patterns with slight variations | Duplication means bug fixes need to happen in N places instead of 1 |
| Test gaps | Missing test files for modules, low assertion density, test files that only test happy paths | Untested code is where regressions slip through |
| Outdated patterns | Patterns that contradict the project's own conventions, deprecated language features, legacy API usage | Inconsistency slows onboarding and creates confusion |
| Config debt | Stale configs, conflicting settings, environment files with unused variables | Config debt causes "works on my machine" bugs and deploy failures |
PHASE 1 — RECONNAISSANCE
Before scanning anything, understand the project:
- Identify the tech stack — read package.json, Cargo.toml, pyproject.toml, go.mod, or whatever the project uses. Note the language(s), framework(s), package manager, and build system.
- Find the entry points — where does the application start? What are the main modules?
- Check for existing quality tooling — linters, formatters, type checkers, test runners, CI config. Understanding what's already enforced tells you what NOT to flag (e.g., don't report style issues if prettier is configured).
- Read any CLAUDE.md or project docs — these may contain conventions that inform what counts as "outdated" vs "intentional."
- Note the project scale — file count, approximate lines of code. This calibrates your effort estimates later.
Do not start scanning until you have this context. A "large function" in a 200-line CLI script means something different than in a 50,000-line enterprise app.
PHASE 2 — SYSTEMATIC SCAN
Work through each debt category methodically. For each category, use the appropriate tools:
Marker debt scan
Search for these patterns across all source files (not node_modules, vendor, build output):
TODO,FIXME,HACK,XXX,TEMP,WORKAROUND,KLUDGE,DEPRECATED- Note the file, line number, and surrounding context for each
- Classify each by severity:
HACK/FIXMEare higher severity thanTODO - Check dates if present — older markers indicate forgotten debt
Dead code scan
- Look for exported functions/classes that are never imported elsewhere
- Find commented-out code blocks (more than 2 consecutive commented lines of code, not documentation comments)
- Check for files that nothing imports or references
- Look for unreachable code after return/throw/break statements
- Check for unused variables and imports that linters haven't caught
Dependency debt scan
- Read the package manifest and lockfile
- For Node.js: check
package.jsondependencies against actual imports; flag packages in dependencies that aren't imported anywhere - Look for deprecated package warnings in lockfiles
- Check major version gaps (e.g., package is on v2 but v5 is current)
- Note any dependency with known security advisories if identifiable from lockfile metadata
Complexity hotspot scan
- Find the largest files by line count — list the top 10
- Within those files, find the largest functions/methods
- Look for deeply nested conditionals (if/else chains >3 levels deep)
- Flag god classes/modules that do too many things (heuristic: >10 public methods or >5 unrelated responsibilities)
- Check for overly long parameter lists (>5 parameters)
Duplication signal scan
- Look for structurally similar code blocks across files
- Check for copy-pasted error
Установить technical-debt-auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл technical-debt-auditor?
Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO/FIXME/HACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like "where should I focus refactoring", "find code smells", "audit my codebase", "what technical debt do we have", "prioritize cleanup work", or asks about code quality metrics. Also trigger when the user mentions "code rot", "legacy cleanup", "refactoring priorities", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say "technical debt" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.
Как установить скилл technical-debt-auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл technical-debt-auditor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic