tech-debt-audit

tech-debt-audit is a skill for Claude Code from yarlson/yarstack. It costs 76 tokens per session (1,853 once invoked), scanned A, original, MIT.

A read-only audit of a repository or subsystem for technical debt: existing code that makes future changes slower, riskier, or more expensive. It produces a ranked register supported by evidence.

In plain words
What is it for?
Use it to inspect churn, dependencies between modules, large or frequently changed files, TODOs and suppressions, authorship patterns, and other signals before prioritizing cleanup work.
Why use it?
It replaces scattered impressions with a structured view of where maintenance problems are concentrated and which ones are most costly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the yarstack plugin — 46 skills, 1 agent shipped together

Good fit Use it to inspect churn, dependencies between modules, large or frequently changed files, TODOs and suppressions, authorship patterns, and other signals before prioritizing cleanup work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yarlson/yarstack/tech-debt-audit
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.

Any agent
npx skills add yarlson/yarstack --skill tech-debt-audit
Clone the repo
git clone --depth 1 https://github.com/yarlson/yarstack

Made for: Claude Code.

Or install yarstack, the plugin that ships this one along with the rest of its 46 skills, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/yarlson/yarstack/tech-debt-audit/github.svg)](https://agentmods.dev/skills/yarlson/yarstack/tech-debt-audit)
Your own site
<a href="https://agentmods.dev/skills/yarlson/yarstack/tech-debt-audit"><img src="https://agentmods.dev/badge/skills/yarlson/yarstack/tech-debt-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tech-debt-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/yarlson/yarstack/tech-debt-audit"><img src="https://agentmods.dev/badge/skills/yarlson/yarstack/tech-debt-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,853 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.00076 $0.01853
Opus 5.5 $0.00030 $0.00741
Sonnet 5.5 $0.00015 $0.00371
Haiku 4.5 $0.00008 $0.00185

Measured 3d ago against content hash 9cbde085cf7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tech-debt-audit 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 3d 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.

plugins/yarstack/skills/tech-debt-audit/SKILL.md · 103 lines

How it starts

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

Tech Debt Audit

Produce a verified, ranked debt register a team can turn into work items. Keep the audit read-only: do not edit, format, commit, push, install, upgrade, run migrations, or send repository data to external services.

Definition

Technical debt is a set of design or implementation constructs that are expedient in the short term but make future changes more costly or impossible. Its impact is limited to internal qualities, mainly maintainability and evolvability.

  • Principal is the effort to remove the debt. Interest is the extra cost the debt adds to each change that touches it: slower delivery, more defects, more risk.
  • Debt in code that rarely changes charges little interest. Rank messy code that changes often above ugly code that is stable.
  • A defect that produces wrong behavior today is a bug, not debt. So is an exploitable security issue. A missing feature, a style preference, or "not the latest trend" is not debt unless you can show a cost.
  • Record the origin as deliberate only when a comment, ADR, commit message, or issue shows it. Otherwise use inadvertent or unknown.

Budget

  • Launch at most four subagents, in one wave. Do not relaunch them, chain them, or let them spawn subagents. Use the yarstack:reviewer agent for each lane when the host provides it. For a repository under about 20k lines or with a single module, use at most two, and do the remaining lanes yourself.
  • Use subagents only when the host supports them and the user permits it. Otherwise run the lanes in sequence and label the result as degraded.
  • Use a lower-cost model at low or moderate effort for lanes. Keep deduplication, verification, and ranking with the lead.
  • Cap each lane at about 40 file reads and 15 findings. When a lane reaches the cap, it stops and reports what it did not cover.

Build the shared inventory

The lead does this once, and every lane receives the result. Lanes must not repeat any step.

  1. Confirm the target, excluded paths, and output location. Read repository instructions, README, contributing guides, ADRs, and architecture docs. Skip vendored, generated, and build output except for dependency analysis.
  2. Record languages, modules with one-line purposes, entry points, and the build, test, lint, and CI commands. Run only trusted read-only commands.
  3. Find the top 30 files by commit count over the last 12 months, or over the full history if it is shorter: git log --since="12 months ago" --name-only --format= | sort | uniq -c | sort -rn.
  4. Mark as hotspots the 10–15 files with both high churn and high complexity. Measure complexity with size and nesting depth, or with a complexity tool that is already installed.
  5. List co-change pairs that cross module boundaries, and single-author hotspots from git shortlog.
  6. Count TODO, FIXME, HACK, XXX, @deprecated, and lint or type suppressions per directory, and keep the 20 most informative lines.
  7. Note which lint rules are disabled, which coverage reports exist, and which dependency manifests exist.

Read the full file on GitHub · 103 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. 3d ago Changed 9cbde085cf7f
  2. 21d ago Changed · +29 lines · +6 tokens per session 7d8fc1419149
  3. 26d ago First seen · 74 lines · 70 tokens per session scan A 99650f184920

Subscribe to this mod's changes

tech-debt-audit is a skill published in the GitHub repository yarlson/yarstack (3 stars, last pushed 2d ago), licensed MIT. It adds 76 tokens to every session and 1,853 once invoked, about $0.0003 per session on Opus 5.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-09-26.