lean-debt

lean-debt is a skill for Claude Code from Snowflake-Labs/cocoplus. It costs 0 tokens per session (1,383 once invoked), scanned A, original, MIT.

A debt-reporting tool that finds marked shortcuts across a project and ranks them by how soon they may become limiting problems and how old they are.

In plain words
What is it for?
Use it before sprint planning or a release gate to review simplified areas, their limits, and the conditions that should trigger upgrades.
Why use it?
It turns scattered comments about deferred work into an ordered list for planning and release decisions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it before sprint planning or a release gate to review simplified areas, their limits, and the conditions that should trigger upgrades.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/snowflake-labs/cocoplus/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 Snowflake-Labs/cocoplus --skill lean-debt
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/lean-debt"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/lean-debt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,383 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.00000 $0.01383
Opus 5.5 $0.00000 $0.00553
Sonnet 5.5 $0.00000 $0.00277
Haiku 4.5 $0.00000 $0.00138

Measured 20d ago against content hash 56f89a36bc04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 20d 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.

.cortex/skills/cocolean/lean-debt/SKILL.md · 153 lines

How it starts

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

Objective

You are executing $lean debt — the CocoLean shortcut debt ledger. Harvest all cocoplus: comment markers across the CocoPod, assess ceiling imminence, and produce a ranked deferral report. Run this before sprint planning and before any release gate.

Before proceeding, verify that .cocoplus/ exists. If not, output: "CocoPlus is not initialized. Run $pod init first." Then stop.

Step 1 — Run Deterministic Marker Harvest

invoke cocolean/lean-debt-engine

Run the command directly with Node. Do not wrap it in PowerShell redirection such as 2>&1; stderr handling differs across shells and can corrupt the JSON output.

The script:

  1. Scans all .sql, .js, .md, .yaml, .json files in the CocoPod for cocoplus: comment markers
  2. Extracts the three required fields from each marker: what was simplified, ceiling condition, upgrade trigger
  3. Calculates ceiling imminence from current project metrics (from dora-snapshot.json, flow.json, meta.json)
  4. Outputs a JSON array of debt records sorted by (ceiling_imminence × days_since_annotation)

Read the JSON output.

Step 2 — The cocoplus: Comment Protocol

A valid cocoplus: marker looks like this:

-- cocoplus: simplified=single-warehouse routing; ceiling=will fail when concurrent agent count >20; trigger=when $build spawns >20 agents in one run
// cocoplus: simplified=linear scan for seed matching; ceiling=scan time exceeds 5s above 500 seeds; trigger=when $seed list reports >500 entries

Three required fields (pipe-delimited or semicolon-delimited):

  • simplified= — one sentence describing the shortcut taken and why
  • ceiling= — the condition under which this shortcut fails or requires rework
  • trigger= — the specific event that should prompt addressing the ceiling

Markers missing any required field are reported as malformed but not blocked.

Step 3 — Produce Ranked Deferral Report

Write the report to .cocoplus/lifecycle/lean-debt.md and display a summary. The summary must include a compact dashboard table grouped by imminence and a trigger surface listing the next concrete events that would force action.

Read the full file on GitHub · 153 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. 20d ago Changed 56f89a36bc04
  2. 1mo ago First seen · 153 lines · 0 tokens per session scan A 4c77cbd62221

Subscribe to this mod's changes

lean-debt is a skill published in the GitHub repository Snowflake-Labs/cocoplus (726 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,383 tokens. 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-03.