/assist-plugin:create-test [spec-file | feature-name] [language]from assist-plugin
Generates black-box acceptance-criteria tests from specs without reading implementation. Enumerates input space (valid, invalid, boundary, null, type-mismatch, injection) per criterion with traceability chains.
Ships in assist-plugin. 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.
Read when SKILL.md points to them.
Generate test files from acceptance criteria, spec Scenarios, and public interfaces, without reading implementation. Produces input-space-enumerated black-box tests with traceability chains.
Hard rule, not a tool restriction. Never open, read, or reference the body of an implementation file. Read only:
#### Scenario: blocks in a spec's ### Requirement: sectionsIf you need to know what a function does, read its signature, docstring, and the spec's Scenario; never read the function body. If a signature is missing and you cannot understand the interface from the spec alone, end in NeedsInput at AssembleContext and name the undocumented interface (see States).
Per the target language, load one reference from references/test-frameworks/:
go.md for Go (testing, testify)rust.md for Rust (cargo test, assertion frameworks)python.md for Python (pytest, fixtures, parametrization)typescript.md for TypeScript (vitest, jest)javascript.md for JavaScript (native test() runner, or ESM/CommonJS options)kotlin.md for Kotlin (JUnit5, Kotest)cpp.md for C++ (Catch2, GoogleTest)Also load references/black-box-methodology.md to apply the enumeration checklist.
For every Scenario (acceptance criterion), build the input space:
null/nil/None, empty string, empty collection, uninitialized fieldChoose 3–5 representatives per category. Write a comment on each test explaining which category it covers and why (e.g., "Boundary: max string length per RFC 2822").
Every test file and test case must carry a traceability comment that chains from the acceptance criterion up to the spec and requirements:
// [AC-2 | SPEC-003 | FR-045 | UR-012 | BR-008]
or shorter if not all links exist:
// [AC-1 | SPEC-002 | FR-010]
// [SPEC-001 | FR-020] // No AC ID in this spec
Rules:
AC-N: Scenario index within the requirement (required if reading a spec with Scenarios)SPEC-NNN: Spec document ID (required)FR-NNN, UR-NNN, BR-NNN, NFR-NNN: Requirements IDs from upstream docs (include if a requirement doc references them)For unit tests, place them alongside implementation (language convention: test subdirectory, _test.go, .spec.ts, Test.java). For API endpoint tests, see references/black-box-methodology.md "Integration-level endpoint tests" section.
Output: one test file per public interface or per feature, depending on granularity. Name: [function_name]_test.[ext] or [feature_name].test.[ext], matching the language convention.
create-test is a finite-state automaton (rules T1 to T9 in fsa-template.md). Follow the states in this order and do not skip one. Every model state ends with one line Outcome: <value>, and that value picks the next state. The steps under How It Works are the work inside AssembleContext (step 1), PlanCoverage (steps 2 and 3), and WriteTests (step 4).
| State | Kind | Does | Outcome -> next state |
|---|---|---|---|
| Intake | check | Spec path present and readable; every ### Requirement: has a #### Scenario:; record the list of source IDs | ok -> AssembleContext; no-spec -> NeedsInput; scenario-missing -> Error(precondition-failed) |
| AssembleContext | check | Read Scenarios, requirement documents, and public signatures only; pick the framework reference | ready -> PlanCoverage; interface-undocumented or framework-unknown -> NeedsInput |
| PlanCoverage | model | Map each source ID to planned tests with its input-space categories, or list it as uncovered with the reason | mapped -> CheckCoverage |
| CheckCoverage | check | Every Intake ID appears in the map | complete -> WriteTests; gaps with rounds < 2 -> PlanCoverage; gaps with rounds = 2 -> Error(budget-exhausted) |
| WriteTests | model | Write test files to test paths only | written -> SelfCheck; needs-non-test-path -> Error(policy-rejection) |
| SelfCheck | check | Re-read each file. Every path matches the test-path rule, every test has a traceability comment, and every cited ID exists (Grep). Compile and run are not-run (skipped) because the agent has no Bash | clean -> Done; issues with fixes < 2 -> WriteTests; issues with fixes = 2 -> Error(budget-exhausted) |
| Done, NeedsInput, Error | terminal | End with the terminal block below | none |
Counters: rounds counts PlanCoverage passes after a CheckCoverage gaps. fixes counts WriteTests passes after a SelfCheck issues.
NeedsInput carries numbered questions and resume_at (the state that asked). /do asks the user and resumes the same agent with the answers.
When create-test runs inside a dispatched agent, the final message ends with this block (fsa-template.md). verdict is covered=N uncovered=M: N counts source IDs with at least one test, M counts source IDs listed as uncovered. Name each uncovered ID and its reason in the prose above the block. skipped is compile not-run (skipped).
fsa: developer-tester/1
state: Done
trace: Intake > AssembleContext > PlanCoverage > CheckCoverage > WriteTests > SelfCheck > Done
artifact: tests/auth/login.test.ts
verdict: covered=7 uncovered=1
skipped: compile not-run (skipped)
out_of_scope: none
error_class: none
questions: none
resume_at: none
Error(precondition-failed) at Intake and ask the user to complete the spec first.Error(policy-rejection), as does a path with a dot-prefixed segment, a file named CLAUDE.md or AGENTS.md, or a path over 4096 characters or containing NUL, even under a test glob.testRejectsNullInput_throwsTypeError (good), test1 (bad).references/black-box-methodology.md (opens in a new tab)references/test-frameworks/cpp.md (opens in a new tab)references/test-frameworks/go.md (opens in a new tab)references/test-frameworks/javascript.md (opens in a new tab)references/test-frameworks/kotlin.md (opens in a new tab)references/test-frameworks/python.md (opens in a new tab)references/test-frameworks/rust.md (opens in a new tab)references/test-frameworks/typescript.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
high22 skills in this plugin
/askAnswer questions using repository search and optional web research. Searches repo files first. Add --web to also search the web when repo context is insufficient. Always cites sources./branchManage git branches. Create feature/bugfix/release branches with standard naming, switch branches with stash support, list all branches, clean up merged worktrees and their branches, and clear the Go build cache./bumpSemantic version bumping with automated changelog generation. Detects version files, determines bump type from commits or explicit input, updates versions, generates changelog, and commits with optional git tag.npx claudepluginhub tjmonsi/assist-marketplace-plugin --plugin assist-pluginOther plugins' skills for the same job