Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

technical-debt

БесплатноБез исполняемых скриптовНе проверен

Technical debt inventory, prioritization, and audit for PHP/Laravel (MySQL) and Node/TypeScript/React projects. Use when assessing code health, identifying…

AsyrafHussinот AsyrafHussin★ 112 звёзд на GitHub

Об этом скилле

Technical Debt

Technical debt audit and prioritization framework for PHP/Laravel (MySQL) and Node/TypeScript/React projects. Contains 42 rules across 10 categories covering code, security, design, dependency, test, performance, data, documentation, infrastructure, and process debt. Produces a ranked ledger (effort × impact) so teams know what to fix first, not just what's broken. Supports both coding reference and audit mode with PASS/FAIL/N/A output.

Metadata

  • Version: 1.1.0
  • Scope: PHP / Laravel (MySQL) + Node / TypeScript / React
  • Rule Count: 42 rules across 10 categories
  • License: MIT

How to Audit

When the user asks to "audit technical debt", "find tech debt", or "what should we refactor first" — run the checklist below against their codebase and produce a ranked debt ledger.

Audit Step 1: Determine Scope

  • If arguments provided ($ARGUMENTS): audit only those paths or modules
  • If no arguments: audit the entire repository starting from the root

Audit Step 2: Detect Project Stack

Inspect composer.json and package.json to determine which of the supported stacks (PHP/Laravel, Node/TypeScript/React, or both) is in use. Tooling commands (composer outdated, npm outdated, phpstan, eslint, knip, etc.) are chosen based on this detection.

Audit Step 3: Run Debt Checklist

Work through every item below. For each, output:

  • PASS — brief confirmation of what was verified
  • FAIL — exact file:line (or command output), description of the debt, effort estimate (S/M/L), and impact (LOW/MED/HIGH/CRITICAL)
  • N/A — if the check does not apply to this project

Code Debt

  • No duplicated blocks > 30 lines across files
  • No function exceeds 50 lines or cyclomatic complexity > 10
  • No class exceeds 300 lines or has > 15 public methods (god class)
  • No unreachable code, unused exports, or commented-out blocks left in source
  • No magic numbers or unexplained string literals in business logic
  • No function exceeds 4 parameters (use a parameter object)

Security Debt

  • No secrets, API keys, or credentials committed to source (or git history)
  • Every public endpoint validates input via a schema / FormRequest / DTO
  • Passwords hashed with bcrypt or argon2id; no MD5/SHA-1
  • Sessions have a bounded lifetime; auth-sensitive endpoints rate-limited
  • Security headers present (CSP, HSTS, X-Content-Type-Options, Referrer-Policy)
  • Authorization (not just authentication) enforced on every protected route

Design Debt

  • No circular dependencies between modules/packages
  • Layers respect direction (UI → service → repository, never reversed)
  • No "shotgun surgery" patterns (one change forcing edits in 5+ files)
  • Abstractions hide implementation details (no leaking framework types across boundaries)

Dependency Debt

  • No dependencies more than 2 major versions behind
  • No abandoned/unmaintained packages (no release in > 24 months)
  • No known CVEs reported by npm audit / composer audit at HIGH or CRITICAL
  • No unused dependencies in package.json / composer.json

Test Debt

  • Critical paths have integration test coverage
  • No skipped/disabled tests without linked issue or removal date
  • No known flaky tests left in main branch
  • Test suite runs in under 10 minutes (or has explicit budget documented)

Performance Debt

  • No N+1 query patterns on list endpoints (query count constant per request)
  • No list endpoint returns an unbounded result set (pagination present)
  • Frontend initial bundle within budget (~200 KB gzip); route-level code splitting in place
  • Expensive read paths (aggregations, external APIs, static configs) are cached at a sensible layer

Data Debt

  • Migrations are the only source of schema changes; production matches migration history
  • All foreign-key and frequently-queried columns are indexed
  • No orphaned child records; FK constraints enforced

Documentation Debt

  • README reflects current setup and dev workflow
  • No stale comments contradicting the code they describe
  • Public APIs / exported modules have docblocks or type hints

Infrastructure Debt

  • Runtime versions (Node, PHP) are on supported (non-EOL) releases
  • No deprecated framework APIs in use (e.g., Laravel Route::get() deprecations)
  • Build runs cleanly with zero warnings
  • Secrets stored in a manager (Vault / Doppler / cloud SM); no long-lived shared credentials
  • Structured logs, error tracking, p95 latency dashboards, and SLO-based alerts in place

Process Debt

  • No TODO/FIXME/HACK comments older than 6 months without owner or ticket
  • No @deprecated markers without a removal date or replacement
  • Debt is tracked somewhere visible (issue tracker label, debt register, ADR)
  • Every path has an owner (CODEOWNERS file present and curre
Полный SKILL.md на GitHub

Установить technical-debt в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdREADME.mdmetadata.jsonrules/_sections.mdrules/_template.mdrules/code-complexity.mdrules/code-dead-code.mdrules/code-duplication.mdrules/code-god-classes.mdrules/code-long-functions.mdrules/code-long-parameter-lists.mdrules/code-magic-numbers.mdrules/data-missing-indexes.mdrules/data-orphaned-records.mdrules/data-schema-drift.mdrules/deps-abandoned-packages.mdrules/deps-outdated-versions.mdrules/deps-security-advisories.mdrules/deps-unused-deps.mdrules/design-circular-deps.mdrules/design-leaky-abstractions.mdrules/design-shotgun-surgery.mdrules/design-tight-coupling.mdrules/docs-outdated-architecture.mdrules/docs-stale-comments.mdrules/docs-undocumented-api.mdrules/infra-build-warnings.mdrules/infra-deprecated-apis.mdrules/infra-monitoring-gaps.mdrules/infra-runtime-versions.mdrules/infra-secrets-management.mdrules/perf-bundle-bloat.mdrules/perf-missing-pagination.mdrules/perf-n-plus-one.mdrules/perf-no-caching.mdrules/process-debt-tracking.mdrules/process-deprecated-markers.mdrules/process-feature-flags-lingering.mdrules/process-ownership-gaps.mdrules/process-todo-fixme-aging.md

FAQ

Что делает скилл technical-debt?

Technical debt inventory, prioritization, and audit for PHP/Laravel (MySQL) and Node/TypeScript/React projects. Use when assessing code health, identifying refactoring candidates, planning debt paydown, or auditing a codebase for accumulated debt. Triggers on "audit technical debt", "find tech debt", "debt inventory", "what should we refactor first", or tasks involving code health, security debt, performance debt, data debt, observability debt, debt prioritization, or remediation planning.

Как установить скилл technical-debt?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл technical-debt запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить technical-debt с