/muggle:muggle-dofrom muggle
Autonomously builds features, fixes bugs, or implements specs from requirements to an opened PR with real-browser E2E proof, screenshots, and test-graph ordering.
Claude never picks this skill on its own
Claude Code cannot parse its frontmatter, so it ignores every field there: the description on this page is for you to read, but Claude never sees it. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /muggle:muggle-do still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Telemetry first step: see
../_shared/telemetry-emit.md. UseskillName: "muggle-do".
Running outside Claude Code (in Codex, for one)? Read
../_shared/host-tool-equivalents.mdfirst — it maps the tools and paths this skill names to your host's.
Runs an autonomous dev cycle from requirements to PR. Fire and review: user answers one pre-flight questionnaire, then walks away. The muggle-pr-followup watcher invokes /muggle-do again with the address-reviews directive when new reviews land.
| # | Stage | File |
|---|---|---|
| 1 | Pre-flight (one questioning turn) | ../do/pre-flight.md |
| 2 | Requirements | ../do/requirements.md |
| 2.5 | Design — a design PR; merging it approves the design and starts the build | ../do/design.md |
| 3 | Build | ../do/build.md |
| 4 | Impact analysis | ../do/impact-analysis.md |
| 5 | Unit tests | ../do/unit-tests.md |
| 5.5 | Open PR | ../do/open-prs.md |
| 6 | E2E acceptance | ../do/e2e-acceptance.md |
| 7 | Report on the PR | ../do/open-prs.md |
| 7.5 | E2E repair loop | ../do/e2e-repair.md |
| 8 | Hand off to watcher | ../muggle-pr-followup/SKILL.md |
The PR opens before E2E. Stage 5.5 opens it as soon as unit tests pass; Stage 6 then runs against the PR's head, its progress showing on the PR, and Stage 7 settles the walkthrough with the result. The walkthrough check stays red until then.
Waves and streams. A session's PRs are either a wave — one change split across repos — or a stream of independent changes, or both; ../do/wave-or-stream.md defines which is which, and pre-flight decides it once.
Design PRs. A change that needs a design stops after Stage 2.5 with a [DESIGN] PR carrying the spec. Merging it is the approval: the merge's cleanup resumes the cycle at Stage 3; closing it unmerged rejects the design. See ../do/design.md.
Multi-repo waves. When a task's PRs need each other to work — one PR per repo — they form a wave: every repo's service starts from its branch, Stage 6 runs one E2E pass against the combined stack, and that same result is posted to every PR in the wave. See ../do/wave-e2e.md; pre-flight decides whether a cycle is a wave.
Streams — several changes in one session. Unrelated fixes — several bugs in one request, or a second task while the first is still in flight — are separate changes, each with its own session directory, worktree, PR, and E2E run; a wave is one change among them. When a change reaches Stage 6 while other work is in front of the session, its run goes to a background acceptance-tester and the session moves on; the report comes back to the main session, which carries that change through Stages 7–8. One local run at a time, and a PR's walkthrough only ever carries its own change's run. See ../do/background-e2e.md.
Stage 7 dispatches one watcher per opened PR as its last action, gated on Stage 7.5's clearance — a cycle with unrepaired E2E failures never reaches a watcher.
The pipeline table lists pointers, not summaries. Open each stage's file and execute from it — running a stage off its one-line row here is how tests, E2E, and session state get silently skipped. If you have not read a stage's file this run, you have not run that stage.
Bootstrap before any code, in order:
../_shared/telemetry-emit.md, skillName: "muggle-do".~/.muggle-ai/muggle-do/sessions/<slug>/ with state.md + iterations/001.md (pre-flight owns this; do it even when running unattended).TodoWrite one item per stage 1–8, Stages 2.5, 5.5 and 7.5 included — these stages are the checklist; never swap in your own decomposition. Several changes → one set of stage items per change.Per stage: read the file → execute it → append one marker line to iterations/<NNN>.md, always in the form Stage <N> done — <evidence>, citing the evidence that file requires (jest exit code, E2E verdict + runId, screenshot path). The marker is the stage's last line, written after its notes, and carries the evidence itself: nothing between done and —, never a pointer such as Stage 4 done (see below) —. A stage is done only when its evidence is written, never on recollection.
Best-effort the Stage-1 questionnaire and don't ask. It does not license skipping telemetry, session artifacts, requirements, the Stage-2.5 design PR, unit tests, E2E (autoE2ETest defaults to always), browser verification, the gate below, the Stage-7.5 repair loop, or the watcher hand-off. Stage 7.5 investigates and repairs unattended too; only its user decision is deferred — left open for the user and carried by the watcher, never waived on their behalf. Run the whole pipeline silently — never a shortcut.
Each line holds, or is waived by a one-line reason written into state.md (silence is not a waiver).
Before Stage 5.5 opens the PR:
requirements.md written (forward runs)Design: finalized recorded in state.md before Stage 3 edited a file (forward runs)e2eScope recorded, mapping every acceptance criterion to a test case, a deliverable check, or unobservable — or not-scoped with the condition that failedBefore Stage 7 settles the PR's walkthrough:
runId for every case in that scope, per autoE2ETest — or [E2E FAILING], or SKIPPED citing a verified skip code from ../do/e2e-acceptance.md, where each code's verification rule lives. Free-text reasons are rejected by the gaterunId); curl + grep is not verificationOpening a PR, or settling its walkthrough, with an unchecked, unwaived line of its gate is a cycle failure. A Stage 6 readiness halt (../do/e2e-acceptance.md Step 0.5) leaves the E2E line open: no skip code, waiver, or explicit request to open the PR closes it.
Every cycle's closing message opens with the fenced block ../do/audit-trail.md defines: the unit tests involved, the E2E tests with results, links to the evidence, and what is missing. A prose recap does not replace it. It reports and gates nothing, and it comes after the last action: the watcher arms first.
When invoked with the directive (PR URL + slug + review ids), routes to ../do/address-reviews.md. Shares stages 3–5 with the forward pipeline, then sizes the cycle from its diff per ../do/cycle-size.md: a full cycle adds stage 6 and a fresh walkthrough, a minor one skips E2E under a verified NO_APP_LOGIC_CHANGE. Skips pre-flight, requirements, and PR creation. See the orchestrator for the cycle's exact step order, classification rules, and respawn logic.
/muggle-do serves one interactive mode (the forward pipeline, from a fresh task) and four programmatic modes the watcher dispatches (address-reviews, fix-ci, rebase, post-merge cleanup). Resolve $ARGUMENTS to a mode per ../do/input-routing.md before doing anything else.
| Preference | Gate |
|---|---|
frontloadQuestions | Every stage — always keeps Stage 1 the only questioning turn, with Stage 2.5's design approval taken as a design-PR merge and Stage 7.5's decision open rather than asked; never lets a later stage ask when a question arises (rule) |
autoE2ETest | Stage 6 — run E2E every cycle (default always), or fold into pre-flight |
autoResolveConflicts | On rebase conflict — always resolves autonomously behind a verify-or-rollback gate, never aborts + escalates; resolve from the configured preference (don't assume a default) |
autoRouteBuildToMuggleDo | Front-door guardrail — route build/implement/fix requests through this pipeline (build delegated to superpowers); fired by the UserPromptSubmit guardrail, default ask |
autoInstallCiWorkflow | Stage 7 — add the muggle-walkthrough CI check to a GitHub repo that lacks it, shipped in the PR; ask folds into pre-flight, default ask. An unedited copy from an earlier release is refreshed unless never |
autoUseWorktree, autoRebase, autoResolveConflicts, autoCreatePR, autoCleanup, postPRVisualWalkthrough fire from per-stage files.
~/.muggle-ai/muggle-do/sessions/<slug>/. Schemas: ../muggle-pr-followup/state-schemas.md.
| File | Owner |
|---|---|
state.md | Stage 1 or bootstrap |
iterations/<NNN>.md | Every stage |
requirements.md | Stage 2 (forward only) |
prs.json, last_seen.json, followup.log | Stage 7 / watcher / /muggle-do |
result.md | Stage 5.5 (seeded), terminal tick (finalized) |
/muggle-do resume slug=<slug>). Stages 2 and 3–7 don't ask mid-cycle; blocker → pre-flight bug.Design: finalized in state.md.echo "MUGGLE_STAGE_SKIP: <reason>".[E2E FAILING], and hand to the watcher.What SKILL.md sets; muted values are Claude Code's defaults
None: SKILL.md is the whole skill.
npx claudepluginhub multiplex-ai/muggle-ai-works --plugin muggleai48 skills in this plugin
/mExplicit short alias for the `muggle` skill (router/menu). ONLY invoke when the user explicitly types `m` or `/m` — never auto-trigger from any other phrasing./mbtExplicit short alias for the `muggle-browser-task` skill. ONLY invoke when the user explicitly types `mbt` or `/mbt` — never auto-trigger from any other phrasing./mbugreportExplicit short alias for the `muggle-bug-report` skill. ONLY invoke when the user explicitly types `mbugreport` or `/mbugreport` — never auto-trigger from any other phrasing./mciExplicit short alias for the `muggle-ci-install` skill. ONLY invoke when the user explicitly types `mci` or `/mci` — never auto-trigger from any other phrasing./mcleanupExplicit short alias for the `muggle-cleanup` skill. ONLY invoke when the user explicitly types `mcleanup` or `/mcleanup` — never auto-trigger from any other phrasing./mdoExplicit short alias for the `muggle-do` skill. ONLY invoke when the user explicitly types `mdo` or `/mdo` — never auto-trigger from any other phrasing.Other plugins' skills for the same job