agentleFS
nathanchasenathanchase/claude-code-starter/.claude/skills/techdebt/SKILL.md

techdebt

Skill1 starsChanged 5 months agoMITView on GitHub

Scan codebase for technical debt — duplicated code, dead exports, unused dependencies, TODO/FIXME comments, and oversized files. Run periodically or at session end.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use docs-ci, docs-interfaces and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • RachaelQuiselSkill

    client-docs

    Client documentation. Use when a build needs documentation updates or missing project documents need to be identified.

    Also in 3 projects that use this

  • yu-iskwSkill

    test-and-fix

    Run unit tests and automatically fix code failures, regression bugs, or test mismatches. Use when tests are failing, after implementing new features, or to repair "broken" tests.

    Also in 4 projects that use this

  • planailabsSkill

    docs-architecture

    Layout, build pipeline, and structural gotchas for this dual-Astro repo. Read before changing structure, routing, or adding content. Operational/dev-server questions → dev-build skill.

    Also in 3 projects that use this

  • llama-farmSkill

    commit-push-pr

    Commit changes, push to GitHub, and open a PR. Includes quality checks (security, patterns, simplification). Use --quick to skip checks.

    Also in 5 projects that use this

  • +4 more from jh941213

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Look for suspiciously similar blocks across files.

    line 32
  2. Distinctive:

    Use Grep to search for repeated patterns (3+ occurrences of same multi-line block).

    line 37
  3. Very specific:

    Check for exported functions/types that have no imports elsewhere in the codebase.

    line 40
  4. Distinctive:

    If nothing notable is found, respond: "Techdebt scan clean — no issues found."

    line 78

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Technical Debt Scanner

Perform a quick techdebt scan of the codebase. Report findings concisely — one line per issue found.

Continuous mode: run this under /loop (e.g. /loop 1d /techdebt) to scan on an interval, or pair it with a /goal to keep chipping away — "the techdebt report has no findings above <threshold>" — until the backlog clears.

Checks to Run

1. Large Files (>500 lines)

Find Vue components, TypeScript files, and composables exceeding 500 lines. These are candidates for extraction.

find app/ shared/ server/ -name '*.vue' -o -name '*.ts' | xargs wc -l | awk '$1 > 500 {print}' | sort -rn

2. TODO/FIXME/HACK Comments

Surface unresolved technical debt markers.

grep -rn 'TODO\|FIXME\|HACK\|XXX\|TEMP' app/ shared/ server/ --include='*.vue' --include='*.ts' --include='*.js'

3. Duplicated Code Patterns

Look for suspiciously similar blocks across files. Focus on:

  • Identical fetch/API call patterns that should be composables
  • Repeated template patterns that should be components
  • Copy-pasted utility functions

Use Grep to search for repeated patterns (3+ occurrences of same multi-line block).

4. Unused Exports

Check for exported functions/types that have no imports elsewhere in the codebase. Focus on shared/ and app/composables/.

For each export found, grep the codebase for its usage. If only the defining file references it, flag it.

5. Unused Dependencies

Compare package.json dependencies against actual imports in the codebase.

# List dependencies from package.json, then check each for usage
bun pm ls 2>/dev/null | head -50

For each dependency, search for import ... from 'package-name' or require('package-name'). Flag any with zero references.

Output Format

## Techdebt Report

### Large Files
- `app/components/MovieCard.vue` — 623 lines (consider extraction)

### Unresolved TODOs
- `app/composables/useRankings.ts:45` — TODO: handle pagination edge case

### Duplicated Patterns
- API error handling pattern repeated in 4 composables — extract to shared utility

### Unused Exports
- `shared/utils/format.ts:export formatDuration` — no imports found

### Unused Dependencies
- `lodash-es` — no imports found in codebase

### Summary
Found X issues across Y categories.

If nothing notable is found, respond: "Techdebt scan clean — no issues found."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.