with one click
muggle-do
// Unified Muggle AI workflow entry point. Use when user types muggle do or asks for autonomous implementation to PR.
// Unified Muggle AI workflow entry point. Use when user types muggle do or asks for autonomous implementation to PR.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | muggle-do |
| description | Unified Muggle AI workflow entry point. Use when user types muggle do or asks for autonomous implementation to PR. |
| disable-model-invocation | true |
Telemetry first step: see
_shared/telemetry-emit.md. UseskillName: "muggle-do".
Muggle Test Do runs a battle-tested autonomous dev cycle: pre-flight → requirements → impact analysis → validate code → unit tests → E2E acceptance → open PR.
The design goal is fire and review: the user answers one consolidated pre-flight questionnaire, then walks away. Every subsequent stage runs unattended until completion or a genuine blocker.
For maintenance tasks, use the dedicated skills:
/muggle:muggle-status/muggle:muggle-repair/muggle:muggle-upgradeTreat $ARGUMENTS as the user command:
Empty / help / menu / ? → show menu and session selector.
Anything else → infer intent:
muggle:muggle-do-task skill with the full prompt as arguments.When in doubt, ask one question: "Do you want me to run this as a browser automation task, or implement it as a code change?"
| # | Stage | File | User-facing? |
|---|---|---|---|
| 1 | Pre-flight | ../do/pre-flight.md | Yes — single consolidated turn |
| 2 | Requirements | ../do/requirements.md | No |
| 3 | Impact analysis | ../do/impact-analysis.md | No |
| 4 | Validate code | ../do/validate-code.md | No |
| 5 | Unit tests | ../do/unit-tests.md | No |
| 6 | E2E acceptance | ../do/e2e-acceptance.md | No |
| 7 | Open PR | ../do/open-prs.md | No |
Stage 1 (pre-flight) is the ONLY stage that talks to the user. Stages 2–7 run silently to completion. If a later stage hits a genuine blocker that the pre-flight didn't cover, escalate with a single terminal message — do not open a second round of questions.
All ambiguity — task scope, repo selection, validation strategy, localhost URL, backend health, Muggle Test project, test-user credentials, branch name, PR target — is resolved in a single pre-flight turn. See pre-flight.md for the exact questionnaire.
Red-flag behaviors (do not do):
If any of these happen, the pre-flight was incomplete — treat it as a skill bug, not a user bug, and expand pre-flight.md to cover the missed case after the run.
Every run writes to .muggle-do/sessions/<slug>/:
state.md — one-screen live status: current stage (N/7), last update timestamp, pre-flight answers verbatim, any blockers.iterations/<NNN>.md — append-only log of stage transitions for iteration NNN: what ran, what was decided, what artifacts were produced.requirements.md — frozen output of stage 2.result.md — final summary written by stage 7 (PR URLs, E2E outcome, open issues).On every stage transition, you MUST:
iterations/<NNN>.md: ### Stage N/7 — <name> (<timestamp>) followed by the stage's output.state.md to reflect the new current stage and any relevant counters.If these files don't exist, create them — missing session files means the user lost visibility into the cycle, which is the exact failure mode this skill exists to prevent.
Each stage turn MUST begin with one line in this form before any other output:
**Stage N/7 — <stage name>** — <one-line intent>
This is how the user can tell, at a glance, what phase the cycle is in without parsing a long response.
open-prs.md stage MUST invoke muggle-pr-visual-walkthrough Mode B to render the screenshots-and-steps section. Hand-writing it loses the dashboard links the user relies on for review.[E2E FAILING] in the title; the visual walkthrough section makes the failures reviewable.When stage 7 finishes, the final message to the user contains at minimum:
[E2E FAILING])result.md for full detailsNo other content. The user already read the walkthrough in the PR body — do not re-summarize it here.