Pular para o conteúdo
Skillpedia
Código em geral33 mil · #8500

tech-debt

O que ela faz

Esta skill varre uma base de código em busca de sinais de dívida técnica, classifica cada achado em uma categoria e mantém uma lista dos itens mais importantes. É para desenvolvedores e líderes que querem planejar o trabalho de limpeza.

Quando usar

  • ✓Quando uma equipe quer que o código seja varrido em busca de áreas bagunçadas ou arriscadas.
  • ✓Quando um desenvolvedor precisa adicionar manualmente um item de dívida conhecido ao registro.
  • ✓Quando um líder precisa de um resumo do status da dívida e das prioridades para o planejamento.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/tech-debt/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Varra a base de código em busca de dívida técnica e me diga quais itens devo corrigir primeiro.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill procura no código marcadores como TODO, FIXME e HACK, sinaliza arquivos e funções muito longos e classifica cada achado em uma categoria de dívida. Ela mantém um registro, que pode ser reordenado ou usado para gerar um relatório.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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
Perguntas frequentes

O que ela procura?

Ela procura comentários TODO, FIXME e HACK, marcadores de código obsoleto, código duplicado e arquivos ou funções muito longos.

Por que um FIXME é tratado de forma diferente?

Um FIXME marca código que se sabe estar quebrado, então a skill o trata como um bug disfarçado de dívida.

Posso adicionar itens de dívida eu mesmo?

Sim. Um modo de adição permite que você informe um item de dívida manualmente.

Detalhes

Descrição original do autor

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

repo: Donchitos/Claude-Code-Game-Studios

Popularidade

Estrelas no GitHub
33 mil
Posição no ranking
#8500
Licença
MIT
Atualizada em
18/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas