debt-audit

debt-audit is a skill for Claude Code from hereinthehive/gotrino-assistant. It costs 56 tokens per session (1,231 once invoked), scanned A, original, MIT.

A project health review that checks five kinds of technical debt: code, documentation, tests, dependencies, and design, then combines the findings into one report.

In plain words
What is it for?
It helps audit a selected path or directory, find cross-cutting hotspots, and prioritize technical-health work.
Why use it?
It shows where several maintenance problems overlap, so teams can identify neglected areas before a major release or cleanup effort.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the gotrino-assistant plugin — 18 skills, 1 agent shipped together

Good fit It helps audit a selected path or directory, find cross-cutting hotspots, and prioritize technical-health work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hereinthehive/gotrino-assistant/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 hereinthehive/gotrino-assistant --skill debt-audit
Clone the repo
git clone --depth 1 https://github.com/hereinthehive/gotrino-assistant

Made for: Claude Code.

Or install gotrino-assistant, the plugin that ships this one along with the rest of its 18 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 debt-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/hereinthehive/gotrino-assistant/debt-audit/github.svg)](https://agentmods.dev/skills/hereinthehive/gotrino-assistant/debt-audit)
Your own site
<a href="https://agentmods.dev/skills/hereinthehive/gotrino-assistant/debt-audit"><img src="https://agentmods.dev/badge/skills/hereinthehive/gotrino-assistant/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 debt-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/hereinthehive/gotrino-assistant/debt-audit"><img src="https://agentmods.dev/badge/skills/hereinthehive/gotrino-assistant/debt-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,231 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.00056 $0.01231
Opus 5 $0.00028 $0.00616
Sonnet 5 $0.00011 $0.00246
Haiku 4.5 $0.00006 $0.00123

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

Security

Grade A, and why

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 10d 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/debt-audit/SKILL.md · 154 lines

How it starts

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

Debt Audit

Run every debt dimension and find the places where debt compounds.

Philosophy

"Where does our debt concentrate, and what's the single highest-leverage place to repay?"

Running each dimension separately is fine, but patterns emerge only when you look across them. A module flagged by code-debt, test-debt, AND design-debt isn't three separate problems — it's one neglected area. The umbrella's job is surfacing that.

Scope

User may specify a path, glob, or directory. Whole-project scans are valid but can be long. If not specified, ask: "Which directory should the audit cover? (Project root is fine for small codebases; a subsystem for larger ones.)"

Config Integration

Follow references/config-migration.md for preflight.

Read .assistant-config.md for:

  • Debt Scope — any dimensions permanently out of scope
  • Acknowledged Debt

Dimension Selection

Before running, show the user the five dimensions and allow per-run exclusion via AskUserQuestion:

Will check: code, doc, test, dep, design. Exclude any for this run? (none / list)

Respect .assistant-config.md Debt Scope exclusions as defaults.

Process

1. Run each dimension

For each selected dimension, invoke the dimension skill via the Skill tool, passing the same scope:

  • code-debt <scope>
  • doc-debt <scope>
  • test-debt <scope>
  • dep-debt <scope>
  • design-debt <scope>

Capture each sub-report as text.

2. Parse sub-reports

For each report, extract (per the parsing contract in references/debt-output-format.md):

  • Dimension name
  • Every file:line entry under ### Findings
  • The single Impact/Effort/Priority triple per location group
  • Each Ready-to-file item as a complete block

Build a location map:

{
  "src/auth/handlers.ts": {
    "code": [...findings],
    "test": [...findings],
    "design": [...findings]
  },
  "src/orders/": {
    "dep": [...findings]
  }
}

3. Score hotspots

  • Systemic hotspot: any location appearing in three or more dimensions.
  • Deep debt zone: any location with five or more findings in one dimension.

Read the full file on GitHub · 154 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. 10d ago First seen · 154 lines · 56 tokens per session scan A c0f4ea24e9de

Subscribe to this mod's changes

debt-audit is a skill published in the GitHub repository hereinthehive/gotrino-assistant (5 stars, last pushed 4mo ago), licensed MIT. It adds 56 tokens to every session and 1,231 once invoked, about $0.0003 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.