trim

trim is a skill for Claude Code from escoffier-labs/skillet. It costs 97 tokens per session (2,985 once invoked), scanned A, original, MIT.

A testing guide for adding, reviewing, or removing tests. It keeps tests that protect real behavior or contracts and flags tests that merely repeat implementation details or duplicate stronger checks.

In plain words
What is it for?
Gating new tests, auditing one area, or pruning a whole subsystem’s test surface.
Why use it?
It helps reduce slow, brittle, low-value test suites without deleting tests merely to reduce their number.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions AGENTS.md; built for openclaw.

Part of the skillet plugin — 54 skills, 1 hook shipped together

Good fit Gating new tests, auditing one area, or pruning a whole subsystem’s test surface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/escoffier-labs/skillet/trim
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 escoffier-labs/skillet --skill trim
Clone the repo
git clone --depth 1 https://github.com/escoffier-labs/skillet

Made for: Claude Code.

Or install skillet, the plugin that ships this one along with the rest of its 54 skills, 1 hook.

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 trim

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/escoffier-labs/skillet/trim"><img src="https://agentmods.dev/badge/skills/escoffier-labs/skillet/trim.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,985 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.00097 $0.02985
Opus 5.5 $0.00039 $0.01194
Sonnet 5.5 $0.00019 $0.00597
Haiku 4.5 $0.00010 $0.00298

Measured 3d ago against content hash 600b0f23cfd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trim 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.

skillet/skills/trim/SKILL.md · 171 lines

How it starts

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

trim

A butcher trims fat so the cut is worth cooking; nobody trims by weight. This skill holds every test to one value bar: a test earns its maintenance cost by protecting behavior, a credible regression, or an independently meaningful contract. Tests that re-assert the source, repeat stronger proof, couple to implementation, or keep test-only production seams alive are fat.

Core principle: optimize for confidence, not deletion count. A deletion without written evidence is a guess, and an uncertain candidate stays.

Three modes, one value bar:

  • Authoring gate - every new or changed test, at write time. Runs alongside taste.
  • Audit - a focused, read-only-first sweep of one area for junk tests and the seams they demand. Lands as small coherent batches.
  • Campaign - prune one whole subsystem's test surface in one pass. Read references/campaign.md before starting one.

Authoring gate

Before adding any test, answer four questions. A missing answer means do not add it yet: redesign the test (a different boundary, a different assertion) until it passes the gate. It never means skipping the test. Under taste, no production code lands until a test passes this gate and fails. If an existing test already fails for the change, that test is the RED step; run it and cite it.

  1. What does it protect? An observable behavior, invariant, or independent contract.
  2. What regression makes it fail? Name a credible one.
  3. Why does existing coverage miss that failure? Each contract has one primary test owner at the strongest boundary. Another layer needs its own distinct risk, such as a transport or lifecycle failure the owner cannot reach. Prefer extending a table-driven case or shared fixture over a near-duplicate test, and consolidate duplicated setup in the refactor step of the same change.
  4. Does it need a production seam (export, flag, wrapper, injection hook) that no production caller needs? If yes, move the test to the real boundary instead.

Read the full file on GitHub · 171 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago Changed · +1 lines 600b0f23cfd2
  2. 1mo ago First seen · 170 lines · 97 tokens per session scan A 754d91754c24

Subscribe to this mod's changes

trim is a skill published in the GitHub repository escoffier-labs/skillet (4 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 2,985 once invoked, about $0.0004 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-25.

Related

Other skills, from other repositories

craft-testing

Craftsman standard for automated testing: strategy, unit/integration/e2e selection, refactor-proof design, flaky tests, mocking boundaries, deterministic data, and merge-gate policy. Use WHENEVER work touches tests: writing/reviewing tests, strategy, "add tests", "why is this flaky", "what should I test", "tests pass…

gul-labs/craftsman-marketplace · 162 tokens

critique

Adversarial design critique of the current work — render it, look at it, and argue for rejection. Run after the gates are green, never instead of them.

plugin87/ux-ui-agent-skills · 37 tokens

ship

Pre-release gate — run the full gate, responsive + render checks, then produce the release checklist (README badge/current/changelog). Use before tagging a release.

plugin87/ux-ui-agent-skills · 34 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

jamditis/claude-skills-journalism · 21 tokens

browser-test-loop

Use to actually verify a web change in a real browser instead of assuming it works — click through a flow, catch console errors, check a form submits, confirm a fix on the page. Trigger when a UI change needs proof, a bug only reproduces in the browser, or the user asks to test, check, or screenshot the running app.

OneWave-AI/claude-skills · 74 tokens

puppeteer-automation

Expert guidance for browser automation using Puppeteer with best practices for web scraping, testing, screenshot capture, and JavaScript execution in headless Chrome.

Mindrally/skills · 35 tokens