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.
npx skills add yarlson/yarstack --skill tech-debt-auditgit clone --depth 1 https://github.com/yarlson/yarstackWrote 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.
[](https://agentmods.dev/skills/yarlson/yarstack/tech-debt-audit)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
deliberateonly when a comment, ADR, commit message, or issue shows it. Otherwise useinadvertentorunknown.
Budget
- Launch at most four subagents, in one wave. Do not relaunch them, chain them, or let them spawn subagents. Use the
yarstack:revieweragent 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.
- 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.
- Record languages, modules with one-line purposes, entry points, and the build, test, lint, and CI commands. Run only trusted read-only commands.
- 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. - 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.
- List co-change pairs that cross module boundaries, and single-author hotspots from
git shortlog. - Count
TODO,FIXME,HACK,XXX,@deprecated, and lint or type suppressions per directory, and keep the 20 most informative lines. - Note which lint rules are disabled, which coverage reports exist, and which dependency manifests exist.
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.
- 3d ago Changed 9cbde085cf7f
- 21d ago Changed · +29 lines · +6 tokens per session 7d8fc1419149
- 26d ago First seen · 74 lines · 70 tokens per session scan A 99650f184920
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.
Other skills, from other repositories
capture
Capture an engineering decision into Hunch's graph via a grilling interview (topic, rationale, rejected alternatives).
heal
Reconcile docs/code with Hunch's decision graph (doc≠graph drift), never rewriting prose silently.
fix
Fix a bug grounded in Hunch (past root causes, constraints, blast radius).
why
Explain why a file or symbol is the way it is, from Hunch's decision graph.
fragile
Report the most fragile parts of this codebase, with evidence from Hunch.
safe-change
Trace, implement, test, and independently review one bounded software change. Use for ordinary feature, bug-fix, or refactor work after the repository is bootstrapped; do not use for broad repository cleanup, production operations, or undefined rewrites.