Generates a structured requirements document by synthesizing Jira data, Confluence docs, and user answers from prior phases.
Ships in core. Installing the plugin adds it to Claude Code.
agents/testgen/{TICKET-KEY}/answers.md exists with validated answersagents/testgen/{TICKET-KEY}/testgen-state.md shows Phase 3 completeGenerate comprehensive, structured requirements document by synthesizing Jira data, Confluence documentation, and user answers to clarification questions.
Read all previous phase outputs:
agents/testgen/{TICKET-KEY}/raw-data.md - Jira + Confluenceagents/testgen/{TICKET-KEY}/analysis.md - Identified issuesagents/testgen/{TICKET-KEY}/answers.md - User clarificationsCombine information from all sources:
Priority Order:
Resolution Strategy:
Extract or create user stories from combined sources.
Format: Given/When/Then or As-a/I-want/So-that
User Story Template:
### US-[N]: [Title]
**As a** [role/persona]
**I want** [capability/goal]
**So that** [business value/benefit]
**Priority**: [P0 Critical / P1 High / P2 Medium / P3 Low]
**Source**: [Jira/Confluence/User Answer to Q[N]]
**Acceptance Criteria**:
- [ ] AC1: [Specific, testable criterion]
- [ ] AC2: [Specific, testable criterion]
- [ ] AC3: [Specific, testable criterion]
**Definition of Done**:
- [ ] Code complete and reviewed
- [ ] Unit tests written and passing
- [ ] Integration tests written and passing
- [ ] Documentation updated
- [ ] Deployed to test environment
- [ ] Acceptance criteria verified
**Notes**:
[Any additional context, assumptions, or constraints]
Guidelines:
List specific functional capabilities.
Format:
### FR-[N]: [Title]
**Description**: [What the system must do]
**Priority**: [P0 / P1 / P2 / P3]
**Source**: [Reference]
**Details**:
- [Specific behavior 1]
- [Specific behavior 2]
- [Specific behavior 3]
**Related User Stories**: US-[N], US-[M]
**Assumptions** (if any):
- [Assumption 1 - if unresolved issue]
Categories to Cover:
Specify quality attributes and constraints.
Format:
### NFR-[N]: [Category] - [Title]
**Category**: Performance / Security / Scalability / Usability / Reliability / Maintainability
**Description**: [Specific requirement]
**Measurement**: [How to verify]
**Priority**: [P0 / P1 / P2 / P3]
**Acceptance Criteria**:
- [Measurable criterion with threshold]
**Source**: [Reference or "Industry Standard"]
Categories:
Performance:
Security:
Scalability:
Usability:
Reliability:
Maintainability:
Constraints - Limitations that must be worked within:
### C-[N]: [Constraint Title]
**Type**: Technical / Business / Legal / Resource / Time
**Description**: [What cannot be changed]
**Impact**: [How this affects implementation]
**Source**: [Reference]
Dependencies - External factors required for success:
### D-[N]: [Dependency Title]
**Type**: System / Team / Data / Service / Infrastructure
**Description**: [What is needed]
**Owner**: [Who/what provides this]
**Status**: [Available / In Progress / Not Started]
**Risk**: [Impact if unavailable]
Explicitly list what is NOT included:
## Out of Scope
The following are explicitly NOT part of this requirement:
- [Item 1]: [Why out of scope]
- [Item 2]: [Why out of scope]
- [Item 3]: [Why out of scope]
**Future Considerations**:
- [Feature for future phase]
- [Enhancement for later]
Assumptions (from unresolved questions):
### A-[N]: [Assumption]
**Based On**: [Unresolved Q[N] or missing info]
**Assumption**: [What we're assuming]
**Impact if Wrong**: [Consequences]
**Validation Plan**: [How to verify later]
Risks:
### R-[N]: [Risk Title]
**Probability**: High / Medium / Low
**Impact**: High / Medium / Low
**Description**: [What could go wrong]
**Mitigation**: [How to reduce or handle]
File: agents/testgen/{TICKET-KEY}/requirements.md
Format:
# Requirements Document - [TICKET-KEY]
**Generated**: [DateTime]
**Phase**: 4 - Requirements Generation
**Jira Ticket**: [KEY] - [Summary]
**Status**: DRAFT / REVIEW / APPROVED
---
## Document Control
| Version | Date | Author | Changes |
|---------|------|--------|---------|
| 1.0 | [Date] | AI Agent | Initial generation from Jira + Confluence + User input |
---
## Executive Summary
**Project**: [Project Name]
**Ticket**: [KEY]
**Description**: [2-3 sentence overview]
**Scope Summary**:
- [Key capability 1]
- [Key capability 2]
- [Key capability 3]
**Sources**:
- Jira: [TICKET-KEY]
- Confluence: [N] pages
- User Clarifications: [N] questions answered
---
## 1. User Stories
[List all user stories from Step 3]
### US-1: [Title]
[Full user story]
### US-2: [Title]
[Full user story]
---
## 2. Functional Requirements
[List all functional requirements from Step 4]
### FR-1: [Title]
[Full requirement]
### FR-2: [Title]
[Full requirement]
---
## 3. Non-Functional Requirements
[List all NFRs from Step 5]
### NFR-1: [Category] - [Title]
[Full requirement]
### NFR-2: [Category] - [Title]
[Full requirement]
---
## 4. Constraints
[List all constraints from Step 6]
### C-1: [Title]
[Full constraint]
---
## 5. Dependencies
[List all dependencies from Step 6]
### D-1: [Title]
[Full dependency]
---
## 6. Out of Scope
[From Step 7]
---
## 7. Assumptions
[List all assumptions from Step 8]
### A-1: [Assumption]
[Full details]
---
## 8. Risks
[List all risks from Step 8]
### R-1: [Risk]
[Full details]
---
## 9. Traceability Matrix
| Requirement ID | Source | User Story | Test Scenario |
|----------------|--------|------------|---------------|
| FR-1 | Jira DESC | US-1 | To be generated (Phase 5) |
| FR-2 | Confluence Page 1 | US-2 | To be generated (Phase 5) |
| NFR-1 | User Answer Q5 | - | To be generated (Phase 5) |
---
## 10. Glossary
[Define technical terms, acronyms, domain-specific language]
**Term** | **Definition** | **Source**
---------|----------------|------------
[Term 1] | [Definition] | [Source]
[Term 2] | [Definition] | [Source]
---
## 11. Appendices
### Appendix A: Source Documents
- Jira: [Full URL]
- Confluence Pages: [List with URLs]
### Appendix B: Analysis Summary
- Contradictions Resolved: [Count]
- Gaps Filled: [Count]
- Ambiguities Clarified: [Count]
### Appendix C: Change Log
[Track future updates to this document]
---
## Next Steps
1. Review this requirements document
2. Approve for implementation
3. Generate test scenarios (Phase 5)
4. Begin development based on user stories
Update agents/testgen/{TICKET-KEY}/testgen-state.md:
## Phase Completion Status
- [x] Phase 1: Data Collection - Completed [Date]
- [x] Phase 2: Gap Analysis - Completed [Date]
- [x] Phase 3: Question Generation - Completed [Date]
- [x] Phase 4: Requirements Generation - Completed [DateTime]
- [ ] Phase 5: Test Scenarios - Not Started
## Metrics
[...]
- User Stories Created: [Count]
- Functional Requirements: [Count]
- Non-Functional Requirements: [Count]
- Constraints: [Count]
- Dependencies: [Count]
- Assumptions: [Count]
- Risks: [Count]
[...]
## Phase Details
[...]
### Phase 4: Requirements Document Generation
- **Completed**: [DateTime]
- **Files Created**: requirements.md
- **User Stories**: [Count]
- **Functional Reqs**: [Count]
- **Non-Functional Reqs**: [Count]
- **Document Status**: DRAFT
- **Notes**: Ready for review and Phase 5
Before completing Phase 4, verify:
requirements.md createdread_file() - Read raw-data.md, analysis.md, answers.mdwrite() - Create requirements.md, update testgen-state.mdSMART Criteria:
Acceptance Criteria Rules:
Priority Guidelines:
User Story Examples:
US-1: User Login
As a registered user
I want to log in with email and password
So that I can access my personalized dashboard
AC1: User enters valid email and password → redirected to dashboard
AC2: User enters invalid credentials → error message shown
AC3: User locked out after 5 failed attempts → must reset password
Functional Requirement Examples:
FR-1: Password Validation
System must validate passwords meet these criteria:
- Minimum 8 characters
- At least 1 uppercase letter
- At least 1 number
- At least 1 special character
Non-Functional Requirement Examples:
NFR-1: Performance - API Response Time
All API endpoints must respond within 200ms for 95% of requests under normal load (1000 concurrent users).
Measurement: Monitor p95 latency in production.
After Phase 4 completion:
agents/testgen/{TICKET-KEY}/requirements.mdWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
/griddynamics-core-instructions-r2-core:testgen-flow-requirements-document-generationfrom core
Generated from the plugin's indexed repository (griddynamics/rosetta) — no native marketplace selected
npx claudepluginhub p/griddynamics-core-instructions-r2-core43 commands in this plugin
/adhoc-flowWorkflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc./aqa-flowWorkflow for automated QA: integration and end-to-end UI test automation, page objects, etc./aqa-flow-code-analysisPhase 3 Code Analysis of aqa-flow/aqa-flow-data-collectionPhase 1 Data Collection of aqa-flow/aqa-flow-requirements-clarificationPhase 2 Requirements Clarification of aqa-flow/aqa-flow-selector-identificationPhase 4 Selector Identification of aqa-flowOther plugins' commands for the same job