lean-debt

lean-debt is a skill for Claude Code from utk2103/Prompt-Studio. It costs 87 tokens per session (427 once invoked), scanned A, original, Apache-2.0.

A one-time report that collects deliberate shortcuts marked with `lean:` comments into a debt ledger. The ledger records what was simplified, its limit, and when to revisit it.

In plain words
What is it for?
Use it to scan a repository for Lean markers, group them by file and line, identify entries without an upgrade trigger, and report the totals.
Why use it?
It keeps postponed improvements visible so temporary shortcuts do not disappear into an untracked backlog.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the prompt-studio plugin — 9 skills, 3 agents shipped together

Good fit Use it to scan a repository for Lean markers, group them by file and line, identify entries without an upgrade trigger, and report the totals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/utk2103/prompt-studio/lean-debt
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 utk2103/Prompt-Studio --skill lean-debt
Clone the repo
git clone --depth 1 https://github.com/utk2103/Prompt-Studio

Made for: Claude Code.

Or install prompt-studio, the plugin that ships this one along with the rest of its 9 skills, 3 agents.

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 lean-debt

README.md
[![agentmods](https://agentmods.dev/badge/skills/utk2103/prompt-studio/lean-debt.svg)](https://agentmods.dev/skills/utk2103/prompt-studio/lean-debt)
Your own site
<a href="https://agentmods.dev/skills/utk2103/prompt-studio/lean-debt"><img src="https://agentmods.dev/badge/skills/utk2103/prompt-studio/lean-debt.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 427 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.00087 $0.00427
Opus 5 $0.00044 $0.00214
Sonnet 5 $0.00017 $0.00085
Haiku 4.5 $0.00009 $0.00043

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

Security

Grade A, and why

lean-debt 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 7d 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/lean-debt/SKILL.md · 46 lines

What it actually says

Every deliberate Lean shortcut is marked with a lean: comment naming its ceiling and upgrade path. This collects them into one ledger so a deferral can't quietly become permanent.

Scan

Grep the repo for comment markers, skipping node_modules, .git, and build output:

grep -rnE '(#|//) ?lean:' . (add other comment prefixes if your stack uses them)

Each hit is one ledger row. The space and comment prefix keep prose that merely mentions the convention out of the ledger.

Output

One row per marker, grouped by file:

<file>:<line>, <what was simplified>. ceiling: <the limit named>. upgrade: <the trigger to revisit>.

The convention is lean: <ceiling>, <upgrade path>, so pull the ceiling and the trigger straight from the comment. Want an owner per row too? add git blame -L<line>,<line>.

Flag the rot risk: any lean: comment that names no upgrade path or trigger gets a no-trigger tag, those are the ones that silently rot.

End with <N> markers, <M> with no trigger. Nothing found: No lean: debt. Clean ledger.

Boundaries

Reads and reports only, changes nothing. To persist it, ask and it writes the ledger to a file (e.g. LEAN-DEBT.md). One-shot. "stop lean-debt" or "normal mode" to revert.

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. 7d ago First seen · 46 lines · 87 tokens per session scan A 957e5a6dd068

Subscribe to this mod's changes

lean-debt is a skill published in the GitHub repository utk2103/Prompt-Studio (7 stars, last pushed 6d ago), licensed Apache-2.0. It adds 87 tokens to every session and 427 once invoked, about $0.0004 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

avoid-ai-writing

Audit and rewrite content to remove AI writing patterns ("AI-isms"). Use this skill when asked to "remove AI-isms," "clean up AI writing," "edit writing for AI patterns," "audit writing for AI tells," or "make this sound less like AI." Supports a detect-only mode, an edit-in-place mode for files, an optional voice…

conorbronsdon/avoid-ai-writing · 97 tokens

ai-writing-detector

Use when the user asks to detect, scan, audit, score, or flag AI-writing patterns without rewriting the text, including requests for a deterministic local detector result when the host can execute Node.

conorbronsdon/avoid-ai-writing · 44 tokens

preservation-verifier

Use when the user provides an original and rewritten version, asks whether a rewrite preserved protected content, or wants a deterministic check for code, frontmatter, quotes, tables, links, paths, numbers, headings, and residual AI-pattern regressions.

conorbronsdon/avoid-ai-writing · 54 tokens

avoid-ai-writing-router

Use when a request combines AI-writing audit, rewrite, file editing, voice preservation, false-positive interpretation, verification, or when the user invokes Avoid AI Writing without naming a mode.

conorbronsdon/avoid-ai-writing · 41 tokens

false-positive-reviewer

Use when a user asks what AI-writing flags mean, whether detector output proves AI authorship, or wants a careful interpretation of possible false positives, especially for academic, hiring, publication, disciplinary, or other consequential decisions.

conorbronsdon/avoid-ai-writing · 49 tokens

file-edit-in-place

Use when the user names a local file and explicitly asks to clean, rewrite, humanize, or remove AI-writing patterns in that file itself, with minimal targeted edits and post-edit verification.

conorbronsdon/avoid-ai-writing · 43 tokens