本文へ移動
cccskills
無料GitHub で公開

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.

日本語の概要は準備中です。原文の説明を表示しています。

jaktestowac/awesome-copilot-for-testersスター 118(GitHub 118 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(6)

  • SKILL.md7.5 KB
  • resources/debt-taxonomy.md4.9 KB
  • resources/example-technical-debt-report.md6.0 KB
  • resources/prioritization-matrix.md2.8 KB
  • resources/technical-debt-report-template.md3.1 KB
  • resources/test-debt-catalogue.md3.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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:

  • Repository or module audit → create TECHNICAL_DEBT_REPORT.md
  • Quick advisory audit → produce a shorter inline summary, but still include top drivers, debt register highlights, and recommended priorities
  • Test debt focus → preserve the same structure, with an explicit test-debt section and CI/test-confidence impact

If the user asks for an example of the target output, use ./resources/example-technical-debt-report.md.

Phase 6: Self-check before finalizing

Before delivering the report, verify:

  • every important debt item has concrete evidence
  • categories are used consistently
  • the biggest risks are near the top
  • test and quality impact are explicit, not implied
  • remediation advice is incremental and believable
  • deferred debt is documented consciously, not forgotten silently

Useful Heuristics

Debt is often hiding when you see patterns like:

  • repeated TODOs, FIXMEs, retries, or workaround comments in the same area
  • CI or tests that fail noisily but provide little diagnosis
  • abstractions that reduce duplication while increasing confusion
  • outdated dependencies that block security or platform upgrades
  • a feature that requires touching too many files for a small change
  • onboarding that depends on tribal knowledge rather than documented flows
  • tests that pass often enough to be tolerated, but not enough to be trusted

Resource Map

  • ./resources/debt-taxonomy.md - analysis lenses, categories, and signal guide
  • ./resources/prioritization-matrix.md - scoring rubric and decision buckets
  • ./resources/technical-debt-report-template.md - standard report structure for debt audits
  • ./resources/example-technical-debt-report.md - example filled report
  • ./resources/test-debt-catalogue.md - focused anti-pattern catalogue for automated test suites

Related Skills

  • code-review-advanced - for reviewing a specific change instead of mapping broader debt
  • static-code-analysis-typescript - when the main issue is linting, formatting, or TypeScript quality gates
  • requirements-test-coverage-mapper - when the problem is coverage traceability rather than debt discovery

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Defines, computes, and interprets test and quality metrics: pass rate, flake rate, suite duration, defect escape rate, time to detect, and coverage with its caveats. Use when building a QA dashboard, reporting suite health to stakeholders, comparing releases over time, or when a coverage percentage or a bug count is being treated as a measure of quality.

日本語の概要は準備中です。原文の説明を表示しています。

jaktestowac/awesome-copilot-for-testers1182026年8月27日 更新

Analyzes diffs, changed files, hotfixes, and release candidates to identify where regression risk spreads and what must be retested first. Use when scoping retest after a change, reviewing QA impact for a pull request, or building a minimal confidence suite for release validation.

日本語の概要は準備中です。原文の説明を表示しています。

jaktestowac/awesome-copilot-for-testers1182026年8月27日 更新

Writes and reviews API automation tests with Playwright Test, covering setup/teardown, assertions, data management, and hybrid API+UI flows. Use when creating backend API tests, contract checks, data-driven API coverage, API+UI hybrid workflows, or reviewing existing Playwright API suites.

日本語の概要は準備中です。原文の説明を表示しています。

jaktestowac/awesome-copilot-for-testers1182026年8月27日 更新

Measures the risk that code shipped without anyone understanding it: a teach-back attestation on high-risk changes, a risk band from changed-code complexity, diff size and whether a human explanation accompanied it, and optional AI-authorship provenance. Findings stay advisory by design. Use when an AI-assisted codebase grows faster than the team reads it, when reviews are rubber-stamped, when nobody can explain a module that ships weekly, or when leadership asks how much of the code the team can actually maintain.

日本語の概要は準備中です。原文の説明を表示しています。

jaktestowac/awesome-copilot-for-testers1182026年8月27日 更新

Produces an evidence-backed go/no-go recommendation: exit criteria status, open-defect risk profile, coverage against risk, environment parity, rollback readiness, and the residual risk stated plainly. Use when preparing a release sign-off, when someone asks whether a build is ready to ship, or when a decision to release is being made on impressions rather than evidence.

日本語の概要は準備中です。原文の説明を表示しています。

jaktestowac/awesome-copilot-for-testers1182026年8月27日 更新

Records human verification - code review, exploratory sessions, UAT, accessibility passes, UX and observability reviews - as dated, attributed attestations in a register, so human-centric practices stay in the quality contract without pretending to be automated checks. Use when a strategy requires verification no tool can prove, when sign-off evidence is scattered across chats and tickets, when a gap matrix needs to distinguish "attested" from "passed", or when an audit asks who verified what and when.

日本語の概要は準備中です。原文の説明を表示しています。

jaktestowac/awesome-copilot-for-testers1182026年8月27日 更新

jaktestowac のスキルをすべて見る

このスキルの問題を報告する