Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

tech-debt

/tech-debt

Skanuje kod pod kątem wskaźników długu technicznego, kategoryzuje i priorytetyzuje ustalenia oraz prowadzi rejestr długu z rekomendacjami spłaty.

Licencja
MIT
Ostatnia zmiana repozytorium
15.05.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 15.05.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Skanuje kod pod kątem wskaźników długu technicznego, kategoryzuje i priorytetyzuje ustalenia oraz prowadzi rejestr długu z rekomendacjami spłaty.

Oryginalny opis (EN)

Scans the codebase for technical debt indicators, categorizes and prioritizes findings, and maintains a debt register with repayment recommendations. Use when assessing codebase health, planning refactoring, or when the user mentions technical debt or code quality.

Jak działa

  1. Protocol
  2. Output
Sekcje z nagłówków SKILL.md, w oryginale · 98 linii, 675 słów
Podgląd SKILL.md
---
name: tech-debt
type: workflow
description: "Scans the codebase for technical debt indicators, categorizes and prioritizes findings, and maintains a debt register with repayment recommendations. Use when assessing codebase health, planning refactoring, or when the user mentions technical debt or code quality."
argument-hint: "[scan|add|prioritize|report]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Write
context: fork
agent: technical-director
effort: 3
when_to_use: "Use when assessing codebase health, planning a refactoring sprint, or when the user mentions technical debt, code quality, cleanup, or wants to prioritize remediation work."
---
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)
     - Shallow wrappers or pass-through abstractions that fail the deletion test
   - Categorize each finding:
     - **Architecture Debt**: Wrong abstractions, missing patterns, coupling issues, shallow wrappers, failed deletion-test seams
     - **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`

   For shallow-wrapper findings, apply this test before filing debt:

   - If deleting the abstraction would mostly simplify the code and would not
     force multiple callers to re-learn meaningful behavior, log it as
     **Architecture Debt**.
   - If deleting it would re-spread invariants, branching, retries, validation,
     or ordering logic across callers, it is probably earning its keep; do not
     file debt just because it is small.

   Record shallow-wrapper debt explicitly in the description, for example:

   - "Pass-through adapter around `OrderRepository` fails deletion test"
   - "Thin mapper module mirrors caller complexity without adding leverage"

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

```markdown
## 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
- Do not file every small abstraction as debt. File only wrappers/modules that
  are shallow enough to fail the deletion test.

## Protocol

- **Question**: Reads mode from argument (`scan` / `add` / `prioritize` / `report`); `add` mode prompts for debt details
- **Options**: Skip — mode drives execution path
- **Decision**: `add` mode — user provides description, category, effort estimate, and justification (why accepted)
- **Draft**: Changes shown in conversation before updating register
- **Approval**: "May I update `docs/technical/tech-debt.md`?"

## Output

Deliver exactly:

- **`scan`**: debt register updated at `docs/technical/tech-debt.md` + count of new items found by category
- **`add`**: new TD-[NNN] entry appended to register with effort, impact, and WHY it was accepted
- **`prioritize`**: ranked list of top 5 items by impact/effort score with recommended sprint to fix
- **`report`**: summary table — total items, effort distribution (S/M/L/XL), critical items count

Wersje

RepozytoriumWynikLicencja
Ta strona · tranhieutt/software_development_department100MIT
mcouthon/agents100MIT
andreibesleaga/gabbe100CC-BY-4.0
pantheon-org/tekhne100MIT
anthropics/knowledge-work-plugins100Apache-2.0
y-miyazaki/terraform-aws-base100Apache-2.0
qa-aman/claude-skills100MIT
secondsky/claude-skills100MIT
davekilleen/Dex90MIT

Migawka bazy z 28.10.2026 · wersja paczki 54553cf51a2c (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100manage-tech-debt
    Śledzi, kategoryzuje i priorytetyzuje dług techniczny, tworzy rejestr długu, ocenia jakość kodu i planuje prace refaktoryzacyjne.
  • 95dev-loop-tech-debt-tracker
    Pomaga prowadzić rejestr długu technicznego: metryki jakości, priorytetyzację i proces systematycznego ograniczania długu.
  • 100code-refactoring-tech-debt
    Identyfikuje, wycenia i priorytetyzuje dług techniczny w projektach oprogramowania oraz planuje jego naprawę.
  • 100tech-debt-analyzer
    Analizuje dług techniczny w bazie kodu i dokumentuje problemy jakości: code smells, problemy architektury i zależności, braki w dokumentacji, podatności oraz rejestr długu technicznego.
  • 100tech-debt-tracker
    Skanuje bazy kodu pod kątem długu technicznego przez parsowanie AST, priorytetyzuje według wpływu i generuje pulpity trendów, do refaktoryzacji, kosztu opóźnienia i raportów dla zarządu.
  • 100tech-debt-analyzer
    Skanuje kod pod kątem sygnałów długu technicznego (TODO, FIXME, HACK, przestarzałe zależności, duplikacja), koreluje je z historią git i szereguje według wpływu na biznes.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.