Tech Debt Auditor

Tech Debt Auditor is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 22 tokens per session (1,598 once invoked), scanned A, original, MIT.

A codebase review tool that finds technical debt and ranks it by effort and impact. Technical debt is the future maintenance work created by shortcuts, tangled structure, or other code-quality problems.

In plain words
What is it for?
Auditing a whole repository, directory, or file before a refactoring sprint, a feature touching older code, or onboarding new engineers.
Why use it?
It turns a broad list of code problems into a prioritized backlog for deciding what to fix first.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Claude Code; mentions Codex; built for cline.

Good fit Auditing a whole repository, directory, or file before a refactoring sprint, a feature touching older code, or onboarding new engineers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notysoty/openagentskills/tech-debt-auditor
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 Notysoty/openagentskills --skill tech-debt-auditor
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

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 Auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/tech-debt-auditor/github.svg)](https://agentmods.dev/skills/notysoty/openagentskills/tech-debt-auditor)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/tech-debt-auditor"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/tech-debt-auditor/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 Auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/notysoty/openagentskills/tech-debt-auditor"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/tech-debt-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,598 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.00022 $0.01598
Opus 5 $0.00011 $0.00799
Sonnet 5 $0.00004 $0.00320
Haiku 4.5 $0.00002 $0.00160

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

Security

Grade A, and why

Tech Debt Auditor 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 9d 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/tech-debt-auditor/SKILL.md · 171 lines

How it starts

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

Tech Debt Auditor

What this skill does

This skill directs the agent to systematically scan a codebase for technical debt, categorize every item by type, and then rank each item against an effort/impact matrix so you can prioritize what to tackle first. It distinguishes between cosmetic debt (naming, formatting), structural debt (tangled dependencies, god classes), and strategic debt (shortcuts taken deliberately). The output is a prioritized backlog, not just a complaint list.

Use this when you're planning a refactoring sprint, preparing for a new feature that will touch old code, or doing a code quality review before onboarding new engineers.

How to use

Claude Code / Cline

Copy this file to .agents/skills/tech-debt-auditor/SKILL.md in your project root.

Then ask:

  • "Use the Tech Debt Auditor skill on the src/payments/ directory."
  • "Run a full tech debt audit on this repository using the Tech Debt Auditor skill."

Point to a specific directory, a single file, or ask for a whole-repo scan. For large repos, start with the highest-churn directories.

Cursor

Add the instructions below to your .cursorrules or paste them into the Cursor AI pane before pointing to the code you want audited.

Codex

Paste the file or directory listing into the chat along with the instructions from the section below. For large codebases, provide the directory tree and the agent will ask for specific files it needs to inspect.

The Prompt / Instructions for the Agent

When asked to audit for technical debt, follow this process precisely:

Phase 1 — Scan and catalogue

Read the target files thoroughly. For each file, look for:

Structural debt

  • God classes or modules (a single file doing too many unrelated things)
  • Circular dependencies between modules
  • Deeply nested conditionals (more than 3 levels)
  • Functions longer than 50 lines
  • Duplicated logic across multiple files
  • Hard-coded configuration values that should be environment variables

Read the full file on GitHub · 171 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. 9d ago First seen · 171 lines · 22 tokens per session scan A 55461ca08622

Subscribe to this mod's changes

Tech Debt Auditor is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 25d ago), licensed MIT. It adds 22 tokens to every session and 1,598 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

aposd-audit

Quantitative design audit. Counts pass-throughs, duplication, doc gaps, naming issues, and exceptions across 5 dimensions, scored 0-4.

mhenke/john-ousterhout-skills · 36 tokens

explain-back

Use before trusting, merging, or building on top of code you (or an agent) just wrote or are about to change. The agent explains the code back in plain language — what it does, why it exists, what breaks if it's wrong — and refuses to proceed until the mental model is confirmed. Use when a diff looks fine but nobody…

mikestangdevs/craft-skills · 103 tokens

boyscout

Use when touching an existing file to make a change, so you leave it slightly cleaner than you found it without derailing into a giant refactor. Identifies small, safe, in-scope improvements adjacent to the change you're already making — a better name, a deleted dead line, an extracted helper, a clarified condition …

mikestangdevs/craft-skills · 107 tokens

why-comments

Use when a file is littered with comments that narrate what the code already says (// increment the counter), when load-bearing code has no explanation of why it exists, or when reviewing AI-generated code (agents pad output with narration and never record the why). Deletes comments that restate the code, keeps and…

mikestangdevs/craft-skills · 130 tokens

everywhere-else

Use immediately after fixing a bug or improving a pattern in one place — before reporting done. Asks the question agents never ask themselves: 'did you do that anywhere else?' Enumerates the full population of sibling sites (other templates, scenarios, endpoints, components, fixtures, configs that share the same…

mikestangdevs/craft-skills · 134 tokens

prove-every-number

Use whenever code contains a numeric constant, threshold, default, rate, capacity, tolerance, or coefficient — especially one the agent just introduced. Enforces the rule: every number is either derived (from real data or first principles, traceably) or cited (to a spec, datasheet, standard, or documented decision) …

mikestangdevs/craft-skills · 153 tokens