本文へスキップ
Skillpedia
一般的なプログラミング33k · #8500

tech-debt

できること

このスキルは、コードベースを技術的負債の兆候がないか走査し、各発見を分類して、最も重要な項目の一覧を保ちます。整理作業を計画したい開発者やリーダーのためのものです。

使う場面

  • ✓チームが、コードが乱雑になっている箇所や危険な箇所がないか、走査したいとき。
  • ✓開発者が、既知の負債項目を手で一覧に追加する必要があるとき。
  • ✓リーダーが、計画のために負債の状態と優先度の要約を必要とするとき。

スキルのリンク

https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/tech-debt/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/tech-debt/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“コードベースの技術的負債を走査し、最初に直すべき項目を教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、TODO、FIXME、HACKなどのマーカーを検索し、非常に長いファイルや関数に印を付け、各発見を負債のカテゴリに分類します。一覧を保ち、順位を付け直したり、報告書を作ったりできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation,workflow

Tech Debt

Every AskUserQuestion call follows .claude/docs/automation-modes.md (collaborative asks always · guided major-only · autonomous logs and proceeds; automation_always_ask categories always prompt).

Phase 1: Parse Subcommand

Determine the mode 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

If no subcommand is provided, output usage and stop. Verdict: FAIL — missing required subcommand.


Phase 2A: Scan Mode

Search the code root (resolve per .claude/docs/code-root-resolution.md: src/, Assets/ or Source/ by engine) 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

Before presenting anything, establish that there was something to scan. Count the source files the scan actually covered. If the code root is unresolved, report NOT ASSESSED — code root unresolved and stop as below. If that count is zero — the code root is absent, or holds no source files — report:

NOT ASSESSED — no source files to scan. The code root contains no code, so "no debt indicators found" would be a statement about an empty search, not about the codebase. Run this once implementation is under way.

and stop. Do not write to the register and do not emit a COMPLETE verdict.

The distinction is the whole point of the scan: zero findings over 400 files is a clean codebase; zero findings over zero files is no information at all. Rendering both as "COMPLETE — scan findings written to register" reads as the first. State the denominator whenever findings are reported, including when it is large and the count is genuinely zero.

Present the findings to the user.

Ask: "May I write these findings to docs/tech-debt-register.md?"

If yes, update the register, never overwriting it. Match before appending: a finding with the same file and the same kind of debt as an existing Open entry updates that entry instead of adding a duplicate. An existing Open entry whose pattern is no longer in its file is proposed as Resolved [date] — list those and include them in the same approval. Verdict: COMPLETE — scan findings written to register.

If no, stop here. Verdict: BLOCKED — user declined write.


Phase 2B: Add Mode

Ask the user for the description and affected files (plain text prompts).

Run as a subagent? lead-programmer preloads this skill, and a subagent has no AskUserQuestion. Return the three questions below (category, effort, impact) in one reply, each as a short list of its options, and stop: whoever called you asks the user. Nothing goes into the register until the answers come back.

Then use AskUserQuestion to collect the category:

  • Prompt: "What category does this tech debt belong to?"
  • Options:
    • [A] Architecture Debt — wrong abstractions, missing patterns, coupling issues
    • [B] Code Quality Debt — duplication, complexity, naming, missing types
    • [C] Test Debt — missing tests, flaky tests, untested edge cases
    • [D] Documentation Debt — missing/outdated docs, undocumented APIs
    • [E] Dependency Debt — outdated packages, deprecated APIs, version conflicts
    • [F] Performance Debt — known slow paths, memory issues, unoptimized queries

Then use AskUserQuestion to collect the estimated fix effort:

  • Prompt: "What is the estimated effort to fix this item?"
  • Options:
    • [A] S — Small (under 1 day)
    • [B] M — Medium (1–3 days)
    • [C] L — Large (3–7 days)
    • `[D
よくある質問

何を探しますか?

TODO、FIXME、HACKのコメント、非推奨のマーカー、重複したコード、非常に長いファイルや関数を探します。

なぜFIXMEは別扱いですか?

FIXMEは壊れていると分かっているコードを示すため、このスキルは負債に見せかけたバグとして扱います。

負債の項目を自分で追加できますか?

はい。追加モードで、負債の項目を手で入力できます。

詳細

作者による元の説明

Track, categorize and prioritize technical debt across the codebase — scans for debt indicators, maintains a register.

repo: Donchitos/Claude-Code-Game-Studios

人気

GitHubのスター
33k
ランキング
#8500
ライセンス
MIT
更新日
2026/10/18

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル