debt-ledger

debt-ledger is a skill for Claude Code from yuri-semenenko/ai-engineering-workspace. It costs 61 tokens per session (391 once invoked), scanned A, original, MIT.

A read-only inventory of deliberate tradeoffs recorded in source-code comments. A tradeoff states what a solution will eventually stop being suitable for and how to upgrade it then.

In plain words
What is it for?
Use it to collect each tradeoff's file location, limit, upgrade path, and note across a repository, while separately listing malformed entries.
Why use it?
It keeps accepted technical debt visible instead of leaving it as unexplained TODO comments. It also identifies incomplete tradeoff notes that need more detail.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Good fit Use it to collect each tradeoff's file location, limit, upgrade path, and note across a repository, while separately listing malformed entries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yuri-semenenko/ai-engineering-workspace/debt-ledger
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 yuri-semenenko/ai-engineering-workspace --skill debt-ledger
Clone the repo
git clone --depth 1 https://github.com/yuri-semenenko/ai-engineering-workspace

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/debt-ledger/github.svg)](https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/debt-ledger)
Your own site
<a href="https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/debt-ledger"><img src="https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/debt-ledger/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-ledger

Your own site · 80×15
<a href="https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/debt-ledger"><img src="https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/debt-ledger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 391 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.00061 $0.00391
Opus 5.5 $0.00024 $0.00156
Sonnet 5.5 $0.00012 $0.00078
Haiku 4.5 $0.00006 $0.00039

Measured 1mo ago against content hash a39669eddec7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debt-ledger 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 1mo 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.

claude-code/.claude/skills/debt-ledger/SKILL.md · 37 lines

What it actually says

Debt Ledger

Surface every deliberate, named tradeoff in the codebase so accepted debt stays visible instead of rotting as an anonymous // TODO.

Convention being collected

The persona's tradeoff annotation (see CLAUDE.md):

// TRADEOFF(ceiling: <what this solution maxes out at>; upgrade: <path when the ceiling is hit>): <short note>

The comment marker varies by language (//, #, --, <!-- -->). Match the TRADEOFF( token, not the comment syntax.

Steps

  1. Grep the repo for the TRADEOFF( token across source files (respect .gitignore; skip vendored/node_modules).
  2. Parse each hit into: file, line, ceiling, upgrade path, note.
  3. Flag malformed annotations — a TRADEOFF that omits ceiling: or upgrade: is incomplete; list it under a separate "needs detail" group rather than silently dropping it.
  4. Report as a single ledger.

Output

TRADEOFF ledger — <N> entries (<M> need detail)
Location (file:line) Ceiling Upgrade path Note

Then a "needs detail" list for malformed entries. Do not editorialize or auto-fix — this is a read-only inventory. If zero annotations exist, say so plainly (it may mean the convention is not being used, not that there's no debt).

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. 1mo ago Changed · +61 tokens per session a39669eddec7
  2. 3mo ago First seen · 37 lines · 0 tokens per session scan A 79aca5cbb927

Subscribe to this mod's changes

debt-ledger is a skill published in the GitHub repository yuri-semenenko/ai-engineering-workspace (4 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 391 once invoked, about $0.0002 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-08-31.

Related

debt-ledger compared with skills from other repositories

debt-ledger next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debt-ledgeryuri-semenenko/ai-engineering-workspaceSkill43d agoMITA61Claude Code
awesome-copilot-plugin-reviewgithub/awesome-copilotSkill42ktodayMITA53Claude Code, Codex
code-reviewgithub/awesome-copilotSkill42ktodayMITA27Claude Code, Codex
spec-kitty-mission-reviewPriivacy-ai/spec-kittySkill1.7k13d agoMITA155Claude Code, Codex
spec-kitty-runtime-reviewPriivacy-ai/spec-kittySkill1.7k13d agoMITA85Claude Code, Codex
mcp-server-reviewpnp/copilot-promptsSkill9196d agoMITA93Claude Code, Codex
code-review-csharppnp/copilot-promptsSkill9196d agoMITA66Claude Code, Codex