Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

tech-debt科技债务

Agent Skill

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

总安装

309

周安装

13

GitHub Stars

65

下载量

108
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

tech-debt 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限与维护状态。
  • 使用前建议核验具体用法,避免触发不必要的联网或文件操作。
  • 涉及敏感数据时应先确认脱敏边界与最小权限原则。

SKILL.md

Tech Debt Mode

Identify, catalog, and eliminate technical debt.

Core Philosophy

"Deletion is the most powerful refactoring."

The 40% Rule: In AI-assisted coding, expect to spend 30-40% of your time on code health—reviews, smell detection, and refactoring. Without this investment, vibe-coded bases accumulate invisible debt that slows agents and breeds bugs. Schedule regular code health passes, not just reactive fixes.

Every line of code:

  • Must be understood
  • Must be tested
  • Must be maintained
  • Can contain bugs

Less code = less of all the above.

Debt Indicators to Find

CategoryWhat to Look For
CommentsTODO, FIXME, HACK, XXX, "temporary"
Code SmellsDuplicated blocks, long functions (>50 lines)
Type IssuesMissing hints, Any types, type: ignore
Dead CodeUnused functions, unreachable branches
DependenciesOutdated packages, unused imports
ComplexityDeep nesting, long parameter lists

Rationalization Prevention

ExcuseRealityRequired Action
"Someone might need this code"Dead code is maintenance burdenCheck references — delete if unused
"It's not hurting anything"Unused code confuses future agentsRemove it; git preserves history
"Refactoring is risky"You haven't measured the impactCount callers, assess blast radius first
"We'll clean it up later"Later never comes — debt compoundsFix it now or create a tracked issue with details
"Working code shouldn't be touched"Untouched code rots — dependencies change around itAssess: does it still work? Are patterns current?

Process

1. Scan

Search for debt indicators across the codebase:

  • Grep for TODO/FIXME comments
  • Find functions over threshold length
  • Identify files with type errors
  • Check for unused exports

2. Categorize

For each finding, assess:

  • Severity: How bad is this?
  • Effort: How hard to fix?
  • Risk: What could go wrong?

3. Prioritize

Focus on:

  • 🎯 Quick Wins - Low effort, high impact
  • 🔒 Safety First - Fix risky debt before adding features
  • 📍 Hot Paths - Prioritize frequently-touched code

4. Fix or Document

  • Simple fixes: Just do it (with tests)
  • Complex fixes: Create a plan for later

Quick Win Examples

  • Dead imports: Remove unused imports (e.g., from typing import List, Dict, Optional when only Optional is used)
  • Bare excepts: Replace except: pass with specific exception handling and logging
  • Unused variables: Delete variables that are assigned but never read

Tech Debt Report Format

## Tech Debt Analysis

### Summary

- **Total issues found**: X
- **Critical**: X (fix immediately)
- **Quick wins**: X (easy to fix)
- **Requires planning**: X (complex)

### Findings

#### Critical 🔴

| Location     | Type     | Issue                     | Effort |
| ------------ | -------- | ------------------------- | ------ |
| `file.py:42` | security | bare except hiding errors | Low    |

#### Quick Wins 🎯

| Location      | Type   | Issue             | Effort |
| ------------- | ------ | ----------------- | ------ |
| `utils.py:10` | unused | import never used | Low    |

#### Requires Planning 📋

| Location | Type        | Issue              | Why Complex              |
| -------- | ----------- | ------------------ | ------------------------ |
| `api.py` | duplication | 3 similar handlers | Needs abstraction design |

### Recommendations

[Suggested order of tackling debt]

### Fixed This Session

[List of debt items resolved]

When Fixing Debt

  • ✅ Run tests after each change
  • ✅ Keep changes atomic and focused
  • ✅ Verify no regressions
  • ❌ Don't mix debt fixes with new features
  • ❌ Don't "refactor" working code without reason

Safe Deletion Patterns

Before removing code, verify it's unused:

# Check for usages
ag "function_name" --python

# Check imports
ag "from module import function_name"

Watch for code that might be used dynamically:

# ✅ Safe to delete: unused import
from typing import List  # 'List' never used in file

# ✅ Safe to delete: unused variable
result = calculate()  # 'result' never read
log(value)  # This is the actual intent

# ✅ Safe to delete: dead branch
if False:  # Will never execute
    do_something()

# ⚠️ Verify first: might be used dynamically
def _helper():  # Underscore suggests private, but check usages
    pass

# ❌ Don't delete without checking: exported function
def public_api():  # Might be called by external code
    pass

Also watch for:

  • Dynamically called code (getattr, eval)
  • Reflection-based frameworks
  • External API contracts
  • CLI entry points

Cleaning Checklist

- [ ] Unused imports removed
- [ ] Unused variables removed
- [ ] Dead functions removed
- [ ] Commented-out code removed
- [ ] Debug statements removed
- [ ] Duplicate code consolidated
- [ ] Tests still pass
- [ ] Types still check

Debt Prevention Tips

Add TODOs with issue tracker links, use type hints from the start, and review for simplification opportunities.

"The best code is no code at all."

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.83%
按下载量换算37

Claude

30.41%
按下载量换算33

Cursor

19.56%
按下载量换算21

Gemini CLI

9.27%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills