AGENT SKILL

tech-debt

Track, categorize, and prioritize technical debt across the codebase. Scans for debt indicators, maintains a debt register, and recommends repayment scheduling.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 3
Forks
1

01 前言 Front Matter

name
tech-debt
description
Track, categorize, and prioritize technical debt across the codebase. Scans for debt indicators, maintains a debt register, and recommends repayment scheduling.
allowed-tools
Read, Glob, Grep, Write
argument-hint
[scan|add|prioritize|report]
user-invocable
true

03 SKILL.md 正文

When this skill is invoked:

  1. Parse the subcommand from the argument:

    • scan — Scan the codebase for tech debt indicators
    • add — Add a new tech debt entry manually
    • prioritize — Re-prioritize the existing debt register
    • report — Generate a summary report of current debt status
  2. For scan:

    • Search the codebase for debt indicators:
      • TODO comments (count and categorize)
      • FIXME comments (these are bugs disguised as debt)
      • HACK comments (workarounds that need proper solutions)
      • @deprecated markers
      • Duplicated code blocks (similar patterns in multiple files)
      • Files over 500 lines (potential god objects)
      • Functions over 50 lines (potential complexity)
    • Categorize each finding:
      • Architecture Debt: Wrong abstractions, missing patterns, coupling issues
      • Code Quality Debt: Duplication, complexity, naming, missing types
      • Test Debt: Missing tests, flaky tests, untested edge cases
      • Documentation Debt: Missing docs, outdated docs, undocumented APIs
      • Dependency Debt: Outdated packages, deprecated APIs, version conflicts
      • Performance Debt: Known slow paths, unoptimized queries, memory issues
    • Update the debt register at docs/tech-debt-register.md
  3. For add:

    • Prompt for: description, category, affected files, estimated fix effort, impact if left unfixed
    • Append to the debt register
  4. For prioritize:

    • Read the debt register
    • Score each item by: (impact_if_unfixed * frequency_of_encounter) / fix_effort
    • Re-sort the register by priority score
    • Recommend which items to include in the next sprint
  5. For report:

    • Read the debt register
    • Generate summary statistics:
      • Total items by category
      • Total estimated fix effort
      • Items added vs resolved since last report
      • Trending direction (growing / stable / shrinking)
    • Flag any items that have been in the register for more than 3 sprints
    • Output the report

Debt Register Format

## Technical Debt Register
Last updated: [Date]
Total items: [N] | Estimated total effort: [T-shirt sizes summed]

| ID | Category | Description | Files | Effort | Impact | Priority | Added | Sprint |
|----|----------|-------------|-------|--------|--------|----------|-------|--------|
| TD-001 | [Cat] | [Description] | [files] | [S/M/L/XL] | [Low/Med/High/Critical] | [Score] | [Date] | [Sprint to fix or "Backlog"] |

Rules

  • Tech debt is not inherently bad — it is a tool. The register tracks conscious decisions.
  • Every debt entry must explain WHY it was accepted (deadline, prototype, missing info)
  • "Scan" should run at least once per sprint to catch new debt
  • Items older than 3 sprints without action should either be fixed or consciously accepted with a documented reason

04 同仓库更多 Skills

welflau
welflau/ai-dev-system

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 3
welflau
welflau/ai-dev-system

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

★ 3
welflau
welflau/ai-dev-system

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

★ 3
welflau
welflau/ai-dev-system

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

★ 3
welflau
welflau/ai-dev-system

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

★ 3
welflau
welflau/ai-dev-system

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

★ 3