Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

tech-debt-analyzer科技债务分析器

Agent Skill

tech-debt-analyzer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

321

周安装

13

GitHub Stars

2

下载量

101
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tech-debt-analyzer(科技债务分析器)
来源仓库:https://github.com/wyattowalsh/agents
仓库路径:skills/tech-debt-analyzer
安装命令:
npx skills add https://github.com/wyattowalsh/agents --skill tech-debt-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/wyattowalsh/agents --skill tech-debt-analyzer

简介

用于根据关键词或任务场景快速定位候选结果。

  • 适合在需要检索相关信息时使用。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装命令:npx skills add https://github.com/wyattowalsh/agents --skill tech-debt-analyzer。
  • 安装前建议确认是否会触发联网或命令执行。

SKILL.md

Tech Debt Analyzer

Systematic technical debt inventory, prioritization, and remediation planning. Multi-pass analysis with confidence scoring and evidence-based findings.

Scope: Debt inventory and tracking only. NOT for code review (honest-review), refactoring execution, or dependency updates.

Canonical Vocabulary

TermDefinition
debt itemA discrete tech debt finding with category, severity, confidence, and evidence
categoryDebt classification: design, test, documentation, dependency, infrastructure
severityImpact level: CRITICAL, HIGH, MEDIUM, LOW
confidenceScore 0.0-1.0 per item; >=0.7 report, 0.3-0.7 flag, <0.3 discard
complexityCyclomatic (decision paths) or cognitive (human comprehension difficulty)
dead codeFunctions, classes, or imports with no references in the codebase
stalenessDays since a dependency's current version was superseded
inconsistencySame pattern implemented differently across files
remediationSpecific fix action with effort estimate and risk level
debt scoreAggregate metric: sum of (severity_weight x confidence) across all items
baselinePrevious scan stored at ~/.{gemini
heatmapVisual density of debt items per file or directory
risk x effortPrioritization matrix: impact vs. remediation cost

Dispatch

$ARGUMENTSMode
scan or scan <path>Full codebase debt inventory (or scoped to path)
analyze <file/dir>Targeted deep analysis of specific file or directory
prioritizeRank all debt items by risk x effort matrix
roadmapGenerate phased remediation plan
reportRender dashboard visualization
trackCompare current scan against previous baseline
EmptyShow mode menu with descriptions and examples

Mode: Scan

Full codebase debt inventory. Run all 4 analysis scripts, aggregate results, assign categories and severities.

Scan Step 1: Project Profile

Run uv run python skills/tech-debt-analyzer/scripts/complexity-scanner.py <path> to get complexity metrics. Parse JSON output. Flag functions with cyclomatic_complexity > 10 as HIGH, > 5 as MEDIUM.

Scan Step 2: Dead Code Detection

Run uv run python skills/tech-debt-analyzer/scripts/dead-code-detector.py <path> to find unused code. Parse JSON output. Each unused item becomes a debt item (category: design, severity by confidence).

Scan Step 3: Dependency Staleness

Run uv run python skills/tech-debt-analyzer/scripts/dependency-staleness-checker.py <path> to check outdated packages. Parse JSON output. Deprecated packages are CRITICAL. Staleness > 365 days is HIGH.

Scan Step 4: Pattern Consistency

Run uv run python skills/tech-debt-analyzer/scripts/pattern-consistency-checker.py <path> to detect inconsistencies. Parse JSON output. Each inconsistency becomes a debt item (category: design).

Scan Step 5: AI-Augmented Analysis

After script-based detection, perform additional analysis:

  1. Documentation gaps — scan for undocumented public APIs, missing README sections, stale comments
  2. Test coverage gaps — Grep for untested modules, missing edge cases, test-to-code ratio
  3. Infrastructure debt — outdated CI configs, missing linting, inconsistent tooling
  4. Design smells — God classes, feature envy, shotgun surgery patterns

Assign confidence scores (0.0-1.0) per finding. Research-validate HIGH/CRITICAL items using Grep and codebase evidence.

Scan Step 6: Aggregate and Classify

Merge all findings into a unified inventory:

  • Deduplicate across script outputs
  • Assign categories from debt taxonomy (references/debt-taxonomy.md)
  • Calculate debt score: sum of (severity_weight x confidence)
  • Store baseline at ~/.{gemini|copilot|codex|claude}/tech-debt/<project-slug>-<date>.json

Present findings grouped by category, sorted by severity within each group.

Mode: Analyze

Targeted deep analysis of a specific file or directory. Run all 4 scripts scoped to the target. Apply the same 6-step scan process but with deeper per-function analysis. Include: function-level complexity breakdown, inline dead code, local pattern violations.

Mode: Prioritize

Rank debt items using risk x effort matrix. Load references/prioritization-framework.md.

Low EffortMedium EffortHigh Effort
High RiskP0: Fix immediatelyP1: Schedule next sprintP2: Plan for next quarter
Medium RiskP1: Schedule next sprintP2: Plan for next quarterP3: Backlog
Low RiskP2: Quick wins batchP3: BacklogP4: Accept or defer

For each debt item, estimate:

  • Risk: blast radius x severity x confidence
  • Effort: LOC affected x complexity x dependency count

Output a ranked list with priority labels (P0-P4).

Mode: Roadmap

Generate a phased remediation plan. Requires a prior scan (reads baseline from ~/.{gemini|copilot|codex|claude}/tech-debt/).

Phase structure:

  1. Quick Wins (P0 + low-effort P1): immediate fixes, minimal risk
  2. Structural (remaining P1 + high-risk P2): design improvements, refactoring
  3. Maintenance (P2 + P3): documentation, test coverage, dependency updates
  4. Strategic (P3 + P4): architecture changes, long-term improvements

Each phase includes: items, estimated effort, dependencies, success criteria.

Mode: Report

Render dashboard visualization. Requires a prior scan.

  1. Read the most recent baseline from ~/.{gemini|copilot|codex|claude}/tech-debt/
  2. Copy templates/dashboard.html to a temporary file
  3. Inject findings JSON into the <script id="data"> tag
  4. Open in browser or report the path

Dashboard sections: category pie chart, complexity heatmap, trend chart (if multiple baselines), prioritized backlog table.

Mode: Track

Compare current scan against previous baseline for longitudinal tracking.

  1. Run a fresh scan (Mode: Scan steps 1-6)
  2. Load previous baseline from ~/.{gemini|copilot|codex|claude}/tech-debt/<project-slug>-*.json (most recent)
  3. Compute delta: new items, resolved items, changed severities, score trend
  4. Present comparison report with trend indicators

State Management

  • State directory: ~/.{gemini|copilot|codex|claude}/tech-debt/
  • Create directory on first use with mkdir -p
  • Filename: <project-slug>-<YYYY-MM-DD>.json
  • Project slug: sanitized basename of the project root directory
  • Store after every scan; track mode reads historical baselines
  • Schema: {"project": str, "date": str, "score": float, "items": [...], "summary": {...}}

Reference Files

Load ONE reference at a time. Do not preload all references into context.

FileContentRead When
references/debt-taxonomy.md5 debt categories with subcategories and remediation templatesScan Step 6, classifying findings
references/complexity-metrics.mdCyclomatic and cognitive complexity definitions, thresholds, interpretationInterpreting complexity-scanner output
references/prioritization-framework.mdRisk x effort matrix, scoring rubric, priority definitionsPrioritize mode
references/remediation-templates.mdFix patterns by issue type, effort estimates, risk ratingsRoadmap mode, generating fix plans
ScriptWhen to Run
scripts/complexity-scanner.pyScan Steps 1, Analyze mode
scripts/dead-code-detector.pyScan Step 2, Analyze mode
scripts/dependency-staleness-checker.pyScan Step 3
scripts/pattern-consistency-checker.pyScan Step 4, Analyze mode
TemplateWhen to Render
templates/dashboard.htmlReport mode — inject findings JSON into data tag

Debt Item Structure

Every debt item follows this format:

  1. Location: [file:line] or [file:start-end] — exact source location
  2. Category: design | test | documentation | dependency | infrastructure
  3. Severity: CRITICAL | HIGH | MEDIUM | LOW
  4. Confidence: 0.0-1.0 score with evidence basis
  5. Description: What the debt is (1-2 sentences)
  6. Impact: Why it matters (blast radius, risk)
  7. Remediation: Recommended fix approach with effort estimate

Critical Rules

  1. Run all 4 analysis scripts before presenting findings — partial scans are labeled as such
  2. Every finding must have a confidence score backed by evidence (script output or codebase grep)
  3. Confidence < 0.3 = discard; 0.3-0.7 = flag as uncertain; >= 0.7 = report
  4. Never execute remediation — this skill inventories and plans, not fixes
  5. Store baseline after every full scan — longitudinal tracking depends on it
  6. Do not report style preferences as debt — only structural, behavioral, or maintainability issues
  7. Deduplicate across script outputs — same file:line should not appear twice
  8. Prioritize mode requires a prior scan — prompt user to run scan first if no baseline exists
  9. Always present the debt score (aggregate metric) in scan output
  10. Track mode must show delta (new/resolved/changed) — raw numbers without comparison are useless
  11. Dead code detection requires high confidence (>= 0.8) — false positives erode trust
  12. Load ONE reference file at a time — do not preload all references

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.09%
按下载量换算37

Claude

30.64%
按下载量换算31

Cursor

19.63%
按下载量换算20

Gemini CLI

9.06%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills