/muggle:muggle-upgradefrom muggle
Updates Muggle AI components (CLI and Electron runner) to the newest version on the current release lane (stable or staging). Prevents accidental lane switching.
Ships in muggle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Telemetry first step: see
_shared/telemetry-emit.md. UseskillName: "muggle-upgrade".
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.
Update all Muggle AI components to the newest version on the release lane the machine is already on. This means both the @muggleai/works CLI on npm and the Electron runner the CLI manages.
Two lanes ship on npm, each with its own dist-tag:
| Lane | dist-tag | Version shape |
|---|---|---|
| stable | latest | 5.15.0 |
| staging | staging | 5.16.0-staging.109 |
The lane is read off the installed build, never chosen by this skill. A version carrying the -staging. prerelease identifier is on staging; any other is on stable. Stable is the default, and a machine that has never installed a prerelease stays there.
Upgrade within the lane, and compare against that lane's tag. Semver orders 5.15.0-staging.106 below 5.15.0, so a staging build measured against latest looks out of date — that comparison silently moves a staging user onto stable and takes away the lane they were testing on. It is the specific bug this section exists to prevent.
Switch lanes only when the user asks in this invocation — "switch to stable", "go back to prod", "put me on staging", or naming an explicit version to install. A bare invocation always keeps the lane it found. When the user does name a version, install exactly that and say which lane it lands on.
Run /muggle:muggle-status checks to capture current versions.
Capture the installed CLI and resolve its lane:
muggle --versionnpm view @muggleai/works dist-tags --jsonnpm ls -g @muggleai/works --depth=0 (falls back to pnpm ls -g @muggleai/works if not found)Read the lane off the installed version per the table above, then take that lane's tag as the upgrade target. Do not compare across lanes.
Run muggle upgrade. It updates the Electron runner, then the npm global @muggleai/works when it is behind its own lane's tag, and prints the version each moved from and to. muggle upgrade --check reports the same without installing.
If muggle upgrade reports no npm global install, or npm fails, upgrade the CLI by hand. Install the tag, not a version string, so the lane keeps resolving on later runs:
npm install -g @muggleai/works@latest — pnpm: pnpm add -g @muggleai/works@latestnpm install -g @muggleai/works@staging — pnpm: pnpm add -g @muggleai/works@stagingMuggle Watch — gate: autoInstallWatchService. The package install's postinstall already acted on always and never, so print their silent footer. On ask, run Picker 1; on Install it, run muggle watch install and report its last line.
Reload plugins — the global npm install (step 3 or 4) runs a postinstall script that points Claude Code's muggle-works marketplace at the installed package, so the plugin loads from the version just installed — but Claude Code only picks up new skills/agents/hooks after a reload. With Muggle Watch installed, idle background sessions are restarted onto the new build within a few minutes; this session and other terminal sessions still need a reload by hand. Tell the user:
Run
/reload-pluginsto load the updated skills, agents, and hooks.
Wait for the user to confirm they've reloaded before proceeding.
Run /muggle:muggle-status again to confirm everything is healthy after upgrade.
Show a before/after table for CLI, Electron runner, MCP server, and Auth, and name the lane beside the CLI version so it is visible that it did not move. Call out any version that did not change so the user understands what shipped vs what was already current.
If any component upgraded, always end with the /reload-plugins reminder — even if the user doesn't need new features right away, stale cached skills can cause confusing behavior.
If the upgrade fails at any step, report the error and suggest running /muggle:muggle-repair.
| Preference | Gate |
|---|---|
autoInstallWatchService | Step 5 — run Muggle Watch as a scheduled job on any OS; postinstall acts on always/never, ask asks here, default ask |
What SKILL.md sets; muted values are Claude Code's defaults
haikuThree short reads, in order
48 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.npx claudepluginhub multiplex-ai/muggle-ai-works --plugin muggleaiOther plugins' skills for the same job