aidex-coverage

aidex-coverage is a skill for Claude Code, Codex from yacb2/aidex. It costs 193 tokens per session (2,530 once invoked), scanned A, original, MIT.

A testing guide for deciding where tests belong and which tests to run. It covers unit, component, and end-to-end testing, where end-to-end tests check complete user flows, plus fixtures and isolated test environments.

In plain words
What is it for?
Use it to select tests for a change, decide when shared setup should become a fixture, prepare disposable end-to-end environments, and resolve the project's testing profile and framework guidance.
Why use it?
It helps teams choose focused tests for each change and avoid both missing important checks and running unnecessary tests.

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/yacb2/aidex/aidex-coverage
Any agent
npx skills add yacb2/aidex --skill aidex-coverage
Clone the repo
git clone --depth 1 https://github.com/yacb2/aidex

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 aidex-coverage

README.md
[![agentmods](https://agentmods.dev/badge/skills/yacb2/aidex/aidex-coverage.svg)](https://agentmods.dev/skills/yacb2/aidex/aidex-coverage)
Your own site
<a href="https://agentmods.dev/skills/yacb2/aidex/aidex-coverage"><img src="https://agentmods.dev/badge/skills/yacb2/aidex/aidex-coverage.svg" alt="Measured on agentmods" height="20"></a>
Per session 193 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,530 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 $0.00193 $0.02530
Opus 5 $0.00097 $0.01265
Sonnet 5 $0.00039 $0.00506
Haiku 4.5 $0.00019 $0.00253

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

Security

Grade A, and why

aidex-coverage 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 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/profile-init.py, tests/test-profile-init.sh, tests/test-spec-audit-complete.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/aidex-coverage/SKILL.md · 131 lines

How it starts

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

Trigger-eval probe (test-only). As your very first action, run printenv AIDEX_TRIGGER_EVAL_MARKER. If it prints a non-empty path, also run touch "${AIDEX_TRIGGER_EVAL_MARKER}.aidex-coverage" before continuing. Then proceed with the rest of the skill body as normal. If empty/unset, ignore this block.

Coverage

Scope. Model-invocable since 2026-08-26 (decision/2026-08-26-coverage-canon-consolidation-and-targeted-runs.md, D1). Stack-agnostic since 2026-08-27 (decision/2026-08-27-aidex-is-stack-agnostic-stack-packs.md): this skill carries the doctrine — layers, selection, fixtures, the boundary gate, the profile — and no framework content; the concrete test shapes live in the stack packs the project's profile names. Precision against aidex-audit is the Not for clause; the eval set in evals/ is owed a run against this description.

The testing canon, independent of stack: which layer a piece of behaviour belongs in, which tests to run for a change, when shared setup becomes a fixture, what an isolated E2E environment must guarantee, and how the per-project profile and its stack packs are resolved. What a test looks like in a given framework is not here: the project's .context/testing-profile.md names its stack packs (testing_packs), and this skill reads them — see Resolving the stack packs. Per-project facts (ports, database names, commands, personas) live in that profile, never here — see references/14-testing-profile.md.

The full suite is a boundary gate, not a phase gate. Per change, run the narrowest selection that can observe it (/aidex-audit affected-tests --command, or the profile's single-test command, or one spec via ./test-e2e.sh e2e/<spec>.spec.ts); the whole suite runs once, at plan close-out or pre-merge (D4). Measured before this rule: 32% of test runs inside unattended sessions were full suites, E2E at ~5 min each.

What this skill is not. It does not run an audit, does not build or read module-map.json or coverage-matrix.json, does not track a finding through its lifecycle, and does not carry the suite-speed measurement procedure. All of that is aidex-audit's test-coverage playbook (skills/aidex-audit/assets/templates/methodology/test-coverage.md.template). The split is by type, not by overlap: this skill owns the reference corpus and authoring rules — including the per-module judgment-pass checklist (references/06-judgment-pass.md) that the playbook's judged layer runs; the playbook owns inventory, finding lifecycle, matrix, sweep and escalation, and is the one that executes that checklist. The one rule with a foot in both — "a coverage percentage without a declared denominator is not a measurement" (m7) — is not duplicated: the playbook runs it as an inventory-time check ("is the denominator declared? can coverage even run?"), this skill states it as an authoring rule for anyone writing a new coverage-bearing test.

Read the full file on GitHub · 131 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. 4d ago First seen · 131 lines · 193 tokens per session scan A 3ea9667f0378

Subscribe to this mod's changes

aidex-coverage is a skill published in the GitHub repository yacb2/aidex (2 stars, last pushed 6d ago), licensed MIT. It adds 193 tokens to every session and 2,530 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-31.

Related

Other skills, from other repositories

testing-strategy

Follow the testing pyramid — more unit tests, fewer integration tests, even fewer e2e tests.

halflength-ampleness75/claude-code-recipes · 0 tokens

test-software

Design, implement, and evaluate risk-based software tests across unit, integration, contract, end-to-end, and regression layers. Use when adding tests, reproducing bugs, improving coverage, diagnosing flaky tests, or defining a test strategy; do not use to change production behavior unless the user also requests…

Phelan164/codex-howto · 65 tokens

better-testing

Review and improve how tests protect critical software behavior. Use when assessing missing unit, integration, contract, or end-to-end coverage; flaky tests; weak assertions; happy-path-only tests; excessive mocking; implementation-coupled tests; low-value snapshots; slow suites; or code that is difficult to test…

NicolasYusim/better-codebase · 78 tokens

testing-strategy

Deciding what to test, at which level, and how to keep tests trustworthy. Use when writing tests, setting up a test suite, reviewing test coverage, fixing flaky tests, doing TDD, or when the user says "test", "coverage", "unit test", "integration test", "e2e", or "how do I test this".

05-deepak-patidar/claude-skills · 76 tokens

execution/testing-executor

Internal: Testing Executor. Writes unit, integration, and e2e tests. Read spec and segment. Write evidence on completion.

dynos-fit/dynos-work · 31 tokens

ios-testing

Invoke any time a user is writing iOS/Swift tests or asking why tests behave a certain way — including XCTest versus Swift Testing (@Test/#expect) choices, async ViewModel tests with @Observable or @Published, snapshot testing across device sizes, mocking protocols for dependency injection, setUp/tearDown lifecycle…

rusel95/ios-agent-skills · 134 tokens