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.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
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 indicatorsaddβ Add a new tech debt entry manuallyprioritizeβ Re-prioritize the existing debt registerreportβ 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:
TODOcomments (count and categorize)FIXMEcomments (these are bugs disguised as debt)HACKcomments (workarounds that need proper solutions)@deprecatedmarkers- 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.
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8500
- Lisensi
- MIT
- Diperbarui
- 18/10/2026
Komentar
- β¦
Skill lain dari repositori ini
adopt
33kMemeriksa apakah dokumen proyek game yang sudah ada mengikuti format template studio, lalu menulis rencana migrasi bernomor untuk memperbaiki celah yang ditemukan.
architecture-decision
33kMenulis catatan keputusan arsitektur untuk pilihan teknis, mencakup konteks, alternatif, dan konsekuensi, dengan tinjauan dari peran teknis yang tepat.
architecture-review
33kMemeriksa bahwa keputusan teknis Anda mencakup setiap kebutuhan desain, tidak saling bertentangan, dan sesuai versi mesin, dengan vonis lulus atau kekhawatiran yang jelas.
art-bible
33kMenulis art bible yang mendefinisikan identitas visual game Anda, sehingga produksi aset mengikuti satu rangkaian aturan gaya yang jelas.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.