muggle-test-regenerate-missinglisted
Install: claude install-skill multiplex-ai/muggle-ai-works
# Muggle Test — Regenerate Missing Test Scripts
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-test-regenerate-missing"`.
A bulk maintenance skill for Muggle AI projects. It finds every test case in a project that does **not** currently have an active (ready-to-run) test script, shows the list to the user, and on approval triggers a remote test script generation workflow for each one. Useful after creating a batch of new test cases or when cleaning up a project that has drifted.
Execution is **remote only** — Muggle Test's cloud generates the scripts in parallel against the project URL. The user's machine is not involved beyond making API calls.
## Preferences
Gates run per `preference-gates/README.md`.
| Preference | Step | Decision it gates |
|------------|------|-------------------|
| `autoLogin` | 1 | Reuse saved credentials when auth is required |
| `autoSelectProject` | 2 | Reuse last-used Muggle Test project for this repo |
## Concept: what counts as "no active script"
In the Muggle Test data model, a test case carries a status that reflects whether it has a usable script attached:
| Status | Meaning | Regenerate? |
|:-------|:--------|:-----------:|
| `ACTIVE` | Has a generated, ready-to-run script | No — already good |
| `DRAFT` | Created but never generated | **Yes** |
| `GENERATION_PENDING` | Queued but generation never started | **Yes** |
| `GENERATING` | Currently generating | No — generat