tech-debt-analysis
БесплатноБез исполняемых скриптовНе проверенAnalyzes technical debt in codebases, test suites, architecture, dependencies, and delivery workflows using observable signals. Use when auditing repository…
от jaktestowac★ 124 звезды на GitHubОб этом скилле
Technical Debt Analysis
Use this skill when a user needs to understand the technical debt in a codebase, test suite, architecture, or delivery process. It is designed for evidence-driven analysis that surfaces the real drivers of delivery drag, quality risk, and maintenance cost, rather than relying on intuition or vague impressions. The output is a structured report that prioritizes debt items based on severity, remediation risk, effort, and ROI, with actionable recommendations for next steps.
When to Use
Use this skill when the user asks for things like:
- "audit this repository for technical debt"
- "why is delivery slowing down in this codebase?"
- "identify the biggest quality risks before we refactor"
- "analyze why our tests are slow, flaky, or hard to maintain"
- "prepare a technical debt roadmap for the next quarter"
- "what should we fix now versus consciously defer?"
Typical scenarios:
- repo-wide health assessment
- module-specific debt audit
- test-suite debt analysis
- pre-migration or pre-upgrade assessment
- roadmap planning for refactoring and quality work
Analysis Principles
- Evidence before verdict - observable signals come first; conclusions come second
- Debt is a trade-off, not a moral failure - explain the cost, not just the flaw
- Root cause over symptom - identify why the debt exists, not only where it hurts
- Risk-aware, not risk-averse - high-risk debt should be surfaced, not politely ignored
- Incremental remediation - prefer staged fixes with safety nets over heroic rewrites
- Test debt is first-class debt - unreliable tests damage delivery as much as bad production code
- Explicit uncertainty - if context is missing, state assumptions rather than bluffing
Analysis Workflow
Follow these phases in order.
Phase 0: Frame the analysis
Before scanning the codebase, clarify:
- scope: whole repository, subsystem, module, or test layer
- audience: engineering team, tech lead, QA lead, staff engineer, or management
- goal: awareness, prioritization, roadmap planning, release risk, or refactor planning
- constraints: legacy boundaries, compliance, time pressure, "no refactor now", or team capacity
- pain signals: regressions, slow CI, flaky tests, upgrade blockers, onboarding friction, or architecture sprawl
If some information is missing, infer carefully and list assumptions explicitly.
Phase 1: Collect evidence and context
Never start by assigning debt labels from instinct.
Read the repository context first:
- README and architecture or onboarding docs
- package manifests and dependency files
- build, test, and lint scripts
- CI workflows and quality gates
- directories with concentrated complexity or churn
- TODO / FIXME / HACK markers and repeated workarounds
Use ./resources/debt-taxonomy.md as the primary scanning lens.
When the target includes automated tests, also load ./resources/test-debt-catalogue.md.
Capture evidence such as:
- duplication, complexity, or coupling signals
- flaky, slow, or weak tests
- dependency age, version gaps, or blocked upgrades
- fragile pipelines and noisy feedback loops
- missing ownership, docs, or operational knowledge
If no evidence exists, record an assumption or unknown - not a debt item.
Phase 2: Turn signals into atomic debt items
Each debt item should be specific and scoped.
For every candidate item, capture:
- category
- location
- symptom
- observed evidence
- probable root cause
- risk of leaving it unfixed
- risk of fixing it now
- likely impact on quality, testing, delivery, or maintainability
Avoid vague findings such as "the code is messy" or "tests need improvement." Each item should describe a distinct problem with a distinct consequence.
Phase 3: Score and prioritize
Use ./resources/prioritization-matrix.md for scoring.
Each meaningful item should be assessed using:
- Severity - how dangerous or costly the debt is today
- Risk - how risky remediation will be
- Effort - likely change size and coordination cost
- ROI - expected value of addressing it
- Time horizon - tactical, short-term, or strategic
Then group items into practical buckets:
- Fix Now - active drag or high-risk exposure
- Fix Soon - important, but needs some preparation
- Accept for Now - consciously deferred with clear rationale
Do not treat all debt as equally urgent.
Phase 4: Design remediation options
For the top-priority items, propose the safest realistic path:
- minimal viable fix
- staged refactor plan
- containment strategy when full remediation is not viable yet
Good remediation advice includes:
- safety nets required first
- sequencing and prerequisites
- rollback or escape hatch
- how to validate improvement
Prefer reversible steps unless the user explicitly asks for a larger redesign.
Phase 5: Produce the output
Use ./resources/technical-debt-report-template.md for the default deliverable.
Default output modes:
Установить tech-debt-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tech-debt-analysis?
Analyzes technical debt in codebases, test suites, architecture, dependencies, and delivery workflows using observable signals. Use when auditing repository health, explaining slow delivery or flaky tests, prioritizing refactoring, or building an evidence-based remediation roadmap with risk, effort, and ROI. Use when user asks for technical debt analysis, repository audit, or refactor planning.
Как установить скилл tech-debt-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tech-debt-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic