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.
npx agentmods add commands/griddynamics/rosetta/testgen-flowgit clone --depth 1 https://github.com/griddynamics/rosettaWrote 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.
[](https://agentmods.dev/commands/griddynamics/rosetta/testgen-flow)<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>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.
| Model | Per session | Once 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 |
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.
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.mdmarks the phase complete and its expected output file exists underplans/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.mdafter 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
## Metricscount is populated (a thin0/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 keyPROJ-123, full ticket URL). Ticket-only and ticket+Wiki input formats are enumerated intestgen-flow-project-config-loading.mdstep 0.1. - Per-phase failure cases — owned by phase files:
- Ticket not found →
testgen-flow-data-collection.md+ thedata-collectionskill's Issue Tracker failure handling. - No Wiki results →
testgen-flow-data-collection.md+ thedata-collectionskill'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-collectionskill'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%) metfield +PARTIAL — N/M exportedstate). - Phase 5 test-case-count guidance →
testgen-flow-test-case-generation.md<validation_checklist>.
- Ticket not found →
- 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).
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.
- today First seen · 180 lines · 27 tokens per session scan A 4a62daa6deba
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.
Other commands, from other repositories
OPSX: Propose
Propose a new change - create it and generate all artifacts in one step.
OPSX: Apply
Implement tasks from an OpenSpec change (Experimental).
OPSX: Archive
Archive a completed change in the experimental workflow.
OPSX: Explore
Enter explore mode - think through ideas, investigate problems, clarify requirements.
/spectra-archive
Archive a completed change.
/opsx-archive
Archive a completed change in the experimental workflow.