Langsung ke konten
Skillpedia
Pemrograman umum33k Β· #8500

tech-debt

Fungsinya

Skill ini memindai basis kode untuk mencari tanda-tanda utang teknis, memilah setiap temuan ke dalam kategori, dan menyimpan daftar item terpenting. Cocok untuk pengembang dan pemimpin yang ingin merencanakan pekerjaan pembersihan.

Kapan dipakai

  • βœ“Saat sebuah tim ingin kode dipindai untuk mencari tanda area yang berantakan atau berisiko.
  • βœ“Saat seorang pengembang perlu menambahkan item utang yang sudah diketahui ke daftar secara manual.
  • βœ“Saat seorang pemimpin membutuhkan ringkasan status dan prioritas utang untuk perencanaan.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/tech-debt/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPindai basis kode untuk utang teknis dan beri tahu saya item mana yang harus diperbaiki lebih dulu.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill mencari di kode penanda seperti TODO, FIXME, dan HACK, menandai file dan fungsi yang sangat panjang, lalu memilah setiap temuan ke dalam kategori utang. Skill menyimpan daftar dan bisa mengurutkan ulangnya atau menghasilkan laporan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Apa yang dicarinya?

Skill mencari komentar TODO, FIXME, dan HACK, penanda usang, kode duplikat, serta file atau fungsi yang sangat panjang.

Mengapa FIXME diperlakukan berbeda?

FIXME menandai kode yang diketahui rusak, sehingga skill memperlakukannya sebagai bug yang menyamar sebagai utang.

Bisakah saya menambahkan item utang sendiri?

Bisa. Mode tambah memungkinkan Anda memasukkan item utang secara manual.

Detail

Deskripsi asli dari pembuat

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

repo: Donchitos/Claude-Code-Game-Studios

Popularitas

Bintang GitHub
33k
Peringkat
#8500
Lisensi
MIT
Diperbarui
18/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa