Логотип Tech Debt

Tech Debt

Спільнота
rustyrazorblade
tech-debt

Audit the codebase for structural improvement opportunities — SOLID/composability, code duplication, and unnecessary layering — using a parallel team of review agents. Ranks the 10 most impactful findings, excludes anything already in the open backlog, and walks the owner through them one at a time with full context; the owner decides per item whether to file it as a GitHub issue. Not tied to any issue; owner-invoked, never automatic.

Огляд

Видавецьrustyrazorblade
Репозиторійskills
Назва навичкиtech-debt
Зірки
44
Форки
9
Файли в пакеті
Лише інструкції
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем rustyrazorblade. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Tech Debt у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/rustyrazorblade/skills/tree/main/plugins/dev-skills/skills/tech-debt
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rustyrazorblade/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/dev-skills/skills/tech-debt .claude/skills/tech-debt
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Tech Debt в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Tech Debt, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Tech Debt не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

tech-debt — structural audit → ranked findings → owner files what's worth it

Foreground, standalone: no worktree, no issue coupling, no code edits. A team of review agents reads the whole codebase looking for structural debt, ranks what it finds, and the owner decides — one finding at a time — what's worth turning into real backlog work.

Steps

  1. Establish scope. Default is the whole repo. If the owner (or argument-hint) named a path/module, scope the review to it and say so up front.

  2. Snapshot the existing backlog, once, before spawning anything. The whole point is to never re-surface what's already known:

    bash
    gh issue list --state open --json number,title,url --limit 200

    Keep this list in context — you'll hand it to every lens agent below so they self-filter, and you'll do a final cross-check yourself before presenting anything to the owner.

  3. Spawn three lens agents in parallel (one Agent tool call each, sent together — not sequential), each subagent_type: general-purpose, model: opus (the strongest available tier — this is a deep, whole-codebase read, not a quick lookup). Give every lens the scope from step 1 and the open-issue list from step 2 verbatim, with the instruction to silently drop any candidate that duplicates an existing open issue's title/body rather than flagging it. Each lens returns its own ranked candidate list — file:line evidence, the concrete problem, and a concrete direction to fix it, never a vague "consider refactoring X":

    • SOLID / composability — "Is the codebase built from small, composable components, or from large ones doing several unrelated jobs? Find the worst violations: single-responsibility breaks (a class/module/function doing 2+ unrelated things), dependencies on concretions where an abstraction would decouple two things that shouldn't know about each other, and interfaces wide enough that most callers only use a slice of them. For each, name the smaller pieces it should split into."
    • Code duplication — "Find logic duplicated across files/modules that belongs in one shared place — not textually identical-only, but the same behavior re-implemented with minor variations (a strong signal the abstraction was never extracted, or drifted after copy-paste). For each, name where the shared module/function should live and what call sites would move to it."
    • Structure / layering — "Find unnecessary indirection: layers that just forward calls to the next layer with no logic of their own, wrapper types/interfaces with exactly one implementation and no test-seam justification, or a module boundary that's crossed so often in both directions it isn't really a boundary. For each, name what should collapse or merge."

    Each lens caps itself at its own strongest ~5-8 candidates rather than padding to hit a number — a lens with fewer genuine findings should return fewer.

  4. Merge, dedupe, and rank globally. Collect all three lenses' candidates. Two different lenses sometimes point at the same underlying spot (a god-class is both a SOLID violation and the reason its duplicated logic never got extracted) — merge those into one finding citing both angles rather than presenting it twice. Do your own pass against the step-2 backlog list too (lens-level self-filtering can miss a near-match) — drop anything that's substantially already an open issue. Rank what's left by impact: how much it currently costs (bug surface, onboarding friction, how often it's touched) weighed against how contained the fix is. Keep the top 10 — fewer if fewer genuinely impactful findings survive; never pad the list to reach 10.

  5. Present findings one at a time — full context, owner decides each one before you show the next. Don't dump the ranked list upfront. For each:

    [3 of 10] <one-line title>
    Lens: <SOLID | duplication | structure>
    Where: <file:line, file:line, ...>
    Problem: <what's actually wrong, concretely>
    Direction: <the shape of the fix — not a full design, just where it points>
    Impact: <why this one ranked where it did>

    Ask: file as a GitHub issue, skip, or adjust (owner can narrow/reshape it before it's filed). Never file anything without that per-item confirmation — the owner decides what enters the backlog, this skill only surfaces candidates.

  6. File exactly what the owner accepted, drafted with a distinct ## Direction section (not folded into Notes) — keep it as its own heading, verbatim; some downstream consumer of the filed issue may key off that section being present:

    bash
    gh issue create --title "<concise title>" --label "<P0|P1|P2|P3>" --label "status:ready" --label "type:tech-debt" \
      --body "## Scope
    <what this touches, in/out>
    
    ## Acceptance criteria
    - [ ] <behavior is unchanged — existing tests still pass unmodified, no public signature/error-contract/CLI/config/serialized-output change>
    - [ ] <the structural outcome itself — e.g. 'X and Y are split into single-responsibility units'>
    
    ## Direction
    <the finding's Direction field, verbatim — the shape of the fix, where it points>
    
    ## Notes / context
    Lens: <SOLID | duplication | structure>. Where: <file:line, file:line, ...>. Problem: <what's wrong>."

    The first acceptance criterion is always the behavior-preservation one, worded plainly — this is the contract the whole fast path rests on, not optional boilerplate. Propose a priority (default P2 — real but not urgent, unless the finding's impact argues otherwise) and confirm before creating.

  7. Log the run, even if nothing got filed. This creates an audit trail a consuming pipeline can use to compute a review cadence later, without guessing:

    bash
    LOG_URL=$(gh issue create --title "Tech debt review — $(date +%Y-%m-%d)" \
      --body "Scope: <repo or path>. Candidates found: <N>. Filed: <issue numbers>. Skipped: <count>." \
      --label "tech-debt-review")
    gh issue close "$LOG_URL"

    gh issue create prints the new issue's URL; gh issue close accepts a URL directly, so no number-parsing needed. Immediately closed — it's an audit-trail marker, not a work item.

  8. Report. List what got filed (numbers + brief descriptions), what got skipped, and confirm the run is logged for cadence tracking.

Rules

  • Foreground, read-only except for the gh issue create calls in steps 6-7. No worktree, no code edits — this skill finds and files, it never fixes anything itself. A finding worth fixing becomes a normal issue that goes through the repo's own issue pipeline like any other.
  • Never file anything the owner hasn't individually confirmed. Presenting the full top-10 list and asking for a blanket "file all of these" defeats the point — one at a time, each with room to actually be read before the next one shows up.
  • Never re-surface an existing open issue. Step 2's snapshot exists specifically so lens agents and your own final pass can filter against it — a finding that's already backlog isn't a finding.
  • Never invent an automatic schedule for this skill itself. It's owner-invoked, or recommended by whatever pipeline consumes it when its own cadence check says a review is due — recommended, never auto-run.
  • Never file an issue that also carries (or should carry) type:docs. The two fast paths are mutually exclusive — a finding is either a structural code change or a documentation change, never both from this skill. Filed issues get type:tech-debt and nothing else in that label kind.
  • Always pair an issue number with a brief (description) — the owner does not track raw numbers.
  • If the lens agents come back nearly empty (a genuinely clean codebase, or too small a scope), say so plainly rather than manufacturing findings to fill the list — still log the run (step 7) either way.

Поширені запитання

Що робить навичка ШІ Tech Debt?

Audit the codebase for structural improvement opportunities — SOLID/composability, code duplication, and unnecessary layering — using a parallel team of review agents. Ranks the 10 most impactful findings, excludes anything already in the open backlog, and walks the owner through them one at a time with full context; the owner decides per item whether to file it as a GitHub issue. Not tied to any issue; owner-invoked, never automatic.

Навіщо використовувати Tech Debt у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Tech Debt — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Tech Debt у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/rustyrazorblade/skills/tree/main/plugins/dev-skills/skills/tech-debt. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Tech Debt?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Tech Debt?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Tech Debt — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Tech Debt?

Так. Навичку опубліковано на GitHub: rustyrazorblade, за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇