微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🏗️

量化债务成本,驱动修复决策

Technical Debt Audit · v1.0.0
专业技能 安全 A 级 作者 1kalin 公开目录收录
1.1k 下载 0 安装 3.4k 收藏 13 浏览

简介

系统化技术债务审计工具,量化债务成本并生成可执行的修复路线图,帮助工程团队用数据驱动决策。

原始描述

Systematically identifies, scores, and prioritizes technical debt across codebases with impact analysis and detailed remediation roadmaps for engineering teams.

通过你的 Agent 添加

安装目录:technical-debt-audit/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/technical-debt-audit/
Codex CLI~/.codex/skills/technical-debt-audit/
DeepSeek Harness~/.agents/skills/technical-debt-audit/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: technical-debt-audit description: Perform repository-wide or focused technical-debt audits covering maintainability, complexity, duplication, dependency health, testing gaps, architecture erosion, documentation drift, and remediation priorities. Use when the user asks to assess accumulated debt, modernization risk, change friction, quick wins, or blockers to future work or scaling. Do not use for an ordinary diff review, an active unexplained failure, implementation, or a vulnerability-only audit.

Technical Debt Audit

Use this skill to identify accumulated decisions that repeatedly increase change cost, defect risk, cognitive load, upgrade friction, or operational burden. A technical-debt audit is a repository portfolio assessment, not a style pass or a request to collect every local code smell.

Always apply review-verification-protocol before reporting findings. Use code-review instead when the primary artifact is a diff, pull request, or completed change rather than accumulated repository debt.

Boundaries

  • Do not treat a current correctness bug, active vulnerability, isolated smell, old dependency, TODO, or long file as technical debt without evidence of recurring cost, risk, or blocked evolution.
  • Route active unexplained failures to systematic-debugging. Route vulnerability-only or supply-chain-only audits to the matching security skill.
  • Remain read-only unless the user separately requests remediation and the active agent has edit authority. Loading this skill grants no permission, delegation, planning, or execution authority.
  • When the user explicitly requests tooling evidence and the active role permits it, use only approved evidence commands. Prefer documented repository recipes, inspect their command surface first, and remember that builds, procedural macros, tests, and repository-defined tools can execute repository-controlled code. Do not install or update missing tools or dependencies, apply automatic fixes, or broaden an audit into remediation.
  • Ordinary ignored build and cache output is compatible with a read-only audit only when the role permits the command. Never modify tracked inputs, lockfiles, checked-in generated output, or durable plans as part of evidence collection.
  • Derive languages, frameworks, modules, entry points, conventions, commands, and validation lanes from the repository. Do not impose a preferred architecture or toolchain.
  • Return zero findings when the evidence does not establish material debt. Never pad categories or convert cosmetic preferences into findings.

Workflow

  1. Set the audit frame.

    • Confirm whether the scope is repository-wide or focused.
    • Establish the repository's maintenance horizon, active areas, declared conventions, and the future work or scaling concerns that make debt costly.
    • Distinguish systemic debt from defects, security incidents, accepted trade-offs, speculative cleanup, and temporary work with an owner or exit condition.
  2. Build the Repository overview.

    • Identify primary languages, frameworks, package managers, build tooling, test tooling, and deployment or runtime surfaces.
    • Map top-level folders, key modules, entry points, public boundaries, data stores, and important dependency direction.
    • Read applicable README, CONTRIBUTING, AGENTS, architecture records, and repository-native commands before judging convention drift.
  3. Collect evidence.

    • Inspect source, tests, manifests, lockfiles, build and CI configuration, documentation, generated boundaries, TODO/FIXME markers, and relevant local history when available.
    • Prefer repository-native static analysis, coverage, dependency, and audit output when execution is authorized and safe. Otherwise name the exact unrun check and the uncertainty it leaves.
    • For every attempted tool check, record tool availability, the exact command, exit status, and a short sanitized excerpt that supports the interpretation. A failed command can establish a tooling, environment, or invocation limitation without establishing a product-code finding.
    • Search references and registrations before claiming code, exports, dependencies, routes, configuration, or compatibility paths are unused.
  4. Apply proportionate lenses.

    • Code quality: duplicated concepts or behavior, complexity hotspots, deep nesting, oversized responsibilities, inconsistent async or error handling, stale commented-out blocks, obsolete abstractions, dead code, unused exports, and hard-to-change APIs.
    • Dependency health: unused direct dependencies, upgrade blockers, deprecated or unsupported packages, maintenance risk, stale toolchains, vulnerable resolved versions, and costly transitive or bootstrap surfaces.
    • Testing: risk coverage by module or boundary, critical untested paths, skipped or quarantined tests, flakiness, slow feedback, over-mocking, environment fragility, and missing architecture or contract guards.
    • Architecture and design: coupling, cycles, unclear ownership, leaky or missing abstractions, shared dumping grounds, convention violations, and boundary erosion that increases future migration cost.
    • Documentation and operations: stale setup guidance, missing public or extension-boundary documentation, undocumented non-obvious logic, configuration drift, fragile build/deploy knowledge, and absent recovery or upgrade guidance.
  5. Load focused companions only when evidence warrants them.

  6. Control evidence quality.

    • Quote only the smallest relevant sanitized output excerpt, normally one to five lines. Do not paste full logs when an exit status and focused excerpt establish the claim.
    • Cite numeric coverage only from observed coverage output. Without it, provide a qualitative module or boundary map such as strong, partial, weak, or absent and cite the tests inspected.
    • Treat outdated, deprecated, unmaintained, or vulnerable dependency claims as current facts requiring authoritative evidence. A manifest or lockfile proves local versions, not current maintenance or advisory status.
    • Classify unverified tool-dependent concerns as hypotheses and list the validation needed to confirm them.
  7. Deduplicate and prioritize.

    • Group symptoms under the smallest evidenced root cause.
    • Rank by severity, likelihood or recurrence, breadth, debt interest, cost of delay, remediation effort, migration risk, expected benefit, and sequencing dependencies.
    • Prefer durable corrections and recurrence guards over broad rewrites.

Finding Standard

For every finding include:

  • ID and title; Priority; Severity; Likelihood; Confidence; Classification
  • Scope and evidence; Impact and debt interest; Durable fix
  • Effort: Small / Medium / Large, with the main sizing assumption
  • Expected benefit; Dependencies and sequencing; Verification

Keep severity, likelihood, confidence, and priority distinct: severity is the consequence, likelihood is recurrence or realization risk, confidence is the strength of evidence, and priority synthesizes those factors with cost of delay, effort, and sequencing.

Output

Return, in order:

  1. Repository overview
  2. Evidence reviewed and limitations
  3. Prioritized findings using the Finding Standard
  4. Quick wins — high expected benefit, small effort, and low migration risk
  5. Strategic blockers — debt blocking future work, upgrades, operations, or scaling
  6. Longer-term improvement program — larger sequenced remediation, if any
  7. Accepted trade-offs and positive evidence worth preserving
  8. Skipped validation and residual risk
  9. Conclusion: Healthy / Improvement Program Recommended / Material Remediation Required

When no material debt is found, say so explicitly, retain the overview and evidence sections, and omit empty recommendation categories.

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/nledford/engineering-review-board

标签

technical-debtcode-qualityengineering-managementteam-productivityauditroadmap

同类 Skill