/agent-skills:blackbox-test-casesfrom agent-skills
Generate exhaustive, non-negotiably rigorous black-box test case descriptions (Given/When/Then, not code) for a public API's external contract — never its implementation. Use for zero-tolerance test coverage, an extremely strict/exhaustive black-box test case sweep, or whenever "thorough" test-case generation isn't thorough enough. Produces an API handoff file, one case file per sub-agent — each is its own source of truth — and a master index file pointing at all of them. Every case carries a checkbox so a later implementing agent can track what's been turned into runnable tests. This skill never writes runnable tests itself.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill for an unusually strict, exhaustive black-box test-case sweep over a public API's contract. This is not "write some reasonable tests" — it is a zero-tolerance pass against every precondition, postcondition, error path, boundary, and stateful interaction the API's contract implies, produced by agents that are structurally forbidden from ever reading the implementation that would let them cheat.
Above all, this skill should push toward completeness that is checkable, not assumed. Do not accept "I covered the main cases." Every documented contract clause either has a corresponding test case or is explicitly named as a gap. There is no third option.
This pipeline deliberately does not merge sub-agent output into one list and does not dedupe against existing tests. Every case-generating sub-agent writes its own file and stands fully behind its own content — completeness- and quality-checking happens before that file is written (self-review inside the spawn), not afterward by a later stage rewriting or pruning it. The only downstream artifact is a small index file that points at these sub-agent files; it never contains case content itself.
Start from this baseline:
Perform an exhaustive black-box test-case sweep of the target API's external contract — signatures, documented preconditions/postconditions, error behavior, side effects, and stateful/sequencing constraints. Derive every case from what a caller can observe, never from how the implementation achieves it. Be ambitious about coverage: assume every precondition has a violation case, every boundary has an edge case, every documented error has a trigger case, and every stateful method has at least one interaction case with something else. Be extremely thorough and rigorous. Measure twice, cut once — an uncovered contract clause is a defect in this skill's output, not a stylistic nit.
Be ambitious about exhaustiveness.
The implementation is never read by any case-authoring agent — this is structural, not a suggestion.
Zero tolerance for tautological cases.
Every case needs concrete values, not placeholders.
Statefulness and interaction coverage is mandatory, not optional.
Existing-test overlap is intentionally not checked by this pipeline.
Coverage completeness must be a checkable claim, not a vibe.
Given a filesystem-safe <Target> token derived from the resolved type/module:
<Target>.api-handoff.md — Stage 1 output (orchestrator-written).<Target>.cases.<method-slug>.md — one per Stage 2 fan-out spawn, written by
that spawn directly.<Target>.cases.interactions.md — Stage 2b output, written by that spawn
directly (omitted if the interaction pass is justifiably skipped).<Target>.blackbox-index.md — the final pointer file, orchestrator-written.All are temporary, uncommitted, repo-root files. No .gitignore needed.
You (the orchestrating agent) never read the implementation and never author a
single test case yourself. Your job is to resolve the target, dispatch every
stage below as an Agent spawn, collect only the compact summaries described
below (never rewrite or re-author case content), persist the handoff file
verbatim, and assemble the index file. If you catch yourself writing a
Given/When/Then in your own words, editing a case for wording, or opening an
implementation file "just to check," stop — that is exactly the contamination
this skill exists to prevent.
Resolve the target. Path and/or free-form description. You may search to
locate files/symbols, but do not read method bodies while doing so. Derive
the <Target> token.
Stage 1 — Handoff sub-agent (Agent, subagent_type Explore). Reads the
implementation and any existing project domain docs (CONTEXT.md-equivalent,
if present), and returns a handoff containing only externally-observable
contract facts, structured as:
## Types
### <TypeName>
<shape/constraints, valid vs invalid values>
## Methods
### <Method signature>
- Preconditions: ...
- Postconditions / return contract: ...
- Errors: ...
- Side effects: ...
- Sequencing / statefulness notes: ...
- References: <Type names this method's signature involves>
Undocumented items are written down thin, not guessed at or confidence-tagged.
Explore cannot write files, so the orchestrator writes the returned report
verbatim to <Target>.api-handoff.md at the repo root.
Scope preview (informational, non-blocking). Count method entries, tell the user the fan-out size, continue immediately without waiting.
Stage 2 — Fan-out, one Agent (subagent_type general-purpose) per
method, in parallel. Each spawn receives only: that method's handoff entry,
plus the full ### <TypeName> entries for every type in its References:
line, plus the file-naming and templates below. Explicit instructions:
<Target>.cases.<method-slug>.md, using the Case File Template below.Stage 2b — Interaction-pass agent, one Agent (subagent_type
general-purpose), full handoff as input, dedicated to cross-method/stateful
sequence cases per Standard 4. Same self-review, same direct-write, same
compact-summary-only return, writing to <Target>.cases.interactions.md.
Skip only if the handoff has a single method with no state — name that
justification explicitly in the final report if skipped.
Assemble the index. Using only the compact summaries collected in steps
4–5 (never the case files' full content), the orchestrator writes
<Target>.blackbox-index.md using the Index File Template below, including
the Progress checklist section with every file initialized to 0/<n> (no
case has been implemented yet at generation time). This is bookkeeping —
listing files, counts, and self-reported gaps — not authoring or merging
test-case content, so the orchestrator does this step itself without
spawning another agent.
Every Stage 2 / 2b file uses this shape:
# <method signature or "cross-method interactions"> — black-box test cases
**Target:** <Target>
**Source handoff:** <Target>.api-handoff.md
## Coverage checklist (self-reported)
- [ ] Every documented precondition has a violation case
- [ ] Every documented error/exception path has a trigger case
- [ ] Every boundary implied by referenced types has a case
- [ ] Side effects / ordering constraints have a case, or are N/A (no state)
- [ ] Every Given/When pins concrete values — no placeholders
- [ ] No case leaks implementation mechanism
**Gaps (explicit):** <name anything left uncovered and why, or "none">
## Cases
### <case name>
- [ ] Implemented
**Category:** happy path | boundary | error | state-sequence
**Given:** ...
**When:** ...
**Then:** ...
**Rationale:** ...
Repeat the ### <case name> block per case. The - [ ] Implemented line is the
tracking mechanism described below — it must be the first line under the case
heading, verbatim, so it stays greppable.
# <Target> — black-box test case index
**Generated by:** the `blackbox-test-cases` skill
(`${CLAUDE_PLUGIN_ROOT}/skills/blackbox-test-cases/SKILL.md`) — read that file for the full
pipeline, file-naming, and status-tracking conventions this index and its
linked case files follow.
**Handoff:** <Target>.api-handoff.md
This file is a pointer index only. It contains no case content — each linked
file is authored independently by its own sub-agent and is the sole source of
truth for its cases. Existing-test overlap was not checked (Standard 5) — the
agent that implements runnable tests from these cases should check the
existing suite itself.
## Progress checklist (authoritative — read this, not the case files)
This checklist is the single place to answer "what's left?". A later agent
should never need to open or grep a case file just to determine status — read
this section only. Whenever a downstream agent flips a case's
`- [ ] Implemented` to `- [x]` in a case file, it must also bump that file's
`Done` count below and check the file's box once `Done == Total`.
- [ ] `<Target>.cases.<slug>.md` — <method> (0/<n>)
- [ ] `<Target>.cases.interactions.md` — interaction/stateful cases (0/<n>)
**Overall: 0/<grand total> cases implemented.**
## Status tracking convention
Every case in every linked file starts with `- [ ] Implemented`. When a
downstream agent writes the runnable test for a case:
1. Flip that line to `- [x] Implemented` (optionally appending
`**Implemented in:** <file>:<line>`) directly in the case file.
2. Update the Progress checklist above in this same index file: bump that
file's `Done` count, and check its box once `Done == Total`.
Keeping step 2 in lockstep with step 1 is what lets a later agent trust the
checklist instead of re-deriving it from the files. Use grep only to *audit*
the index against the files it points at if you suspect drift — not as the
normal way to check status:
grep -c '^- \[ \] Implemented' <file> # pending
grep -c '^- \[x\] Implemented' <file> # done
## Method case files
| Method | File | Total | Done | Self-reported gaps |
|---|---|---|---|---|
| <method> | `<Target>.cases.<slug>.md` | <n> | 0 | <gap summary, or "none"> |
## Interaction / stateful cases
`<Target>.cases.interactions.md` — <n> cases, 0 done, gaps: <summary, or "none">
(or: "Skipped — <justification>")
## Handoff items with zero cases anywhere
<list any method/precondition/error/boundary no sub-agent claimed, or "none — every
handoff item has at least one case per sub-agent self-report">
Every fan-out / interaction-pass spawn must be able to answer yes to each of these for its own file before writing it, or name the gap explicitly in that file's header:
Each spawn flags these in its own file's header (Gaps line); the orchestrator surfaces them again in the index's final summary:
When a spawn finds a gap in its own coverage, the fix is precision, not invention:
Be direct and specific in the final summary — this pipeline exists to make thoroughness checkable, so the report has to actually check it, not just declare success.
Good phrases:
this method has a documented "throws if already connected" precondition with zero cases against it — flagged in <Target>.cases.connect.md, not invented.interaction pass produced 6 cases in <Target>.cases.interactions.md; none flagged as gaps.this handoff entry has no doc comment and no discoverable call-site behavior; coverage here is necessarily thin — noted, not guessed.skipped the interaction pass — this target is a single pure function with no state, no sequencing to cover.Do not accept a fan-out spawn's summary that just says "coverage looks solid" without naming what was checked against what.
Report to the user, in this order:
<Target>.cases.*.md, and the index), an
explicit reminder that the output is test-case descriptions, not runnable
code, and a one-line reminder that status is tracked in two lockstep places
— the - [ ] Implemented line in each case file, and the matching row in
the index's Progress checklist — for whichever agent implements them next.This pipeline's output is not "done" merely because the files got written. Treat the following as required, not aspirational:
<Target>.cases.*.md
file.- [ ] Implemented line, verbatim, so downstream
status tracking works.0/<n> count at generation time, so a later agent can determine what's left
without opening any case file.blackbox-test-cases skill as its generator, so a cold
agent that finds these files without this conversation's context knows what
pipeline and conventions produced them.Treat any of these as a presumptive defect in the run unless the relevant case file's header names it and explains why (e.g. "undocumented, coverage necessarily thin" is an acceptable explanation; "seemed unnecessary" is not).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub joachimwedin/agent-skills --plugin agent-skills32 skills in this plugin
/brand-palettePick a primary and accent color that fit a given project and fit each other, or — given an explicit primary — pick three accent candidates that each fit the primary and the project, then generate the full Tailwind v4 color-token system (raw OKLCH scales plus the semantic layer, light and dark) for all three candidates as copy-paste CSS and a visual HTML report written into the project. Use when the user wants brand colors chosen for a project, a Tailwind color system generated from a repo, or a secondary/accent color picked to pair with a primary they already have./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./Other plugins' skills for the same job