Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

testbed-generator

FreeRuns bundled scriptsNot checked

Drive the workload-scoped Synthetic Testbed Generator through its MINE → VALIDATE → ENRICH → COMPILE → GENERATE phases for a migration. Sequences `scai…

sfc-gh-dflippoby sfc-gh-dflippo★ 35 GitHub stars

About 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/validate with 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. run validate to inspect readiness without generating data.

Steps

  1. 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).

  2. Mine phase. Run the driver:

    uv run --project {SKILL_DIR} python {SKILL_DIR}/scripts/run_pipeline.py mine --project-dir {PROJECT_DIR}
    
  3. On mine exit code 0: the driver wrote testbed/mine/unsolved-view.json and printed a one-line summary. Present the summary, then read testbed/mine/unsolved-view.json and show the per-kind counts (fk, check, branch_predicate, join_edge, enum_domain) and the branches drill-down (per object: branch_count, unsolved_branches). Do not paraphrase the counts — read them from the file. A table with branch_count: 0 is normal — tables have no branches; do not report it as a gap.

  4. 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.json and continued where it could. Tell the user which objects are PENDING and why.
    • escalate: stop and surface the full error; do not retry.
  5. 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}
    
  6. On validate exit code 0: the driver wrote testbed/validate/readiness-view.json and printed a one-line summary. Read the view and present ready, counts (blocking, advisory, fk_gaps, type_conflicts, unsatisfied_constraints, overlaps), and the fk_gaps / type_conflicts / unsatisfied_constraints / overlaps arrays. ready: false is 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

Full SKILL.md on GitHub

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
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

prompts/critics/joins_critic.mdprompts/critics/spec_critic.mdprompts/critics/verdict-contract.mdprompts/structural/anti_join_tables.mdprompts/structural/correlated_groups.mdprompts/structural/fk_chains.mdprompts/structural/temporal_alignment.mdprompts/structural/temporal_window_bindings.mdprompts/value/branch_values.mdprompts/value/flag_for_llm.mdprompts/value/inferred_enum.mdprompts/value/must_include.mdprompts/value/null_fraction_override.mdprompts/value/predicate_fills.mdpyproject.tomlscripts/assembler.pyscripts/critic_backbone.pyscripts/critic_benchmark.pyscripts/critic_gate.pyscripts/critic_index.pyscripts/critic_normalize.pyscripts/manifest.pyscripts/recovery.pyscripts/run_pipeline.pyscripts/subcommands.py

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

Compare testbed-generator with