embedeval: Command for Claude Code

.claude/commands/negatives.md

negatives is a command for Claude Code from Ecro/embedeval. It costs 0 tokens per session (3,418 once invoked), scanned A, original, Apache-2.0.

A command for creating missing negative tests for cases in a test suite. A negative test checks that software rejects invalid input or handles an unwanted situation correctly.

In plain words
What is it for?
Use it to find cases without negative tests, work through them one at a time, review progress, skip or reset cases, and author the required test files.
Why use it?
It exposes gaps where code may work for normal input but fail on errors, misuse, or boundary cases. Unclear decisions are sent to the user instead of being guessed.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

This is Ecro/embedeval's own configuration. It tells Claude Code how to work on embedeval itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything embedeval configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/sync_negatives_progress.py \.

Reuse

Borrowing it

Nothing to install: this file belongs to Ecro/embedeval. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Ecro/embedeval/main/.claude/commands/negatives.md
Clone the repo
git clone --depth 1 https://github.com/Ecro/embedeval

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 negatives

README.md
[![agentmods](https://agentmods.dev/badge/commands/ecro/embedeval/negatives/github.svg)](https://agentmods.dev/commands/ecro/embedeval/negatives)
Your own site
<a href="https://agentmods.dev/commands/ecro/embedeval/negatives"><img src="https://agentmods.dev/badge/commands/ecro/embedeval/negatives/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 negatives

Your own site · 80×15
<a href="https://agentmods.dev/commands/ecro/embedeval/negatives"><img src="https://agentmods.dev/badge/commands/ecro/embedeval/negatives.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,418 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.03418
Opus 5.5 $0.00000 $0.01367
Sonnet 5.5 $0.00000 $0.00684
Haiku 4.5 $0.00000 $0.00342

Measured 2mo ago against content hash 05f729e95dd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

negatives 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 2mo 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.

.claude/commands/negatives.md · 310 lines

How it starts

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

/negatives — Interactive mutation-oracle authoring

Communication Protocol

  • Be direct. No preamble, no ceremony, no encouragement.
  • Show the user concrete content (code, check names, reference snippets) before asking questions.
  • Ask ONE decision per AskUserQuestion call — never batch multiple unrelated decisions.
  • Never guess judgment calls. If unclear, ask.
  • Never skip the oracle gate. A negative that doesn't pass oracle is not landed.

Sequentially author negatives.py for every case that lacks one, with interactive judgment gates where LLM cannot reliably decide.


Usage

/negatives                         # sync + resume — work the next pending case
/negatives --status                # sync + print progress table and exit
/negatives --case TC_ID            # sync + work a specific case
/negatives --category dma          # sync + cycle pending cases in a category
/negatives --sync                  # ONLY reconcile progress file with cases/, print diff, exit
/negatives --skip TC_ID reason     # mark TC as skipped with reason (won't revisit)
/negatives --reset TC_ID           # re-open a done case
/negatives --init                  # nuke progress file and rebuild from scratch (destructive)

Every invocation runs auto-sync first — the progress file is always reconciled with the current cases/ directory before any action. Newly added TCs (from Yocto/Linux expansion, new categories, etc.) appear automatically as pending without manual bookkeeping. Removed TCs are flagged as orphaned (not deleted — may be a rename/typo).


Progress File

Location: plans/negatives-progress.json

Schema:

{
  "version": 1,
  "generated": "YYYY-MM-DD",
  "cases": [
    {
      "case_id": "dma-002",
      "category": "dma",
      "priority": 1,
      "status": "pending | in-progress | done | skipped | orphaned",
      "started_at": "YYYY-MM-DD" or null,
      "completed_at": "YYYY-MM-DD" or null,
      "notes": "skip reason or oracle warnings" or null
    }
  ]
}

Read the full file on GitHub · 310 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. 2mo ago First seen · 310 lines · 0 tokens per session scan A 05f729e95dd5

Subscribe to this mod's changes

negatives is a command published in the GitHub repository Ecro/embedeval (13 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,418 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-08-31.