tech-debt-detector

tech-debt-detector is a skill for Claude Code, Codex from BuilderCed/agent-skills. It costs 34 tokens per session (1,051 once invoked), scanned A, original, MIT.

A review guide for finding and classifying technical debt in code generated with AI. Technical debt is future maintenance work created by shortcuts or incomplete implementations.

In plain words
What is it for?
Use it after AI code generation, during code reviews, before merging changes, while refactoring, during production investigations, or for periodic debt audits.
Why use it?
It focuses attention on common AI-code problems such as missing validation, weak error handling, unnecessary abstractions, and code that only works for simple examples.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/builderced/agent-skills/tech-debt-detector
Any agent
npx skills add BuilderCed/agent-skills --skill tech-debt-detector
Clone the repo
git clone --depth 1 https://github.com/BuilderCed/agent-skills

Made for: Claude Code, Codex.

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-detector

README.md
[![agentmods](https://agentmods.dev/badge/skills/builderced/agent-skills/tech-debt-detector.svg)](https://agentmods.dev/skills/builderced/agent-skills/tech-debt-detector)
Your own site
<a href="https://agentmods.dev/skills/builderced/agent-skills/tech-debt-detector"><img src="https://agentmods.dev/badge/skills/builderced/agent-skills/tech-debt-detector.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,051 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.01051
Opus 5 $0.00017 $0.00526
Sonnet 5 $0.00007 $0.00210
Haiku 4.5 $0.00003 $0.00105

Measured 4d ago against content hash bfb1279845ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tech-debt-detector 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 4d 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.

skills/eval/tech-debt-detector/SKILL.md · 138 lines

How it starts

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

Technical Debt Detector (AI-Generated Code)

Research shows a 2500% increase in code defects linked to AI-generated code (BCG 2026). This skill identifies debt patterns specific to LLM outputs.

When to Use

  • After generating code with AI (review before merging)
  • During code review of AI-assisted PRs
  • When refactoring AI-generated modules
  • When investigating production issues in AI-written code
  • Periodic tech debt audits

AI-Specific Debt Patterns

Pattern 1: Shallow Implementation

LLMs produce code that works for the happy path but fails on edges.

Signals:

  • No error handling beyond generic try/catch
  • No input validation at system boundaries
  • No null/undefined checks on external data
  • No timeout on network calls
  • Functions that work for sample data but fail at scale

Check: For each function, ask: "What happens with empty input? Null? Very large input? Concurrent access? Network failure?"

Pattern 2: Over-Abstraction

LLMs love creating abstractions even when unnecessary.

Signals:

  • Wrapper classes with no added logic
  • Factory patterns for single implementations
  • Interface with exactly one implementation
  • Helper functions called only once
  • Generic framework for a specific problem

Check: "Can I delete this abstraction and use the concrete implementation directly?"

Pattern 3: Stale Patterns

LLMs use patterns from training data that may be outdated.

Signals:

  • Class components in React (should be hooks)
  • Callbacks instead of async/await
  • var instead of const/let
  • jQuery patterns in modern codebase
  • Deprecated API usage

Check: "Is this the current recommended pattern for this framework version?"

Pattern 4: Copy-Paste Drift

LLMs generate similar code for similar tasks without deduplication.

Signals:

  • 3+ functions with >70% similar logic
  • Same validation logic repeated in multiple places
  • Similar error messages with slight variations
  • Duplicate type definitions

Check: "Are there 3+ places doing essentially the same thing?"

Read the full file on GitHub · 138 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. 4d ago First seen · 138 lines · 34 tokens per session scan A bfb1279845ae

Subscribe to this mod's changes

tech-debt-detector is a skill published in the GitHub repository BuilderCed/agent-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 34 tokens to every session and 1,051 once invoked, about $0.0002 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.