testbed-generator
FreeRuns bundled scriptsNot checkedDrive the workload-scoped Synthetic Testbed Generator through its MINE → VALIDATE → ENRICH → COMPILE → GENERATE phases for a migration. Sequences `scai…
by sfc-gh-dflippo★ 35 GitHub starsAbout this skill
Testbed generator — mine + validate + enrich + compile + generate
Drives the deterministic scai testbed mine, validate, enrich, compile, and
generate phases for the whole workload. The data lives in the CLI's opaque state; this
skill only sequences subcommands and surfaces their JSON. It replaces production
data, not source access — a source connection is still required downstream to
capture the baseline.
The core phases are independent and resumable: mine (init → list-unsolved
→ whole-workload branch drill-down) inventories the constraint/branch coverage;
validate reads the mined state and reports readiness (fk gaps / type conflicts
/ unsatisfied constraints) — ready: false is a report, not a failure; enrich
is the reasoning + propose/validate loop that turns unsolved constraints into
enrichment JSON (see the Orchestrate phase below); compile materializes the
data-coupling clusters + coordination spec that data generation consumes;
generate (readiness-gated) writes the CSV pool + manifest deliverable. Each
phase is deterministic — re-running it is safe and cheap.
On Entry
Tell the user:
"Running the testbed mine → validate → enrich → compile → generate phases: I'll inventory the branch/constraint coverage your converted workload needs and show the categorized unsolved-constraint view, report readiness (fk gaps / type conflicts / unsatisfied constraints), run the enrichment loop that turns the unsolved constraints into enrichment JSON (assemble → propose → validate, with a bounded retry/iterate budget), compile the data-coupling / coordination spec and show its cluster summary, then — readiness permitting — generate the CSV pool + manifest and show the row counts. This reads the conversion artifacts and the testbed state; the enrich phase mutates that state (through
propose-enrichments) and only the generate phase writes data files."
Scope
- In scope:
init→list-unsolved(mine) → surface the categorized view;validate→ surface the readiness view;compile→ surface the cluster summary; the two-pass ENRICH reasoning (structural then value prompts) that turns unsolved constraints into enrichment JSON (§enrich below);generate(readiness-gated) → surface row counts + CSV/manifest deliverable; resume each phase; classify failures. - In scope (orchestrate): assemble the per-type fragments into the 8-array envelope, drive
propose-enrichments/validatewith a bounded retry/iterate budget, emit observability counts (SNOW-3782435). - Out of scope:
generate's CSV internals; the per-object test-YAML bridge. - Phase-scoped runs: each driver subcommand (
mine,validate,enrich,compile,generate) can be run and stopped independently — e.g. runvalidateto inspect readiness without generating data.
Steps
Ensure the MCP session is configured: if you were spawned as a sub-agent, call
configure(project_dir=<abs_path>)first (you may be the first to touch the server, and there is no working-directory fallback).Mine phase. Run the driver:
uv run --project {SKILL_DIR} python {SKILL_DIR}/scripts/run_pipeline.py mine --project-dir {PROJECT_DIR}On mine exit code 0: the driver wrote
testbed/mine/unsolved-view.jsonand printed a one-line summary. Present the summary, then readtestbed/mine/unsolved-view.jsonand show the per-kindcounts (fk,check,branch_predicate,join_edge,enum_domain) and thebranchesdrill-down (per object:branch_count,unsolved_branches). Do not paraphrase the counts — read them from the file. A table withbranch_count: 0is normal — tables have no branches; do not report it as a gap.On mine non-zero exit: the driver printed
"<station> failed [<code>] <message> (<class>)". Act on the class, then stop (do not proceed to compile):input_config(e.g.PRJ0003,TBD0007): the project dir or artifacts path is wrong. Fix it and re-run step 2.data_isolable/data_quarantine: the driver recorded the offending object as PENDING in.scai/testbed/run.jsonand continued where it could. Tell the user which objects are PENDING and why.escalate: stop and surface the full error; do not retry.
Validate phase (after mine exit 0). Run the driver:
uv run --project {SKILL_DIR} python {SKILL_DIR}/scripts/run_pipeline.py validate --project-dir {PROJECT_DIR}On validate exit code 0: the driver wrote
testbed/validate/readiness-view.jsonand printed a one-line summary. Read the view and presentready,counts(blocking,advisory,fk_gaps,type_conflicts,unsatisfied_constraints,overlaps), and thefk_gaps/type_conflicts/unsatisfied_constraints/overlapsarrays.ready: falseis not an error — it is a successful report of gaps carried in the view. If not ready, tell the user the blocking issues must be fixed (or explicitly overridden at generate) before data will gener
Install testbed-generator in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the testbed-generator skill do?
Drive the workload-scoped Synthetic Testbed Generator through its MINE → VALIDATE → ENRICH → COMPILE → GENERATE phases for a migration. Sequences `scai testbed init` → `list-unsolved` (mine) and surfaces the categorized unsolved-constraint view; `scai testbed validate` and surfaces the readiness view (fk gaps / type conflicts / unsatisfied constraints); `scai testbed compile` and surfaces the cluster summary; runs the two-pass ENRICH reasoning (structural then value prompts) that turns unsolved constraints into enrichment JSON; `scai testbed generate` (readiness-gated) and surfaces the row counts + CSV/manifest deliverable. Resumes each phase after a kill by recomputing from on-disk state. Reads machine-readable JSON views; mutates state only through scai testbed subcommands, never the opaque state.bin. Triggers: generate testbed, mine testbed, validate testbed, compile testbed, enrich testbed, run testbed phases, resume testbed, inspect unsolved constraints, testbed data source. Runs the two-pass ENRICH phase then the ORCHESTRATE phase between mine and compile (assemble the 8-array envelope, drive propose-enrichments/validate with bounded retries + observability). Does NOT generate CSVs or seed test YAML.
How do I install the testbed-generator skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the testbed-generator skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
by Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
by Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
by Anthropic