/mad-skills:wright <plugin-name>, --dry-run (both optional)from mad-skills
Updates Claude Code marketplace plugins from inside a session — all installed plugins or one fuzzy-matched by name, with a dry-run flag. Orchestrates the `claude plugin` CLI to refresh sources and resolve versions.
Ships in mad-skills. 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.
Read when SKILL.md points to them; scripts run unread.
When this skill is invoked, IMMEDIATELY output the banner below before doing anything else.
Pick ONE tagline at random — vary your choice each time.
CRITICAL: Reproduce the banner EXACTLY character-for-character, including the diagonal / glyph before the name.
{tagline}
/$$ /$$ /$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$$$
/$$/| $$ /$ | $$| $$__ $$|_ $$_/ /$$__ $$| $$ | $$|__ $$__/
/$$/ | $$ /$$$| $$| $$ \ $$ | $$ | $$ \__/| $$ | $$ | $$
/$$/ | $$/$$ $$ $$| $$$$$$$/ | $$ | $$ /$$$$| $$$$$$$$ | $$
/$$/ | $$$$_ $$$$| $$__ $$ | $$ | $$|_ $$| $$__ $$ | $$
/$$/ | $$$/ \ $$$| $$ \ $$ | $$ | $$ \ $$| $$ | $$ | $$
/$$/ | $$/ \ $$| $$ | $$ /$$$$$$| $$$$$$/| $$ | $$ | $$
|__/ |__/ \__/|__/ |__/|______/ \______/ |__/ |__/ |__/
Taglines:
After the banner, display parsed input:
┌─ Input ────────────────────────────────────────
│ Target: {plugin name or "all installed"}
│ Flags: {parsed flags or "none"}
└────────────────────────────────────────────────
Pre-flight results:
── Pre-flight ───────────────────────────────────
✅ {dep} {version or "found"}
⚠️ {dep} not found → {fallback detail}
❌ {dep} missing → stopping
──────────────────────────────────────────────────
Status icons: ✅ done · ❌ failed · ⚠️ degraded · ⏳ working · ⏭️ skipped
Update installed Claude Code plugins by orchestrating the claude plugin
CLI — the CLI does the real work (refreshing marketplace sources, including
the GCS-backed official one, resolving versions, populating the cache); this
skill adds only what the CLI itself lacks on its own: updating everything in
one call, and targeting one plugin by fuzzy name instead of its exact
plugin@marketplace id.
Parse the optional argument and flag from the request:
<name> — fuzzy-matched against installed plugins (e.g. super → superpowers)--dry-run — resolve targets and print what would run, without executing
anything. The CLI has no check/preview mode of its own, so this can only
list targets and their current versions, not the versions available.| Dependency | Type | Check | Required | Resolution | Detail |
|---|---|---|---|---|---|
| claude | cli | claude --version | yes | stop | This skill runs inside a Claude Code session — if the CLI itself isn't on PATH something is very wrong; stop and report |
| python3 | cli | python3 --version | yes | url | Install from https://www.python.org/downloads/ — the engine script is Python (reuses difflib for fuzzy name matching rather than reimplementing it) |
For each row, in order:
Engine: skills/wright/scripts/update-plugins.py. Runs the updates by
default; --dry-run previews only. Run via Bash, resolving the skill root
the same way every other skill in this plugin does:
for SKILL_ROOT in \
"${CLAUDE_PLUGIN_ROOT:-}" \
"$HOME/.claude/plugins/marketplaces/slamb2k" \
"$(dirname "$(readlink -f "$0")")/.."
do
[ -f "$SKILL_ROOT/skills/wright/scripts/update-plugins.py" ] && break
done
python3 "$SKILL_ROOT/skills/wright/scripts/update-plugins.py" [<query>] [--dry-run]
claude plugin marketplace update (every
marketplace, or just the one marketplace for a single fuzzy-matched
target), then claude plugin update <id> per target, and reports a
PLUGIN / BEFORE / AFTER / STATUS table by diffing claude plugin list
before and after. The final line is
WRIGHT_RESULT applied=true updated=<n> names=<…> failed=<n> failed_names=<…> marketplaces_failed=<…>.
One failure never stops the run:
claude plugin update fails is recorded as failed.0 when everything
succeeded and 2 when the run was partial, and prints each failure with
its reason plus a retry hint for each unreachable marketplace.--dry-run). Resolves and lists the targets and their
current versions without touching anything, ending with
WRIGHT_RESULT applied=false targets=<n>.no installed plugins found on stderr — relay that directly.nonexistent-xyz → context7) often enough to be worse
than admitting no match. On a miss it exits non-zero with
no installed plugin matches '<query>' — installed: <comma-separated names> on stderr. Use that list yourself: if the intended plugin is
reasonably inferable from context (a near-miss spelling, a name you
recognize from the conversation), say which one you picked and why, then
re-run with the exact name; if it's genuinely ambiguous, ask the user
rather than guessing.Fuzzy matching (exact base name → unique/closest-among-candidates substring)
is the entire reason this is Python rather than bash: reusing difflib
beats hand-rolling string-distance matching in shell.
ponytail: no dry-run version-delta preview — the CLI has no check mode, so --dry-run can only show current versions, not what's available. Upgrade path: none needed unless the claude CLI itself grows a preview mode to build on.
Restart to apply. The CLI updates the install on disk, but this running
session keeps the old code until it restarts — tell the user to restart the
session (or their client) so the new versions actually load, naming what
changed from the names= list.
claude-plugins-official plugins are covered
the same way as any other plugin here: claude plugin marketplace update
refreshes the GCS-backed manifest their marketplace lives in.scripts/update-plugins.test.js runs the engine against a fake claude
CLI on PATH to cover the partial-failure paths (bad marketplace, failed
plugin update, bulk-only refresh failure, single target);
tests/evals.json covers the skill-level behavior.┌─ Wright · Report ──────────────────────────────
│
│ ✅ Update complete (⚠️ Partial update — exit 2)
│
│ 🔧 Target: {plugin name or "all installed"}
│
│ 📊 Plugin Before After Status
│ {name} {version} {version} ↑ updated
│ {name} {version} {version} = current
│ {name} {version} {version} ⏭ skipped
│ {name} {version} {version} ✗ failed
│
│ ❌ Not updated (only when failed > 0)
│ • {name}: {reason}
│ • hint: {retry hint for each failed marketplace}
│
│ ⚡ {n} updated — restart your session to apply {names}
│ (or: "All already current. Nothing to restart.")
│
└─────────────────────────────────────────────────
Status is always shown as symbol and word — never colour alone. On a
partial run, keep the list of updated plugins, and put the failures with their
reasons in the report; don't retry them unasked. If a marketplace fails with a
git error, the hint's git -C ~/.claude/plugins/marketplaces/<m> pull --ff-only
is a safe fix to offer — it only fast-forwards that marketplace's clone.
If --dry-run, replace the report with the script's target list and note
that nothing was executed — no report box needed for a preview.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/braceInitialize any project directory with a standard scaffold for AI-assisted development. Creates specs/ and context/ directories, a project AGENTS.md with development workflow and guardrails (plus a CLAUDE.md that just points at it), .gitignore, and branch protection. Idempotent — safe to run on existing projects. Triggers: "init project", "setup brace", "brace", "initialize", "bootstrap", "scaffold"./buildContext-isolated feature development pipeline. Takes a detailed design/plan as argument and executes the full feature-dev lifecycle (explore, question, architect, implement, review, ship) inside subagents so the primary conversation stays compact. Use when you have a well-defined plan and want autonomous execution with minimal context window consumption./distilOther plugins' skills for the same job
npx claudepluginhub slamb2k/mad-skills --plugin mad-skills