negative-invariant-testing

negative-invariant-testing is a skill for Claude Code from iamakbarsha1/whetstone. It costs 120 tokens per session (926 once invoked), scanned A, original, CC-BY-4.0.

A testing method for rules that must never be broken, such as never logging secrets or calling a forbidden API. It checks the system's structure so the forbidden capability cannot exist unnoticed.

In plain words
What is it for?
Use it to test safety and architecture constraints involving funds, secrets, APIs, database writes, or event-loop blocking.
Why use it?
Ordinary behavior tests may miss a rule that is never triggered, while a structural test can detect the capability itself.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the whetstone plugin — 24 skills shipped together

Good fit Use it to test safety and architecture constraints involving funds, secrets, APIs, database writes, or event-loop blocking.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iamakbarsha1/whetstone/negative-invariant-testing
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 iamakbarsha1/whetstone --skill negative-invariant-testing
Clone the repo
git clone --depth 1 https://github.com/iamakbarsha1/whetstone

Made for: Claude Code.

Or install whetstone, the plugin that ships this one along with the rest of its 24 skills.

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 negative-invariant-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/iamakbarsha1/whetstone/negative-invariant-testing.svg)](https://agentmods.dev/skills/iamakbarsha1/whetstone/negative-invariant-testing)
Your own site
<a href="https://agentmods.dev/skills/iamakbarsha1/whetstone/negative-invariant-testing"><img src="https://agentmods.dev/badge/skills/iamakbarsha1/whetstone/negative-invariant-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 926 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 unknown 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.00120 $0.00926
Opus 5 $0.00060 $0.00463
Sonnet 5 $0.00024 $0.00185
Haiku 4.5 $0.00012 $0.00093

Measured 8d ago against content hash 3a34f3080102, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

negative-invariant-testing 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 8d 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.

skills/negative-invariant-testing/SKILL.md · 79 lines

The source is not reproduced here

Licensed CC-BY-4.0

The repository is licensed CC-BY-4.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 8d ago First seen · 79 lines · 120 tokens per session scan A 3a34f3080102

Subscribe to this mod's changes

negative-invariant-testing is a skill published in the GitHub repository iamakbarsha1/whetstone (4 stars, last pushed 22d ago), licensed CC-BY-4.0. It adds 120 tokens to every session and 926 once invoked, about $0.0006 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-08-31.

Related

Other skills, from other repositories

promptfoo-redteam-setup

Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when…

promptfoo/promptfoo · 99 tokens

promptfoo-provider-setup

Configure promptfoo providers or redteam targets for hosted models, live HTTP APIs, Python/JavaScript local scripts, agent SDKs, or multi-input systems. Use when connecting promptfoo to the system under test, mapping vars, auth env vars, request bodies, response transforms, or static-code-derived provider wrappers. Do…

promptfoo/promptfoo · 91 tokens

promptfoo-redteam-run

Run, rerun, inspect, and QA promptfoo redteam scans from generated redteam YAML or an existing redteam setup config. Use when executing promptfoo redteam eval or promptfoo redteam run, exporting results, triaging attack success rate, grader failures, target errors, filter/rerun commands, reports, or CI gates. Do not…

promptfoo/promptfoo · 94 tokens

discount-review

Inspect the discount policy fixture with a repeatable review checklist and helper script.

promptfoo/promptfoo · 18 tokens

code-review

Reviews code for bugs, security issues, and best practices.

promptfoo/promptfoo · 11 tokens

token-skill

Use this skill when the user explicitly asks to use token-skill and wants the special token.

promptfoo/promptfoo · 23 tokens