lean-debt

lean-debt is a skill for Claude Code from Snowflake-Labs/cocoplus. It costs 38 tokens per session (1,378 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,378 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.00038 $0.01378
Opus 5 $0.00019 $0.00689
Sonnet 5 $0.00008 $0.00276
Haiku 4.5 $0.00004 $0.00138

Measured 4d ago against content hash 4c77cbd62221, 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 4d 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. 4d 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 (720 stars, last pushed 4d ago), licensed MIT. It adds 38 tokens to every session and 1,378 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

link-ticket-to-session

Link the current Claude Code session to a ticket (Linear, Jira, GitHub Issues, or GitHub Pull Requests) and cache its title/status in karma. Use when the user explicitly asks to link, attach, associate, or connect this session to a ticket, issue, or PR — e.g. "/link-ticket-to-session ABC-123", "link this session to…

JayantDevkar/claude-code-karma · 91 tokens

task-dependency-patterns

Task Management patterns with TaskCreate, TaskUpdate, TaskGet, TaskList tools. Decompose complex work into trackable tasks with dependency chains. Use when managing multi-step implementations, coordinating parallel work, or tracking completion status.

yonatangross/orchestkit · 51 tokens

factory-triage

Triage a Factory work item's issue — trace history, understand architecture, diagnose root cause, then advance the stage.

mastra-ai/mastra · 27 tokens

herdr-kit-workflows

Set up and operate Herdr Kit safely: install and configure the plugin and Mastra Code integration, manage Review and Work repository scope, open primary repository workspaces, synchronize managers, materialize or dematerialize managed worktrees, and update Herdr Kit settings or shortcuts.

mastra-ai/mastra · 61 tokens

herdr-manager-query

Query the authoritative global Herdr Review and Work Manager inventory, recommend actionable PR work, and explicitly materialize confirmed remote-only Review Manager records through the plugin's stable public CLI.

mastra-ai/mastra · 40 tokens

factory-complete-issue

Mark a GitHub issue as done and update its status labels.

mastra-ai/mastra · 18 tokens