/superpowers:writing-acceptance-testsfrom superpowers
Derives executable acceptance tests from specifications, acceptance criteria, or public interfaces before implementation. Enforces behavioral boundaries, contract-based coverage, and RED validation.
Ships in superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Produce executable tests and test-only fixtures from the contract. Do not implement, repair, or refactor production code.
Base tests only on supplied requirements, user stories, issue descriptions, acceptance criteria, and public interfaces such as APIs, CLI commands, protocols, schemas, headers, or documented state transitions. If expected behavior is ambiguous, report the ambiguity; do not infer private implementation details.
Existing source may be read only to discover public entry points, repository test conventions, build commands, and test boundaries. It must not redefine the requested behavior.
Cover only behavior justified by the contract, including where applicable:
Map every test to one or more acceptance criteria. Identify uncovered criteria instead of inventing expected behavior.
Tests must be deterministic and independent of execution order. Isolate network services, databases, clocks, randomness, and external processes with explicit test fixtures or boundary doubles. Do not use unexplained sleeps when an observable readiness condition is available.
Name tests as behavioral specifications. Use Arrange-Act-Assert or Given-When-Then consistently with repository conventions.
Run the narrowest relevant test command and confirm each new test:
If a test passes immediately, determine whether the behavior already exists or the assertion is ineffective. Do not weaken or distort the contract merely to force RED. If RED cannot be demonstrated safely because required infrastructure or authorization is unavailable, report NOT_RUN with the exact prerequisite rather than claiming a valid failing test.
Return:
{
"test_files": [],
"fixture_files": [],
"criteria_coverage": [
{ "criterion": "string", "tests": [] }
],
"commands_run": [],
"red_evidence": [
{ "test": "string", "status": "RED | NOT_RUN", "reason": "string" }
],
"uncovered_criteria": [],
"implementation_handoff": []
}
Include concise human-readable notes when needed. The handoff may describe observable behavior the Implementer must satisfy, but it must not prescribe or contain production implementation.
Stop and report rather than modifying production code when the public interface is missing, the specification is contradictory, the permitted test paths are unknown, or valid RED evidence would require an unauthorized external or destructive action.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
18 skills in this plugin
/assistant-notebookConsult and maintain the user's persistent Assistant Notebook in ChatGPT Library or on the local filesystem as a secondary recall aid and index. The current conversation and other available context are primary and usually more complete. Consult it once when starting a substantive working context or restoring continuity, then reuse the recovered context without rereading the notebook on every request. Reconsult only when needed for a missing fact, older decision, project switch, or context loss. Update it after meaningful progress with verified outcomes, decisions, files, blockers, and next steps./brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies/executing-plansUse when you have a written implementation plan to execute in a separate session with review checkpoints/finishing-a-development-branchUse when implementation is complete, all tests pass, and you need to decide how to integrate the work/mem0-memoryUse optional Mem0 memory tools for focused cross-session recall and short verified durable facts. Use when the user asks to remember or forget something, when resuming work that may need prior context, or after verified progress creates a stable fact worth retaining.npx claudepluginhub pickleshell/next-level-agent --plugin superpowers