design-tests

design-tests is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 107 tokens per session (3,312 once invoked), scanned A, original, MIT.

A guided method for designing and writing tests for a feature, code target, or bug. It aims for tests that would fail for a realistic bug and finishes with a passing test suite.

In plain words
What is it for?
Use it to add coverage, create a reproduction test for a bug, decide what behaviour to test, or write tests for a new feature.
Why use it?
It avoids adding tests that merely repeat the implementation or give false confidence. It also helps choose a target when the request does not name one.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add coverage, create a reproduction test for a bug, decide what behaviour to test, or write tests for a new feature.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/design-tests
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 Arasz/ai-raccoon --skill design-tests
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/design-tests/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/design-tests)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/design-tests"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/design-tests/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 design-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/design-tests"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/design-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,312 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.00107 $0.03312
Opus 5.5 $0.00043 $0.01325
Sonnet 5.5 $0.00021 $0.00662
Haiku 4.5 $0.00011 $0.00331

Measured yesterday against content hash 677bc1187a49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/red_proof.py, scripts/scan_uncontrolled_resources.py), 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.

.ai-badger/skills/design-tests/SKILL.md · 219 lines

How it starts

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

design-tests

A test earns its place by failing under a plausible bug. This skill gets a suite designed and written to that standard, target named or not — and it finishes green, not at the first red.

This is one ruleset used twice. It sits beside review-tests because every rule has a review view and three have no design view — not because review owns it.

Read ../review-tests/references/principles.md before Stage 1 and ../review-tests/references/universal.md before Stage 2 — both are short, and both apply to every stage below regardless of what the target turns out to be.

Two ways in

  • A target is named (a file, a symbol, a behaviour, a bug report) → go straight to Stage 1.
  • No target is named → Stage 0 works one out; do not guess.
  • The target is an existing suite someone wants judged, not written → that is review-tests' job, not this one's — hand off there.

Stage 0 — Work out the target

Numbered so each step is a command to run, not a judgment call; the agent runs it, never reasons about it.

  1. Uncommitted or unpushed production change? git status --porcelain; git diff --stat. Any non-test source file changed → target = the changed behaviours there. Stop — this is the common case and the cheapest one to check.
  2. A bug, stack trace, incident, or failing report in the invocation? → target = a reproduction test for that defect, written before any fix. Stop.
  3. A coverage artifact already on disk and newer than the last commit (coverage*.json, lcov.info, coverage.cobertura.xml)? → rank its uncovered files by step 5's bands below. Do not run a fresh coverage pass just to pick a target — step 4 answers the same question faster.
  4. Which production files have no test file at all? comm -23 <(sorted source stems) <(sorted test-file stems) → the candidate set.
  5. Rank the candidate set, stopping at the first non-empty band: (a) auth/identity, (b) money, compensation, pricing, quota, (c) an explicit state machine or status enum, (d) time, schedule, retry, expiry, (e) anything writing to a datastore or replayable, (f) an external I/O boundary, (g) everything else — pure functions last, they are the cheapest to add later.
  6. Top band is a single unit → target = it. A tie (2+ candidates in the top band) → present the tie with its evidence and ask; never pick silently.
  7. Candidate set empty — everything already has a test file? → this is not a design job. Say so ("every production file has a test file; whether those tests can fail is review-tests' question") and offer the handoff. Do not pad the suite to manufacture work.
  8. Stop and say so when: no test project, runner or script exists anywhere (the target is the harness itself — ask); the repo is a monorepo and the diff spans packages with different runners (ask which); steps 1–5 all came back empty (report the commands run and their output, and ask for a target — a guessed target burns a full design cycle on the wrong unit).

Read the full file on GitHub · 219 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. yesterday First seen · 219 lines · 107 tokens per session scan A 677bc1187a49

Subscribe to this mod's changes

design-tests is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 107 tokens to every session and 3,312 once invoked, about $0.0004 per session on Opus 5.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-12-05.

Related

design-tests compared with skills from other repositories

design-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-testsArasz/ai-raccoonSkill7todayMITA107Claude Code, Codex
test-runnerPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA59Claude Code
compiler-11897630FuRongJun-1999/dsh-memorySkill778todayMITA83Claude Code
cartographer-kb-createBeppeTemp/cartographerSkill74yesterdayApache-2.0A53Claude Code, Codex
cartographer-kb-source-authorBeppeTemp/cartographerSkill74yesterdayApache-2.0A106Claude Code, Codex
cartographer-feedbackBeppeTemp/cartographerSkill74yesterdayApache-2.0A83Claude Code, Codex
cartographer-cliBeppeTemp/cartographerSkill74yesterdayApache-2.0A37Claude Code, Codex