testgen-flow

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

Workflow for generating test cases from requirements (Issue Tracker / Wiki sources), exporting to a Test Management System, etc.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/testgen-flow.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.svg" alt="Measured on agentmods" 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,455 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.00027 $0.03455
Opus 5 $0.00014 $0.01728
Sonnet 5 $0.00005 $0.00691
Haiku 4.5 $0.00003 $0.00346

Measured today against content hash 4a62daa6deba, 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 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.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 foundtestgen-flow-data-collection.md + the data-collection skill's Issue Tracker failure handling.
    • No Wiki resultstestgen-flow-data-collection.md + the data-collection skill's Wiki failure handling.
    • User declines / does not answer questionstestgen-flow-question-generation.md <failure_handling> "User explicitly declines to answer".
    • Incomplete / missing requirements inputstestgen-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 examplestestgen-flow-project-config-loading.md.
    • Phase 6 80%-export-success thresholdtestgen-flow-test-case-export.md (Threshold (80%) met field + PARTIAL — N/M exported state).
    • Phase 5 test-case-count guidancetestgen-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. today 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 (342 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 3,455 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.