testgen-flow

testgen-flow is a command for Claude Code from griddynamics/rosetta. It costs 27 tokens per session (3,479 once invoked), scanned A, original, Apache-2.0.

A multi-step workflow for turning issue-tracker tickets and wiki documentation into reviewed requirements and test cases. An issue tracker records development work, a wiki stores project documentation, and a test management system stores test cases.

In plain words
What is it for?
Use it to analyze project requests, collect missing information from people, generate requirements, create test scenarios, and optionally export them to a test management system.
Why use it?
It gives requirements and quality-assurance teams a defined path for finding gaps, asking clarifying questions, writing requirements, and preparing tests.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit Use it to analyze project requests, collect missing information from people, generate requirements, create test scenarios, and optionally export them to a test management system.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/griddynamics/rosetta/testgen-flow
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

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/testgen-flow/github.svg)](https://agentmods.dev/commands/griddynamics/rosetta/testgen-flow)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/testgen-flow"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/testgen-flow/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/testgen-flow"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/testgen-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,479 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.00027 $0.03479
Opus 5.5 $0.00011 $0.01392
Sonnet 5.5 $0.00005 $0.00696
Haiku 4.5 $0.00003 $0.00348

Measured 5d ago against content hash 5076408cfc33, 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 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 5d 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.md · 180 lines

How it starts

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

<testgen_flow>

<description_and_purpose>

Systematic requirements analysis from Issue Tracker tickets and Wiki documentation to structured requirements and test scenarios. Extracts data, identifies gaps, clarifies unknowns via HITL, generates requirements document, and produces test cases with export to a Test Management System (Phase 6, user-triggered — the user may choose not to trigger it, but it is a fully-specified phase, not informally skippable). Designed for BA/QA engineers and requirements engineers.

Prerequisite: Rosetta Prep Steps.

Terminology. External systems are named by role throughout this workflow and its phases: Issue Tracker, Wiki, and Test Management System (TMS). Jira, Confluence, and TestRail are canonical examples only — adapt identifiers, URLs, requests, calls, and query syntax to the systems resolved for the current project (from repository-root gain.json, explicit user input, recognizable URLs/handles, and available integrations).

</description_and_purpose>

<workflow_phases>

  • All Rosetta prep steps MUST be FULLY completed
  • USE SKILL load-project-context, orchestration, hitl
  • ONE PHASE AT A TIME: APPLY PHASE the phase file, execute, update state, move to next. JIT: phase-by-phase: do not load/act IN ADVANCE.
  • DO NOT SKIP PHASES: Each builds on the previous. Skip gates: only with explicit user instruction, or when testgen-state.md marks the phase complete and its expected output file exists under plans/testgen-{TICKET-KEY}/; otherwise resume from the earliest incomplete phase. The explicit user instruction skip NEVER applies to the Phase 3 / Phase 6 HITL gates — those are rule 2 of <orchestration_and_escalation> and are never overridden.
  • Phase-file load failure: if APPLY PHASE for a phase file returns nothing, retry once, then HALT and report — do not improvise the phase.
  • Transition precedence: <orchestration_and_escalation> priority hierarchy.
  • STATE TRACKING: Update plans/testgen-{TICKET-KEY}/testgen-state.md after each phase.
  • SELF-CHECK BETWEEN PHASES: Before advancing, verify the state row was updated, the expected output file exists and is non-empty, the phase's ## Metrics count is populated (a thin 0/1 → re-check the artifact), and any HITL approval (Phase 3, 6) is recorded.
  • When a phase delegates work to subagents, dispatch per USE SKILL orchestration.
  • MUST ALWAYS use todo tasks ledger, ASAP. Prioritize ACCURACY over SPEED. Proactively use available tools/MCPs, if question can be answered from code or MCP call - do that first.
  • MUST create output directory plans/testgen-{TICKET-KEY}/ at start.
  • Trigger prompt example: Analyze requirements for PROJ-123 (also: bare key PROJ-123, full ticket URL). Ticket-only and ticket+Wiki input formats are enumerated in testgen-flow-project-config-loading.md step 0.1.
  • Per-phase failure cases — owned by phase files:
    • Ticket not found → testgen-flow-data-collection.md + the data-collection skill's Issue Tracker failure handling.
    • No Wiki results → testgen-flow-data-collection.md + the data-collection skill's Wiki failure handling.
    • User declines / does not answer questions → testgen-flow-question-generation.md <failure_handling> "User explicitly declines to answer".
    • Incomplete / missing requirements inputs → testgen-flow-requirements-document-generation.md <failure_handling> "Missing or empty inputs".
    • Documentation search query example + ranking rule → the data-collection skill's documentation-binding search/ranking behavior.
    • Initial-prompt format examples → testgen-flow-project-config-loading.md.
    • Phase 6 80%-export-success threshold → testgen-flow-test-case-export.md (Threshold (80%) met field + PARTIAL — N/M exported state).
    • Phase 5 test-case-count guidance → testgen-flow-test-case-generation.md <validation_checklist>.
  • Model tiers (phase subagent_required_model): tier: complex = heavy reasoning / multi-source synthesis / requirements engineering (Opus-class / GPT high-tier); tier: workhorse = structured execution / extraction / generation + export (Sonnet-class / GPT mid-tier).

Read the full file on GitHub · 180 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. 5d ago Changed 5076408cfc33
  2. 6d ago Changed de8dc813bf71
  3. 1mo ago First seen · 180 lines · 27 tokens per session scan A 4a62daa6deba

Subscribe to this mod's changes

testgen-flow is a command published in the GitHub repository griddynamics/rosetta (360 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 3,479 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.