testgen-flow-requirements-document-generation

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

Phase 4 Requirements Document of testgen-flow.

Command

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.

agentmods
npx agentmods add commands/griddynamics/rosetta/testgen-flow-requirements-document-generation
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
Origin unknown 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 $0.00018 $0.02175
Opus 5 $0.00009 $0.01087
Sonnet 5 $0.00004 $0.00435
Haiku 4.5 $0.00002 $0.00217

Measured today against content hash 512dd04c0646, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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. today 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 (342 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. 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.