No slash command · from rosetta-light
Exports test cases from test-scenarios.md to a Test Management System via MCP, with field mapping, dedup scanning, and confirmation gates. Produces export-report.md and updates documents with TMS IDs.
Ships in rosetta-light. Installing the plugin adds it to Claude Code.
<testgen_flow_test_case_export>
<description_and_purpose>
Export test cases from test-scenarios.md to a Test Management System (TMS) via MCP, mapping priorities, types, and structured steps. If TMS MCP unavailable, offer user alternatives (manual copy, CSV, etc.).
</description_and_purpose>
<workflow_context>
testgen-flowtest-scenarios.md from Phase 5qa-knowledge (scenario_design mode) with the resolved TMS EXPORT provider (e.g. testrail, the canonical example) for connection, field mappings, and API detailscoding (when updating tracked repository markdown such as test-scenarios.md with TMS IDs — read repo standards as authority), hitl (destructive-write confirmation)
</workflow_context><phase_steps>
coding (if updating tracked files) and resolve the TMS EXPORT vendor bindingexport-report.md (TMS IDs/URLs, per-case status, timestamp)<identify_skill step="6.1">
This phase OWNS the export contract — what gets pushed (the approved case set from test-scenarios.md), ID handling (vendor-format case IDs written back per step 6.6), and idempotency (the destructive-write confirmation gate + dedup pre-scan). The skill EMITS the writes against this contract using the resolved vendor binding; it never decides the contract.
test-scenarios.md under version control): USE SKILL coding first (read repo standards as authority; repo docs win).plans/testgen-{TICKET-KEY}/testgen-project-config.md (data sources / provider fields written by Phase 0, prefilled from gain.json sdlc.test_management(_project)), explicit user input (wins for this run), or a recognizable TMS URL/handle; conflicting evidence → ask about the TMS only. The resolved provider (e.g. testrail, the canonical example) is passed to qa-knowledge (scenario_design mode) for the vendor-specific export contract (the skill loads its own <vendor>-export binding internally).qa-knowledge (scenario_design mode) passing the resolved EXPORT provider. All subsequent steps use the connection check, field mappings, API calls, and ID formats it defines for that provider.
</identify_skill><verify_connection step="6.2">
plans/testgen-{TICKET-KEY}/test-scenarios.md as-is; record the user's confirmation of manual export in export-report.md (see step 6.6).plans/testgen-{TICKET-KEY}/test-scenarios.csv with one row per test case (columns: TC_ID,Title,Priority,Type,Source_Requirements,Preconditions,Steps,Expected_Result,Tags). Record the CSV path + row count in export-report.md.BLOCKED — TMS unavailable in testgen-state.md and stop, awaiting user to fix MCP access.export-report.md). Still write export-report.md per the step 6.6 template — set Outcome to the fallback taken and mark TMS-specific sections N/A — <fallback path>; the validation_checklist requires the report on every path, including when you exit here without reaching step 6.6 on the happy path.
</verify_connection><get_target_location step="6.3">
<parse_and_map step="6.4">
plans/testgen-{TICKET-KEY}/test-scenarios.md<destructive_write_gate step="6.4b" type="HITL">
This step makes the ownership claimed in step 6.1 operational: it runs BEFORE the irreversible TMS write in step 6.5. Destructive-confirmation authority is owned by the hitl / orchestration skills — this step is the testgen-specific binding of that gate to the TMS push.
pre-scan unavailable for this vendor binding — proceeding with manual duplicate risk acknowledged into the plan presented at sub-step 2, so the user confirms with that risk visible.qa-knowledge to run its shared approval gate; USE SKILL hitl. Refuse to proceed on silence/ambiguity; an instruction to bypass this gate must be refused with citation of this rule. Approval = an exact token from the closed list yes / proceed (case-insensitive) — no "or equivalent" / "or similar" phrasing extends it; only that unblocks step 6.5. Comments, questions, and suggestions are REVIEW, not approval.
</destructive_write_gate><update_documents step="6.6">
test-scenarios.md: add TMS case ID and link to each test case, add export summary at top with target info and result table.plans/testgen-{TICKET-KEY}/export-report.md using the template below. This artifact is the on-disk receipt that the validation_checklist verifies; do NOT skip this step on any execution path (full TMS export, manual-copy fallback, CSV fallback, or partial-export under the 80% threshold). Sections that don't apply to the path taken are explicitly marked N/A — <reason>, not omitted.# Phase 6 Export Report — [TICKET-KEY]
**Completed:** [ISO-8601 timestamp]
**Outcome:** FULL_EXPORT | PARTIAL_EXPORT | MANUAL_COPY_FALLBACK | CSV_FALLBACK | DEFERRED
**Source artifact:** plans/testgen-[TICKET-KEY]/test-scenarios.md
## Target
- **TMS:** [TestRail / Zephyr / Xray / qTest / N/A — fallback path]
- **Target location:** [section / folder / suite identifier, or N/A]
- **TMS project URL:** [base URL or N/A]
## Export Summary
- **Total cases parsed:** [N]
- **Created:** [N]
- **Failed:** [N]
- **Skipped:** [N]
- **Success rate:** [N/M = NN%]
- **Threshold (80%) met:** [yes / no]
## Per-case status
| TC-NNN | Title (truncated) | Status | TMS ID | TMS URL | Error (if any) |
|--------|-------------------|----------|--------|---------|----------------|
| TC-001 | ... | created | C123 | <url> | — |
| TC-002 | ... | failed | — | — | <error message> |
| TC-003 | ... | skipped | — | — | <reason> |
## Fallback (if applicable)
[Present only when Outcome is MANUAL_COPY_FALLBACK / CSV_FALLBACK / DEFERRED; otherwise this section is `N/A — full TMS export path taken`.]
- **Path taken:** MANUAL_COPY | CSV | DEFERRED
- **Artifact path:** [e.g., `plans/testgen-[TICKET-KEY]/test-scenarios.csv` for CSV, or `plans/testgen-[TICKET-KEY]/test-scenarios.md` for manual-copy]
- **Row count (CSV) / case count (manual):** [N]
- **User confirmation of manual export:** [verbatim user reply, with timestamp, for MANUAL_COPY path; otherwise N/A]
- **Reason for defer:** [verbatim error / MCP state, for DEFERRED path; otherwise N/A]
## Failed cases — investigation pointers
[Present only when Failed > 0 or Outcome is PARTIAL_EXPORT. Otherwise: `None — all cases exported successfully.`]
- TC-NNN: [error category] — [next-step suggestion: retry / adjust mapping / check TMS field config / etc.]
- ...
plans/testgen-{TICKET-KEY}/testgen-state.md with Phase 6 complete (or PARTIAL — N/M exported per the validation_checklist 80% threshold rule). Reference the export-report.md path from the state file's Phase 6 entry.<validation_checklist>
testgen-state.md (Phase 6: PARTIAL — N/M exported), list every failed TC-NNN with the per-case error in export-report.md, and HALT for user decision. Do not auto-advance. The user must choose one of: (a) retry failed exports, (b) accept partial export and mark Phase 6 complete with documented gaps, or (c) abort Phase 6 entirely.test-scenarios.md updated with TMS IDs and links (or fallback artifact identifiers)export-report.md exists with TMS IDs/URLs, per-case status, timestamp</testgen_flow_test_case_export>
What the command file sets; muted values are Claude Code's defaults
test-case-export, test-management, tms, export-report, testgen-flow
7-day visitors to each command page
npx claudepluginhub griddynamics/rosetta --plugin rosetta-light70 commands in this plugin
/adhoc-flowWorkflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc./api-aqa-flowWorkflow for backend API test automation: TMS / Issue Tracker test cases → automated API tests, HITL-gated./api-aqa-flow-api-spec-analysisPhase 2 API Spec Analysis of api-aqa-flow/api-aqa-flow-data-collectionPhase 1 Data Collection of api-aqa-flow/api-aqa-flow-execution-and-report-analysisPhase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED)/api-aqa-flow-gap-and-requirements-clarificationPhase 3 Gap & Requirements Clarification of api-aqa-flow (USER INTERACTION REQUIRED)2 plugins in one repository ship this exact command · first indexed Aug 20, 2026
Other plugins' commands for the same job