Skip to content
Back to skills

Add Waste Check

ASecurity

Add a new waste line (a detector for a specific waste pattern, e.g. a retry loop or a needless model upgrade) to the aireceipts receipt. Use when the user asks to detect a new waste pattern, add a waste check, or flag a specific inefficiency.

  • 31 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 23, 2026
ai-agentsrust

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add anandgupta42/aireceipts --skill add-waste-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Waste Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Waste Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandgupta42-add-waste-check/badge)](https://www.skillsdirectory.com/skills/anandgupta42-add-waste-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-waste-check
description: "Add a new waste line (a detector for a specific waste pattern, e.g. a retry loop or a needless model upgrade) to the aireceipts receipt. Use when the user asks to detect a new waste pattern, add a waste check, or flag a specific inefficiency."
trigger: /add-waste-check
---

# /add-waste-check — one waste pattern, one pure function

## 1. Spec first

`/write-spec` with a kill criterion: does this pattern actually occur in real
transcripts, at what frequency, and is it non-redundant with an existing waste check?
If you can't point to a real occurrence, don't build it yet.

## 2. Shape

A waste check is a **pure function** — `(session) => WasteLine[]` — deterministic, no
model calls, no network (I1). It lives in `src/pricing/waste/<name>.ts` and is added to
the waste-check registry (find the existing one; don't create a second).

Every emitted `WasteLine` must be traceable to specific tool calls in the transcript
(I3) — no aggregate "this session seemed wasteful" without pointing at the calls.

## 3. Near-zero false positives is the bar

This is a cost tool, not a judgement tool (I6) — one false "waste" flag erodes trust
fast. Ship with:
- **Positive fixtures:** real transcripts where the pattern occurs, named and committed.
- **Negative fixtures:** real transcripts that look similar but must NOT fire — these
  are the actual discipline; write more of these than positives.
- An **eval-corpus entry**: add the expected result to the eval corpus so CI fails if
  precision drops below the bar the spec sets.

## 4. Gate

Unmasked verification block, plus the FP battery (positives fire, negatives silent).
`src/pricing/**` changes must not regress the Stryker mutation score.

## 5. Land

`/build-spec` as usual. If in the `/improve` loop, the value gate (a corpus you didn't
author as fixtures) applies in addition to the FP battery above.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.