testgen-flow-requirements-document-generation

testgen-flow-requirements-document-generation is a command for Claude Code from griddynamics/rosetta. It costs 18 tokens per session (2,175 once invoked), scanned A, original, Apache-2.0.

A requirements-writing step that combines issue-tracker records, wiki pages, analysis, and user answers into one structured document. It records user stories, requirements, limits, and links between sources.

In plain words
What is it for?
Use it to prepare a clear requirements document for later test-case generation. It is part of a seven-phase workflow for turning project tickets and documentation into test scenarios.
Why use it?
It removes the need to reconcile scattered project information by hand before designing tests.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit Use it to prepare a clear requirements document for later test-case generation. It is part of a seven-phase workflow for turning project tickets and documentation into test scenarios.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/griddynamics/rosetta/testgen-flow-requirements-document-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testgen-flow-requirements-document-generation

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/testgen-flow-requirements-document-generation/github.svg)](https://agentmods.dev/commands/griddynamics/rosetta/testgen-flow-requirements-document-generation)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/testgen-flow-requirements-document-generation"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/testgen-flow-requirements-document-generation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testgen-flow-requirements-document-generation

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/testgen-flow-requirements-document-generation"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/testgen-flow-requirements-document-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,175 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.02175
Opus 5.5 $0.00007 $0.00870
Sonnet 5.5 $0.00004 $0.00435
Haiku 4.5 $0.00002 $0.00217

Measured 1mo ago against content hash 512dd04c0646, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testgen-flow-requirements-document-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/core-copilot-light/commands/testgen-flow-requirements-document-generation.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<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>

  • Phase 4 of 7 in testgen-flow
  • Input: raw-data.md, analysis.md, answers.md
  • Output: requirements.md — primary deliverable for test case generation
  • Required skills: qa-knowledge (synthesis mode)
  • Prerequisite: Phase 0-3 complete with validated user answers
  • Priority order for source resolution: User answers > Issue Tracker ticket > Wiki > Analysis insights </workflow_context>

<phase_steps>

  1. Load all source data
  2. Synthesize requirements
  3. Create requirements document
  4. Update state file </phase_steps>

<load_sources step="4.1">

  1. Read all previous phase outputs:
    • plans/testgen-{TICKET-KEY}/raw-data.md — Issue Tracker + Wiki data
    • plans/testgen-{TICKET-KEY}/analysis.md — identified issues
    • plans/testgen-{TICKET-KEY}/answers.md — user clarifications </load_sources>

<synthesize_requirements step="4.2" subagent="architect" role="Requirements engineer">

  1. USE SKILL 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.
  2. Source priority: User answers (Phase 3) > Issue Tracker ticket > Wiki docs > Analysis insights
  3. Resolve contradictions using user answers; fill gaps using user answers; flag unresolved items as assumptions
  4. Generate: user stories (US-N), functional requirements (FR-N), non-functional requirements (NFR-N), constraints (C-N), dependencies (D-N), assumptions (A-N), risks (R-N)
  5. Build traceability matrix linking requirements to ticket/Wiki sources </synthesize_requirements>

<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]

Read the full file on GitHub · 155 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 155 lines · 18 tokens per session scan A 512dd04c0646

Subscribe to this mod's changes

testgen-flow-requirements-document-generation is a command published in the GitHub repository griddynamics/rosetta (360 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 2,175 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.