@muggleai/works 5.22.0-staging.153 → 5.22.0-staging.155
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -17
- package/dist/{chunk-KHHZKYJX.js → chunk-6ROSBSNR.js} +104 -4
- package/dist/{chunk-7GF5CYNK.js → chunk-E3T2RN6R.js} +8 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/.codex-mcp.json +55 -0
- package/dist/plugin/.codex-plugin/plugin.json +46 -0
- package/dist/plugin/.cursor-plugin/plugin.json +1 -1
- package/dist/plugin/README.md +15 -4
- package/dist/plugin/hooks/README.md +12 -0
- package/dist/plugin/hooks/codex-hooks.json +147 -0
- package/dist/plugin/hooks/hooks.json +1 -1
- package/dist/plugin/scripts/codex-hook-windows.mjs +81 -0
- package/dist/plugin/scripts/ensure-electron-app.sh +16 -1
- package/dist/plugin/scripts/guard-run.mjs +16 -7
- package/dist/plugin/scripts/guardrail-capability-claim.sh +10 -4
- package/dist/plugin/scripts/guardrail-classify-gate.sh +3 -2
- package/dist/plugin/scripts/guardrail-record-stage-read.sh +14 -9
- package/dist/plugin/scripts/guardrail-record-stage-signals.sh +1 -1
- package/dist/plugin/scripts/guardrail-record-tests.sh +1 -1
- package/dist/plugin/scripts/guardrails.mjs +234 -64
- package/dist/plugin/skills/CLAUDE.md +6 -0
- package/dist/plugin/skills/_shared/host-tool-equivalents.md +27 -0
- package/dist/plugin/skills/m/SKILL.md +1 -1
- package/dist/plugin/skills/m/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mbt/SKILL.md +1 -1
- package/dist/plugin/skills/mbt/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mdo/SKILL.md +1 -1
- package/dist/plugin/skills/mdo/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mfeedback/SKILL.md +1 -1
- package/dist/plugin/skills/mfeedback/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mimport/SKILL.md +1 -1
- package/dist/plugin/skills/mimport/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mpr/SKILL.md +1 -1
- package/dist/plugin/skills/mpr/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mprefs/SKILL.md +1 -1
- package/dist/plugin/skills/mprefs/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mprfollowup/SKILL.md +1 -1
- package/dist/plugin/skills/mprfollowup/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mregen/SKILL.md +1 -1
- package/dist/plugin/skills/mregen/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mrepair/SKILL.md +1 -1
- package/dist/plugin/skills/mrepair/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mstatus/SKILL.md +1 -1
- package/dist/plugin/skills/mstatus/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mtest/SKILL.md +1 -1
- package/dist/plugin/skills/mtest/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mtestlocal/SKILL.md +1 -1
- package/dist/plugin/skills/mtestlocal/agents/openai.yaml +7 -0
- package/dist/plugin/skills/mtestprep/SKILL.md +1 -1
- package/dist/plugin/skills/mtestprep/agents/openai.yaml +7 -0
- package/dist/plugin/skills/muggle/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-browser-task/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-do/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-feedback/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-pr-followup/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-pr-visual-walkthrough/SKILL.md +43 -41
- package/dist/plugin/skills/muggle-preferences/SKILL.md +28 -26
- package/dist/plugin/skills/muggle-repair/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-status/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-test/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-test-feature-local/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-test-import/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-test-prepare/SKILL.md +145 -143
- package/dist/plugin/skills/muggle-test-regenerate-missing/SKILL.md +2 -0
- package/dist/plugin/skills/muggle-upgrade/SKILL.md +2 -0
- package/dist/plugin/skills/mupgrade/SKILL.md +1 -1
- package/dist/plugin/skills/mupgrade/agents/openai.yaml +7 -0
- package/dist/release-manifest.json +3 -3
- package/dist/{src-VVWBQMWR.js → src-V245RV7L.js} +1 -1
- package/package.json +4 -2
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-mcp.json +55 -0
- package/plugin/.codex-plugin/plugin.json +46 -0
- package/plugin/.cursor-plugin/plugin.json +1 -1
- package/plugin/README.md +15 -4
- package/plugin/hooks/README.md +12 -0
- package/plugin/hooks/codex-hooks.json +147 -0
- package/plugin/hooks/hooks.json +1 -1
- package/plugin/scripts/codex-hook-windows.mjs +81 -0
- package/plugin/scripts/ensure-electron-app.sh +16 -1
- package/plugin/scripts/guard-run.mjs +16 -7
- package/plugin/scripts/guardrail-capability-claim.sh +10 -4
- package/plugin/scripts/guardrail-classify-gate.sh +3 -2
- package/plugin/scripts/guardrail-record-stage-read.sh +14 -9
- package/plugin/scripts/guardrail-record-stage-signals.sh +1 -1
- package/plugin/scripts/guardrail-record-tests.sh +1 -1
- package/plugin/scripts/guardrails.mjs +234 -64
- package/plugin/skills/CLAUDE.md +6 -0
- package/plugin/skills/_shared/host-tool-equivalents.md +27 -0
- package/plugin/skills/m/SKILL.md +1 -1
- package/plugin/skills/m/agents/openai.yaml +7 -0
- package/plugin/skills/mbt/SKILL.md +1 -1
- package/plugin/skills/mbt/agents/openai.yaml +7 -0
- package/plugin/skills/mdo/SKILL.md +1 -1
- package/plugin/skills/mdo/agents/openai.yaml +7 -0
- package/plugin/skills/mfeedback/SKILL.md +1 -1
- package/plugin/skills/mfeedback/agents/openai.yaml +7 -0
- package/plugin/skills/mimport/SKILL.md +1 -1
- package/plugin/skills/mimport/agents/openai.yaml +7 -0
- package/plugin/skills/mpr/SKILL.md +1 -1
- package/plugin/skills/mpr/agents/openai.yaml +7 -0
- package/plugin/skills/mprefs/SKILL.md +1 -1
- package/plugin/skills/mprefs/agents/openai.yaml +7 -0
- package/plugin/skills/mprfollowup/SKILL.md +1 -1
- package/plugin/skills/mprfollowup/agents/openai.yaml +7 -0
- package/plugin/skills/mregen/SKILL.md +1 -1
- package/plugin/skills/mregen/agents/openai.yaml +7 -0
- package/plugin/skills/mrepair/SKILL.md +1 -1
- package/plugin/skills/mrepair/agents/openai.yaml +7 -0
- package/plugin/skills/mstatus/SKILL.md +1 -1
- package/plugin/skills/mstatus/agents/openai.yaml +7 -0
- package/plugin/skills/mtest/SKILL.md +1 -1
- package/plugin/skills/mtest/agents/openai.yaml +7 -0
- package/plugin/skills/mtestlocal/SKILL.md +1 -1
- package/plugin/skills/mtestlocal/agents/openai.yaml +7 -0
- package/plugin/skills/mtestprep/SKILL.md +1 -1
- package/plugin/skills/mtestprep/agents/openai.yaml +7 -0
- package/plugin/skills/muggle/SKILL.md +2 -0
- package/plugin/skills/muggle-browser-task/SKILL.md +2 -0
- package/plugin/skills/muggle-do/SKILL.md +2 -0
- package/plugin/skills/muggle-feedback/SKILL.md +2 -0
- package/plugin/skills/muggle-pr-followup/SKILL.md +2 -0
- package/plugin/skills/muggle-pr-visual-walkthrough/SKILL.md +43 -41
- package/plugin/skills/muggle-preferences/SKILL.md +28 -26
- package/plugin/skills/muggle-repair/SKILL.md +2 -0
- package/plugin/skills/muggle-status/SKILL.md +2 -0
- package/plugin/skills/muggle-test/SKILL.md +2 -0
- package/plugin/skills/muggle-test-feature-local/SKILL.md +2 -0
- package/plugin/skills/muggle-test-import/SKILL.md +2 -0
- package/plugin/skills/muggle-test-prepare/SKILL.md +145 -143
- package/plugin/skills/muggle-test-regenerate-missing/SKILL.md +2 -0
- package/plugin/skills/muggle-upgrade/SKILL.md +2 -0
- package/plugin/skills/mupgrade/SKILL.md +1 -1
- package/plugin/skills/mupgrade/agents/openai.yaml +7 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mpr"
|
|
5
|
+
short_description: "Short alias for the muggle-pr-visual-walkthrough skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -6,4 +6,4 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
# mprefs — alias for muggle-preferences
|
|
8
8
|
|
|
9
|
-
Invoke the `muggle-preferences` skill via the Skill tool. Forward any user-provided arguments unchanged.
|
|
9
|
+
Invoke the `muggle-preferences` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-preferences/SKILL.md` and follow it with those arguments.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mprefs"
|
|
5
|
+
short_description: "Short alias for the muggle-preferences skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -6,4 +6,4 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
# mprfollowup — alias for muggle-pr-followup
|
|
8
8
|
|
|
9
|
-
Invoke the `muggle-pr-followup` skill via the Skill tool. Forward any user-provided arguments unchanged.
|
|
9
|
+
Invoke the `muggle-pr-followup` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-pr-followup/SKILL.md` and follow it with those arguments.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mprfollowup"
|
|
5
|
+
short_description: "Short alias for the muggle-pr-followup skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -6,4 +6,4 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
# mregen — alias for muggle-test-regenerate-missing
|
|
8
8
|
|
|
9
|
-
Invoke the `muggle-test-regenerate-missing` skill via the Skill tool. Forward any user-provided arguments unchanged.
|
|
9
|
+
Invoke the `muggle-test-regenerate-missing` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-test-regenerate-missing/SKILL.md` and follow it with those arguments.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mregen"
|
|
5
|
+
short_description: "Short alias for the muggle-test-regenerate-missing skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -6,4 +6,4 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
# mrepair — alias for muggle-repair
|
|
8
8
|
|
|
9
|
-
Invoke the `muggle-repair` skill via the Skill tool. Forward any user-provided arguments unchanged.
|
|
9
|
+
Invoke the `muggle-repair` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-repair/SKILL.md` and follow it with those arguments.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mrepair"
|
|
5
|
+
short_description: "Short alias for the muggle-repair skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -6,4 +6,4 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
# mstatus — alias for muggle-status
|
|
8
8
|
|
|
9
|
-
Invoke the `muggle-status` skill via the Skill tool. Forward any user-provided arguments unchanged.
|
|
9
|
+
Invoke the `muggle-status` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-status/SKILL.md` and follow it with those arguments.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mstatus"
|
|
5
|
+
short_description: "Short alias for the muggle-status skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -6,4 +6,4 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
# mtest — alias for muggle-test
|
|
8
8
|
|
|
9
|
-
Invoke the `muggle-test` skill via the Skill tool. Forward any user-provided arguments unchanged.
|
|
9
|
+
Invoke the `muggle-test` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-test/SKILL.md` and follow it with those arguments.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mtest"
|
|
5
|
+
short_description: "Short alias for the muggle-test skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -6,4 +6,4 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
# mtestlocal — alias for muggle-test-feature-local
|
|
8
8
|
|
|
9
|
-
Invoke the `muggle-test-feature-local` skill via the Skill tool. Forward any user-provided arguments unchanged.
|
|
9
|
+
Invoke the `muggle-test-feature-local` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-test-feature-local/SKILL.md` and follow it with those arguments.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mtestlocal"
|
|
5
|
+
short_description: "Short alias for the muggle-test-feature-local skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -6,4 +6,4 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
# mtestprep — alias for muggle-test-prepare
|
|
8
8
|
|
|
9
|
-
Invoke the `muggle-test-prepare` skill via the Skill tool. Forward any user-provided arguments unchanged.
|
|
9
|
+
Invoke the `muggle-test-prepare` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-test-prepare/SKILL.md` and follow it with those arguments.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Codex reads this beside SKILL.md. An alias is for the user to type, never for
|
|
2
|
+
# the model to pick on its own: Codex's equivalent of disable-model-invocation.
|
|
3
|
+
interface:
|
|
4
|
+
display_name: "mtestprep"
|
|
5
|
+
short_description: "Short alias for the muggle-test-prepare skill"
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: false
|
|
@@ -8,6 +8,8 @@ description: "Muggle AI command router and menu: the entry point for any questio
|
|
|
8
8
|
|
|
9
9
|
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle"`.
|
|
10
10
|
|
|
11
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
12
|
+
|
|
11
13
|
Use this as the top-level Muggle Test command router.
|
|
12
14
|
|
|
13
15
|
## Preferences
|
|
@@ -7,6 +7,8 @@ description: "Perform a real action on a website or web app from a plain-English
|
|
|
7
7
|
|
|
8
8
|
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-do-task"`.
|
|
9
9
|
|
|
10
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
11
|
+
|
|
10
12
|
Runs a browser automation task described in plain English. Finds or creates the necessary Muggle Test entities automatically, then executes locally with mutation-driven step prediction.
|
|
11
13
|
|
|
12
14
|
## Step 1 — Parse the prompt
|
|
@@ -7,6 +7,8 @@ description: Take a feature request, spec, design, bug, or ticket and carry it a
|
|
|
7
7
|
|
|
8
8
|
> Telemetry first step: see [`../_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-do"`.
|
|
9
9
|
|
|
10
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
11
|
+
|
|
10
12
|
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](../muggle-pr-followup/SKILL.md) watcher invokes `/muggle-do` again with the *address-reviews* directive when new reviews land.
|
|
11
13
|
|
|
12
14
|
## Forward pipeline (fresh feature)
|
|
@@ -8,6 +8,8 @@ description: "Use when the user wants to flag that a generated Muggle Test actio
|
|
|
8
8
|
|
|
9
9
|
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-feedback"`.
|
|
10
10
|
|
|
11
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
12
|
+
|
|
11
13
|
Capture user feedback on what a generated Muggle Test action script did wrong. The server uses each feedback row to find similar test cases via LLM and regenerate their scripts in the background.
|
|
12
14
|
|
|
13
15
|
## Routing
|
|
@@ -8,6 +8,8 @@ description: "Use when the user wants a pull request's incoming review feedback
|
|
|
8
8
|
|
|
9
9
|
> Telemetry first step: see [`../_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-pr-followup"`.
|
|
10
10
|
|
|
11
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
12
|
+
|
|
11
13
|
A watcher that babysits one open PR toward **merge-ready** — review threads addressed, CI green, and the branch rebased on its base. Polls for actionable feedback, check-run state, and the branch's standing against its base; when feedback lands, CI goes red, or the branch falls behind or conflicts with its base, hands the work to `/muggle-do` and exits. On merge or close, it hands the terminal wrap-up to `/muggle-do` the same way — teardown when merged, then a next-step suggestion. `/muggle-do` is the executor — it classifies the reviews, fixes the failing checks, or rebases onto the base (resolving any conflicts), pushes, replies per comment, and respawns the watcher.
|
|
12
14
|
|
|
13
15
|
**The watcher is a dumb pipe.** It does not classify reviews, iterate cycles, post replies, or escalate. All of that lives in `/muggle-do`. See [stage-8 design](../../../../muggle-ai-brain/architecture/2026-05-08-muggle-do-pr-comment-loop-design.md) for the rationale.
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: muggle-pr-visual-walkthrough
|
|
3
|
-
model: sonnet
|
|
1
|
+
---
|
|
2
|
+
name: muggle-pr-visual-walkthrough
|
|
3
|
+
model: sonnet
|
|
4
4
|
description: "Post a visual walkthrough of Muggle AI E2E acceptance results to a pull request — pass/fail summary, step-by-step screenshots, and per-test-case dashboard links — rendered by the `muggle build-pr-section` CLI. Use whenever tests already ran and the user wants that evidence on the PR for reviewers: 'post results to the PR', 'attach the screenshots and pass/fail summary', 'give reviewers visual proof the flows passed', 'stick the Muggle E2E results on my PR'. Invoke it before inspecting anything — it finds the PR and gathers the run's results itself, so looking up the PR or the run by hand duplicates its first step, and a hand-written PR comment skips the CLI's formatting. Use at the end of any Muggle Test run, local or remote. Boundary: it posts existing results and never runs tests; to test changes, use muggle-test."
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Muggle Test PR Visual Walkthrough
|
|
8
|
-
|
|
9
|
-
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-pr-visual-walkthrough"`.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
This is
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
| `muggle-
|
|
22
|
-
| `muggle-test
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Muggle Test PR Visual Walkthrough
|
|
8
|
+
|
|
9
|
+
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-pr-visual-walkthrough"`.
|
|
10
|
+
|
|
11
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
12
|
+
|
|
13
|
+
Renders a visual walkthrough of Muggle AI E2E acceptance test results and posts it to a PR. Each test case links to its detail page on the Muggle AI dashboard, so reviewers can click through to step-by-step screenshots — not just a pass/fail flag.
|
|
14
|
+
|
|
15
|
+
This skill is a **dispatcher**: it resolves the mode and any user interaction, then hands execution to the `visual-walkthrough-builder` agent (`plugin/agents/visual-walkthrough-builder.md`), which renders and delivers per its own contract.
|
|
16
|
+
|
|
17
|
+
This is the **canonical PR-walkthrough workflow** shared across every Muggle Test entry point:
|
|
18
|
+
|
|
19
|
+
| Caller | Mode | When to invoke |
|
|
20
|
+
| :--- | :--- | :--- |
|
|
21
|
+
| `muggle-test` | **Mode A** (post to existing PR) | After publishing results, user opts in via `AskUserQuestion` |
|
|
22
|
+
| `muggle-test-feature-local` | **Mode A** (post to existing PR) | After publishing the run, user opts in via `AskUserQuestion` |
|
|
23
|
+
| `muggle-do` / `open-prs.md` | **Mode A** (settle the designated comment) | Right after PR creation — the walkthrough fills the comment the PR reserved for it, and `comment` posts as follow-up |
|
|
24
|
+
| `muggle-test` Mode C / `acceptance-tester` agent | **Mode C** (embed in verdict comment) | Inside an open-PR sweep orchestrator — caller folds the rendered body into a single per-PR verdict comment |
|
|
25
|
+
|
|
26
|
+
## Preferences
|
|
27
|
+
|
|
28
|
+
Callers consult the `postPRVisualWalkthrough` gate **before** invoking this skill — by the time it runs, posting is already approved. Per-key gate definitions live in `plugin/skills/muggle-preferences/preference-gates/`.
|
|
29
|
+
|
|
30
|
+
## Procedure
|
|
31
|
+
|
|
32
|
+
1. **Resolve the mode.** Chosen by the caller, never the user: top-level `muggle-test`/`muggle-test-feature-local` and `muggle-do` PR creation → `post` (Mode A); a caller that needs the block rendered without posting → `render-for-new-pr` (Mode B); an orchestrator passing `mode: "embed"` → Mode C.
|
|
33
|
+
2. **Mode A only — find the PR** with `gh pr view --json number,url,title`. No PR on the branch → `AskUserQuestion`: create a new PR with the walkthrough in the body (switch to Mode B and hand the rendered block back to the caller), or skip posting. `gh` missing/unauthenticated → tell the user, suggest `gh auth login`, stop. This is the skill's only interactive branch — resolve it **before** dispatching.
|
|
34
|
+
3. **Gather the inputs.** The `E2eReport` JSON if the caller already assembled it (see [`e2e-report-assembly.md`](e2e-report-assembly.md)), else the run identifiers (`projectId`, per-test `runId`/`testCaseId`) the agent needs to assemble it.
|
|
35
|
+
4. **Dispatch** the `visual-walkthrough-builder` agent (subagent type `muggle:visual-walkthrough-builder`; bare `visual-walkthrough-builder` where the plugin namespace is absent), synchronously, passing: mode, PR number + repo (Mode A), and the report JSON or identifiers. In a harness with no agent/subagent facility, execute `plugin/agents/visual-walkthrough-builder.md` inline instead.
|
|
36
|
+
5. **Relay the result.** Mode A → confirm to the user with the PR URL. Modes B/C → return the agent's `{body, comment}` to the caller verbatim; the caller owns PR creation (Mode B) or the single verdict comment (Mode C). A `needs-input:` line from the agent names a missing report field — surface it to the caller; never fabricate the field.
|
|
37
|
+
|
|
38
|
+
## Guardrails
|
|
39
|
+
|
|
40
|
+
- The rendered markdown is CLI-owned end to end — this skill never writes, edits, or post-processes it; those rules ride with the agent.
|
|
41
|
+
- Mode is chosen by the caller, not the user.
|
|
42
|
+
- Never create a PR without confirmation in Mode A.
|
|
43
|
+
- Don't run tests — this skill only dispatches rendering/posting of existing results. No report and no run identifiers in context → redirect the caller to `muggle-test`, `muggle-test-feature-local`, or `muggle-do`.
|
|
44
|
+
- The designated comment carries a real Muggle run or a verified `MUGGLE_E2E_SKIP` code, and nothing else. Never put another tool's findings — puppeteer output, a unit-test summary, a manual check — under the walkthrough heading or the slot marker: that heading is Muggle vouching for a run, and a PreToolUse guard denies the post outright when no run was recorded. Supplemental evidence is welcome as its own comment, without the heading or marker.
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: muggle-preferences
|
|
3
|
-
model: haiku
|
|
1
|
+
---
|
|
2
|
+
name: muggle-preferences
|
|
3
|
+
model: haiku
|
|
4
4
|
description: "View, set, or reset Muggle AI preferences that control testing behavior. Use when the user asks to see their muggle settings, what a setting does, which setting controls a behavior (stop the login prompt, skip auto-rebase), where the settings live, or to change, configure, or reset one. Route these through this skill rather than answering from the preferences line in session context — it explains what each key gates, its allowed values, and writes changes to the right file. Triggers on: 'muggle preferences', 'what are my muggle settings', 'list every muggle preference', 'set autoLogin to always', 'turn autoRebase off', 'muggle config', 'reset muggle preferences', 'configure muggle', 'muggle setup'."
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Muggle Test Preferences
|
|
8
|
-
|
|
9
|
-
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-preferences"`.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
|
16
|
-
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
| "
|
|
20
|
-
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- **
|
|
27
|
-
- **
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Muggle Test Preferences
|
|
8
|
+
|
|
9
|
+
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-preferences"`.
|
|
10
|
+
|
|
11
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
12
|
+
|
|
13
|
+
Pick the operation, then read its op file for the procedure.
|
|
14
|
+
|
|
15
|
+
| Intent | Op file |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `/muggle-preferences <key>` or "change my `<key>` preference" | `ops/change-one.md` |
|
|
18
|
+
| User names key + value (e.g. "set autoLogin to always") | `ops/set.md` |
|
|
19
|
+
| "show preferences" / no args | `ops/list.md` |
|
|
20
|
+
| "configure muggle" / "muggle setup" / change without naming a key | `ops/configure.md` |
|
|
21
|
+
| "reset preferences" | `ops/reset.md` |
|
|
22
|
+
| Session context says first-run setup has not been run | `ops/onboard.md` |
|
|
23
|
+
|
|
24
|
+
## Shared context (all ops)
|
|
25
|
+
|
|
26
|
+
- **Current values**: session-context line `Muggle Test Preferences key=value …`, already resolved against the shipped defaults in `${CLAUDE_PLUGIN_ROOT}/config/preference-defaults.json`.
|
|
27
|
+
- **Per-key files**: `preference-gates/<key>.md`. Key list = `ls preference-gates/*.md` minus `README.md`.
|
|
28
|
+
- **Allowed values**: `always`/`never`/`ask`, except `defaultExecutionMode` (`local`/`remote`/`ask`), `autoE2ETest` (`always`/`ask`), `watcherLifetime` (`1d`/`7d`/`never`), and `maxCatchUpRebases` (a positive integer, or `never`).
|
|
29
|
+
- **Scope**: preferences are user-level. Every write lands in `~/.muggle-ai/preferences.json` and applies to every repo. If the user asks for a per-project setting, say it isn't supported and confirm before setting it everywhere.
|
|
@@ -8,6 +8,8 @@ description: Diagnose and fix a broken Muggle AI installation. Use when user typ
|
|
|
8
8
|
|
|
9
9
|
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-repair"`.
|
|
10
10
|
|
|
11
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
12
|
+
|
|
11
13
|
Automatically diagnose and fix broken components.
|
|
12
14
|
|
|
13
15
|
## Steps
|
|
@@ -8,6 +8,8 @@ description: "Check the health of the user's Muggle AI installation and diagnose
|
|
|
8
8
|
|
|
9
9
|
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-status"`.
|
|
10
10
|
|
|
11
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
12
|
+
|
|
11
13
|
Run a full health check and report results.
|
|
12
14
|
|
|
13
15
|
## Preferences
|
|
@@ -11,6 +11,8 @@ mandatoryStages:
|
|
|
11
11
|
|
|
12
12
|
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-test"`.
|
|
13
13
|
|
|
14
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
15
|
+
|
|
14
16
|
A router skill that detects code changes, resolves impacted test cases, executes them locally or remotely, reads the cloud results from the Muggle AI dashboard (local runs are published by the studio during execution; remote runs publish cloud-side), and posts E2E acceptance summaries to the PR. The user can invoke this at any moment, in any state.
|
|
15
17
|
|
|
16
18
|
## Beyond a Playwright/Cypress runner
|
|
@@ -9,6 +9,8 @@ mandatoryStages:
|
|
|
9
9
|
|
|
10
10
|
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-test-feature-local"`.
|
|
11
11
|
|
|
12
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
13
|
+
|
|
12
14
|
**Goal:** Run or generate an end-to-end test against a **local URL** using Muggle Test's Electron browser.
|
|
13
15
|
|
|
14
16
|
| Scope | MCP tools |
|
|
@@ -7,6 +7,8 @@ description: "Bring existing tests and test artifacts INTO Muggle Test — from
|
|
|
7
7
|
|
|
8
8
|
> Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-test-import"`.
|
|
9
9
|
|
|
10
|
+
> Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
|
|
11
|
+
|
|
10
12
|
This skill migrates existing test artifacts into Muggle Test. It reads your source files,
|
|
11
13
|
structures them into use cases and test cases, gets your approval, then creates everything
|
|
12
14
|
in a Muggle Test project via the API.
|