No slash command · from rosetta
Synthesizes Issue Tracker data, Wiki docs, and user answers into a structured Phase 4 requirements document with user stories, functional/non-functional requirements, constraints, and traceability.
Ships in rosetta. Installing the plugin adds it to Claude Code.
<testgen_flow_requirements_document_generation>
<description_and_purpose> Synthesize Issue Tracker data, Wiki documentation, and user answers into a comprehensive, structured requirements document with user stories, functional/non-functional requirements, constraints, and traceability. </description_and_purpose>
<workflow_context>
testgen-flowraw-data.md, analysis.md, answers.mdrequirements.md — primary deliverable for test case generationqa-knowledge (synthesis mode)<phase_steps>
<load_sources step="4.1">
plans/testgen-{TICKET-KEY}/raw-data.md — Issue Tracker + Wiki dataplans/testgen-{TICKET-KEY}/analysis.md — identified issuesplans/testgen-{TICKET-KEY}/answers.md — user clarifications
</load_sources><synthesize_requirements step="4.2" subagent="architect" role="Requirements engineer">
qa-knowledge (synthesis mode). The mode EMITS into this phase's <create_requirements_document> section contract; the phase OWNS the document skeleton and output path.<create_requirements_document step="4.3">
Create plans/testgen-{TICKET-KEY}/requirements.md. The qa-knowledge synthesis mode emits per its synthesis rules and its synthesis output schemas (owned internally by the skill).
Section contract (phase-owned SSoT) — the table below is the authoritative phase contract the synthesis mode MUST satisfy, not a parallel restatement. The mode's document wrapper uses the same scheme (front-matter + 10 numbered sections). If the emitted skeleton drifts from this table, the phase fails verification and re-invokes rather than accepting a divergent shape; the phase bounds the contract, the skill is the implementation.
| # | Section | Per-entry shape (synthesis schema) |
|---|---|---|
| Front-matter | Document Control + Executive Summary | (Executive Summary extended below for testgen) |
| 1 | User Stories | US-[N] entries (user-stories schema) |
| 2 | Functional Requirements | FR-[N] entries (functional-requirements schema) |
| 3 | Non-Functional Requirements | NFR-[N] entries (non-functional-requirements schema) |
| 4 | Constraints | C-[N] entries (constraints-and-dependencies schema) |
| 5 | Dependencies | D-[N] entries (constraints-and-dependencies schema) |
| 6 | Out of Scope | Explicit exclusions with rationale |
| 7 | Assumptions | A-[N] entries (assumptions-and-risks schema) |
| 8 | Risks | R-[N] entries (assumptions-and-risks schema) |
| 9 | Traceability Matrix | (Extended below for testgen) |
| 10 | Glossary | Domain terms + acronyms |
If any section is absent from the emitted document, the artifact is incomplete — re-invoke the skill or repair before declaring step 4.3 complete.
Testgen-specific additions layered on top of the canonical structure:
Executive Summary must include:
## Executive Summary
**Project**: [Project Name]
**Ticket**: [TICKET-KEY]
**Description**: [2-3 sentence overview]
**Scope Summary**:
- [Key capability 1]
- [Key capability 2]
**Sources**:
- Ticket: [TICKET-KEY]
- Wiki: [N] pages
- User Clarifications: [N] questions answered
**Source Resolution**:
- Contradictions Resolved: [Count]
- Gaps Filled: [Count]
- Ambiguities Clarified: [Count]
Traceability Matrix must include Test Scenario placeholder column:
| Requirement ID | Source | User Story | Test Scenario |
|----------------|--------|------------|---------------|
| FR-1 | Ticket DESC | US-1 | To be generated (Phase 5) |
| NFR-1 | User Answer Q5 | - | To be generated (Phase 5) |
Each User Story (US-N) carries a Definition of Done sub-block (testgen addition layered on the user-stories schema): a short done-conditions checklist (acceptance criteria satisfied, test scenarios defined, docs/config updated as applicable) so Phase 5 can derive coverage from explicit completion criteria.
All requirements must follow SMART criteria: Specific, Measurable, Achievable, Relevant, Testable.
Compact SMART exemplar (phase-level grounding so the agent emits measurable requirements rather than vague ones — full FR/NFR/US worked examples are owned by the qa-knowledge synthesis mode):
### NFR-1: Performance - Login Response Time
**Category**: Performance
**Measurement**: p95 < 200ms for the `POST /api/v1/auth/login` endpoint, measured at the load balancer over a 5-minute window at 1000 concurrent users.
**Priority**: P0 Critical
**Source**: User Answer Q5 + Wiki page "SLO catalog"
The Measurement field carries the threshold (numeric + measurement window + load condition). A non-SMART form (Login should be fast) carries no threshold and would be moved to assumptions-and-risks per the synthesis mode's NFR-threshold rule.
Coverage prompt (systematic-discovery checklist — applied per the synthesis mode's Coverage-discipline rule "include only categories the sources actually specify; do not pad"):
</create_requirements_document>
<update_state step="4.4">
plans/testgen-{TICKET-KEY}/testgen-state.md with Phase 4 complete and requirement counts (user stories, FRs, NFRs, constraints, dependencies, assumptions, risks)plans/testgen-{TICKET-KEY}/requirements.md
</update_state><validation_checklist>
requirements.md created with all required sections<failure_handling>
raw-data.md, analysis.md, or answers.md absent or empty): stop Phase 4, record which input is missing in testgen-state.md, and announce which earlier phase to resume. Note: if Phase 3 was marked SKIPPED — no questions, an empty answers.md is acceptable; proceed without it.requirements.md with full source citations (ticket quote, Wiki quote, user answer if any). Do not invent a resolution. Proceed with the rest of Phase 4 but flag the risk in the Executive Summary.qa-knowledge synthesis mode errors or returns empty): re-invoke once with the same inputs; if still failing, stop, record the skill failure, and ask the user to verify input quality. No inline per-entry fallback exists, by design — the synthesis mode is a hard dependency (canonical owner of the US/FR/NFR/C/D/A/R shapes, SMART/threshold/provenance discipline); requirement entries carry authoring discipline that does not transfer to an inline template. The phase blocks when the skill is unavailable; do NOT fabricate a partial requirements.md.</failure_handling>
- Don't copy ticket/Wiki content verbatim — synthesize and structure into proper requirements - Don't use technical implementation details in user stories — focus on user/business value - Acceptance criteria must be testable and objective, not subjective - Each user story must be independently valuable</testgen_flow_requirements_document_generation>
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub griddynamics/rosetta --plugin rosetta70 commands in this plugin
/api-aqa-flow-data-collectionPhase 1 Data Collection of api-aqa-flow2 plugins in one repository ship this exact command · first indexed Aug 20, 2026
Other plugins' commands for the same job