defprod-create-area-tests

Routes test generation for all stories in a product area to per-surface sibling skills.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/defprod1/defprod-skills --skill defprod-create-area-tests-defprod1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defprod-create-area-tests
Source: https://github.com/defprod1/defprod-skills/tree/main/skills/defprod-create-area-tests
Command: npx skills add https://github.com/defprod1/defprod-skills --skill defprod-create-area-tests-defprod1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a product area contains user stories spanning multiple surfaces (UI, API, MCP, CLI), you would otherwise have to figure out which per-surface test-generation skill applies to which stories and invoke each one manually. This dispatcher walks every story in the area, groups them by effective surface, and routes each group to the right sibling skill in one pass. ## Core Features & Use Cases - Surface-aware grouping: Determines each story's effective surface from its explicit surface field or by inferring it from the story-key prefix (API-, MCP-, CLI-), with an unspecified bucket for anything else. - Routing plan with confirmation: Presents a routing table showing which sibling skill (defprod-create-ui-tests, defprod-create-api-tests, defprod-create-mcp-tests, defprod-create-cli-tests) will handle which stories, and asks before invoking. - Resilient orchestration: Invokes siblings in a stable ui → api → mcp → cli order, continues past individual sibling halts, and produces a final summary including deferred stories and inference-routed candidates for surface backfill. - Use Case: You have a STATUS area where STATUS-01 is an API story, STATUS-02 is UI, and STATUS-03 is CLI. Run the dispatcher once and it generates Playwright, Vitest, and Jest subprocess tests via the matching sibling skills without you picking them yourself. ## Quick Start Ask your agent to run /defprod-create-area-tests with your product name and area key, for example: generate tests for every story in the STATUS area of my product.

Frequently Asked Questions about defprod-create-area-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate tests for all stories in a product area at once?

Invoke the dispatcher with your product name and area key. It lists the area's stories via the DefProd MCP server, groups them by surface, shows a routing plan, and on confirmation invokes the matching per-surface test-generation skill for each group.

How are stories routed to UI, API, MCP, or CLI test skills?

Routing uses the story's explicit surface field when set, otherwise it infers the surface from the story-key prefix: API- maps to api, MCP- to mcp, CLI- to cli. Stories with other prefixes or surfaces like script, library, or other are deferred with no routing target.

When should I use the dispatcher instead of a per-surface test skill?

Use the dispatcher when an area mixes multiple surfaces and you want one invocation to cover everything. If the area is single-surface, invoking the matching sibling skill directly is more direct since the dispatcher adds no benefit.

What happens if one of the sibling test skills fails or halts?

A sibling halt is not fatal to the run. The dispatcher lets that skill halt cleanly, continues with the next surface in the ui-api-mcp-cli order, and records the halt with its reason in the final summary table.

Does the dispatcher write inferred surface values back to stories?

No. Inference is display-only and used solely to decide routing; inferred surfaces are never persisted to the story. The final summary lists inference-routed stories as candidates for manually backfilling the surface field.