ears-tests

ears-tests is a skill for Claude Code, Codex from AdamBien/airails. It costs 206 tokens per session (1,327 once invoked), scanned A, original, MIT.

A test-generation method that turns EARS requirements—structured statements describing when a system should produce a response—into parameterized tests, meaning one test structure with many labeled cases.

In plain words
What is it for?
Use it to create one table-driven test per requirement group and one labeled input row for each requirement statement.
Why use it?
It keeps each requirement statement linked to a visible test case, making missing tests and mismatches easier to spot. It does not prescribe a particular programming language or test framework.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/adambien/airails/ears-tests
Any agent
npx skills add AdamBien/airails --skill ears-tests
Clone the repo
git clone --depth 1 https://github.com/AdamBien/airails

Made for: Claude Code, Codex.

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 ears-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/adambien/airails/ears-tests.svg)](https://agentmods.dev/skills/adambien/airails/ears-tests)
Your own site
<a href="https://agentmods.dev/skills/adambien/airails/ears-tests"><img src="https://agentmods.dev/badge/skills/adambien/airails/ears-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 206 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00206 $0.01327
Opus 5 $0.00103 $0.00664
Sonnet 5 $0.00041 $0.00265
Haiku 4.5 $0.00021 $0.00133

Measured 5d ago against content hash b1b2bc4afa1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

ears-tests 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 5d 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.

bce/ears-tests/SKILL.md · 74 lines

How it starts

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

Turn EARS requirement statements into parameterized tests. The leverage is structural: every EARS pattern is a (condition → response) tuple, and an SBCE requirement group already collects statements that share one boundary operation — same arrange/act skeleton, only the data differs. That is the textbook precondition for parameterization, so the mapping is mechanical.

Own only the transform and the trace. The concrete test syntax is the composed stack skill's call — never name a runner or framework verb here. When the generated tests exercise the running system, the system-tests skill owns the contract (black box, coordinates as configuration, total verdict reporting).

The mapping

  • One requirement group Rn → one parameterized test method (the shared boundary op is the body).
  • One statement Rn.m → one row in the parameter source.
  • The statement id Rn.m is the row's display name — so the spec↔test binding stays per-statement and grep-visible, exactly as SBCE requires (a removed id retires its row; a row with no statement is drift).
  • The id MUST surface in the runner-visible case label — as a string literal or as a symbol whose display form is the literal id. An id that appears only in a comment is not a trace.
  • The EARS pattern fixes the row's role and shape — you do not invent the columns, you read them off the pattern.

EARS pattern → row shape

The system is always the BC. Each pattern decomposes into the arrange/act/assert columns of a row:

Pattern Statement shape Arrange (state) Act (trigger) Assert (response) Role
Event-driven When <trigger>, the BC shall <response> trigger response happy
Unwanted-behaviour If <trigger>, then the BC shall <response> bad/invalid trigger rejection / error unhappy
State-driven While <precondition>, the BC shall <response> precondition (implicit) response stateful
Complex While <precondition>, when <trigger>, the BC shall <response> precondition trigger response full tuple
Optional-feature Where <feature>, the BC shall <response> feature enabled trigger response gated
Ubiquitous The BC shall <response> invariant single case (least parameterizable — a plain test is fine)

Read the full file on GitHub · 74 lines

Files

What ships with it

2 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. 5d ago First seen · 74 lines · 206 tokens per session scan A b1b2bc4afa1f

Subscribe to this mod's changes

ears-tests is a skill published in the GitHub repository AdamBien/airails (48 stars, last pushed yesterday), licensed MIT. It adds 206 tokens to every session and 1,327 once invoked, about $0.0010 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-30.

Related

Other skills, from other repositories

authoring-java-sdk-tasks

Writes Airflow task logic in Java, Kotlin, or any JVM language using the Airflow Java SDK. Use when the user wants to implement Airflow tasks in Java/JVM, asks about @Builder.Dag/@Builder.Task/@Builder.XCom, the Task/BundleBuilder interfaces, reading connections/variables/XComs from Java, the JSON-to-Java type…

astronomer/agents · 152 tokens

configuring-airflow-language-sdks

Configures Airflow to run language SDK tasks (Java, Go, and future native SDKs) — register a coordinator, map a queue to it, ensure the runtime/artifact on workers, and tune coordinator options. Use when the user wants Airflow to route a queue to a native-language coordinator, asks about the [sdk]…

astronomer/agents · 155 tokens

help

OrchestKit help directory with categorized skill listings. Use when discovering skills for a task, finding the right workflow, or browsing capabilities.

yonatangross/orchestkit · 30 tokens

jackson-3-migration

Migrer Jackson 2.x til Jackson 3.x (tools.jackson) i Kotlin/Java-prosjekter — automatisert OpenRewrite-pass pluss manuell Kotlin-spesifikk opprydding og verifisering.

navikt/copilot · 53 tokens

java-to-kotlin

Trinnvis Java-til-Kotlin-migrering med rammeverk-bevisste transformasjoner for Spring, Ktor og Nav-mønstre.

navikt/copilot · 35 tokens

js-gof

Apply Gang of Four and related design patterns in JavaScript and TypeScript. Use when implementing creational, structural, or behavioral patterns, or when the user mentions factories, builder, prototype, flyweight, singleton, object pool, adapter, wrapper, decorator, proxy, bridge, composite, facade, chain of…

metarhia/metaskills · 107 tokens