tech-debt

tech-debt is a command for Claude Code from nolabs-ai/claude-extensions. It costs 9 tokens per session (570 once invoked), scanned A, original, MIT.

A codebase review command that finds and records technical debt—parts of software that make future changes, maintenance, or reliability harder.

In plain words
What is it for?
Use it to scan for TODOs and bug markers, identify large or complex files, detect duplicate or outdated code, check dependencies for problems, and review missing documentation.
Why use it?
It helps developers find unfinished work, risky code, outdated dependencies, weak documentation, and other maintenance problems before they grow.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Good fit Use it to scan for TODOs and bug markers, identify large or…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nolabs-ai/claude-extensions/tech-debt
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/nolabs-ai/claude-extensions

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tech-debt

README.md
[![agentmods](https://agentmods.dev/badge/commands/nolabs-ai/claude-extensions/tech-debt.svg)](https://agentmods.dev/commands/nolabs-ai/claude-extensions/tech-debt)
Your own site
<a href="https://agentmods.dev/commands/nolabs-ai/claude-extensions/tech-debt"><img src="https://agentmods.dev/badge/commands/nolabs-ai/claude-extensions/tech-debt.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.00570
Opus 5 $0.00005 $0.00285
Sonnet 5 $0.00002 $0.00114
Haiku 4.5 $0.00001 $0.00057

Measured 6d ago against content hash a1ae55e2e60e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tech-debt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/tech-debt.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Technical Debt Analysis

Scan the codebase to identify and catalog technical debt, including TODOs, FIXMEs, deprecated code, and code quality issues.

Process

  1. Find Explicit Markers

    grep -rn "TODO\|FIXME\|HACK\|XXX\|BUG\|DEPRECATED" src/
    
  2. Analyze Code Quality

    • Check for large files (>500 lines)
    • Find complex functions (high cyclomatic complexity)
    • Identify duplicated code
    • Look for outdated patterns
  3. Check Dependencies

    • Find deprecated dependencies
    • Identify outdated major versions
    • Look for security advisories
  4. Review Documentation

    • Missing documentation
    • Outdated documentation
    • Incomplete API docs

Output Format

Technical Debt Summary

Category Count Priority
TODOs 15 Medium
FIXMEs 3 High
Deprecated Code 5 Medium
Large Files 8 Low

Explicit Markers

High Priority (FIXME/BUG)
File Line Comment
src/auth.js 42 FIXME: Race condition in token refresh
src/api.js 156 BUG: Doesn't handle network errors
Medium Priority (TODO)
File Line Comment
src/utils.js 23 TODO: Add input validation

Code Quality Issues

Large Files (>500 lines)
File Lines Suggestion
src/UserService.js 850 Split into smaller modules
Complex Functions
Function File Complexity Suggestion
processOrder orders.js High Extract sub-functions

Deprecated Dependencies

Package Current Status Action
moment 2.29.0 Deprecated Migrate to date-fns or dayjs

Recommended Actions

Immediate
  1. Fix FIXME items (security/correctness)
  2. Update deprecated dependencies
Short-term
  1. Address TODO items
  2. Refactor large files
Long-term
  1. Reduce code duplication
  2. Improve documentation coverage

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 99 lines · 9 tokens per session scan A a1ae55e2e60e

Subscribe to this mod's changes

tech-debt is a command published in the GitHub repository nolabs-ai/claude-extensions (5 stars, last pushed 8mo ago), licensed MIT. It adds 9 tokens to every session and 570 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.