Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

plugin-update

FreeRuns bundled scriptsNot checked

Updates every installed brewcode plugin and mod in one run; shows versions before -> after, what changed and the next steps. Triggers - update plugins, check…

kochetkov-maby kochetkov-ma★ 41 GitHub stars

About this skill

Brewcode Plugin Update

First output: the PLAN block below, as plain text, before any tool call.

Updates every installed claude-brewcode plugin and mod at its own scope without asking what to update, offers what is missing in one question, then prints one report: versions before -> after, what changed for you, numbered next steps. /reload-plugins and the /plugin UI are user handoffs, never tool actions.

Prompt contract

$ARGUMENTS is one free-form RU/EN prompt; the mode token may sit anywhere in it.

  1. Mode: an explicit mode token wins outright; else the most distinct whole-word keyword hits (table below). Tie with check -> check; update vs all -> the keyword that comes first. No hit or empty -> update.
  2. Scope: always every installed claude-brewcode plugin and mod, in every scope; the prompt never narrows the update (user ruling: updating is automatic). A missing plugin or mod named in the prompt is still only an offer: the Phase 3 question (update) or all.
  3. Ask: at most ONE AskUserQuestion per run, at most 2 questions, only in update and only when Phase 2 lists offers; after the PLAN block, before the first change. The update itself is never asked about. check asks nothing; all takes every offer without asking (the word is consent).

Your reply starts with this block, filled from the prompt alone, then Phase 0 runs. Print it once, in every mode, check included (labels and plan values English, INPUT verbatim). A block only in your thinking or only inside a tool call does not count:

PLAN — brewtools:plugin-update
INPUT:  <arguments verbatim, or "(empty)">
MODE:   <resolved> — <explicit | matched keyword: X | default>
SCOPE:  every installed claude-brewcode plugin and mod, every scope; missing ones <update: one question | all: installed | check: listed>
DO:     <2-5 imperative bullets, in phase order>
RESULT: <what the user ends up holding>

Modes

Mode EN keywords RU keywords Mutates? Behavior
update (empty), update, upgrade обнови, обновление yes Phases 0-6: updates every outdated installed row; asks once, only when offers exist
check check, status проверь, статус no Phases 0-2, then the Phase 6 check report; no question, no marketplace refresh
all all, everything, full всё, полностью yes update + every offer installed without asking + other marketplaces' rows + prune

Critical Rules

  • Run every claude plugin ... command via the Bash tool, one plugin name per call; show the full output of every update and install.
  • Never suggest --plugin-dir to end users: it is a dev-only flag.
  • Scratch: Phase 0 makes ONE private mktemp -d dir and prints SCRATCH <path>; every later <dir> is that literal path (shell variables do not survive between Bash calls). Never pick a dir by glob. Phase 6 removes it after the report.
  • scripts/update-flow.mjs builds the plan and the report from references/update-flow.md (data: §3, strings: §5). Print the report verbatim; never re-word it, re-order it or add a table of your own.
  • Markers in anything you print: 🟢 done, 🔵 info, offer or next step, 🔴 failed, ⚪ unchanged or not installed. Fence marker lines (✅ … OK, ❌ … degraded, ❌ … FAILED, SCRATCH <dir>) are for you only: never copy one into a message.
  • Mods need Claude Code 2.1.301 or newer: below that, plan offers no mod and the report prints its update-Claude-Code-first line. Never install a mod outside offers.
  • The report's Next steps start with /reload-plugins on every update/all run, no-op runs included; never print a separate reload notice.
  • AskUserQuestion: option lists only, no free-text fields.

Phase 0 — Inventory

The PLAN block is already above in your reply, as plain text; not yet -> print it now, before this first tool call.

EXECUTE using Bash tool:

D="$(mktemp -d "${TMPDIR:-/tmp}/plugin-update.XXXXXX")" && echo "SCRATCH $D" && echo "✅ scratch OK" || echo "❌ scratch FAILED"

STOP if ❌ — report the error; nothing has changed.

PRIMARY (CC 2.1.163+) — EXECUTE using Bash tool, <dir> = the SCRATCH path:

unset CLAUDECODE && claude --version > "<dir>/cc.txt"
claude plugin list --json > "<dir>/before.json" && echo "✅ list OK" || echo "❌ list FAILED"

A valid JSON array, empty included, is the authoritative inventory; plan reads each row's id, version (may be "unknown"), scope, enabled, projectPath (project/local rows; other projects too). Ids ending @inline, @skills-dir or @synced are not marketplace installs and never update.

FALLBACK (CC < 2.1.163: ❌ above, or Phase 2 reports "error":"no-inventory") — EXECUTE using Bash tool:

bash "${CLAUDE_SKILL_DIR}/scripts/discover-plugins.sh" > "<dir>/before.json" && echo "✅ discover OK" || echo "❌ discover FAILED"

B

Full SKILL.md on GitHub

Install plugin-update in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Bash
AskUserQuestion

Bundled files

README.mdreferences/autoupdate-research.mdreferences/discovery.mdreferences/install-prompt.mdreferences/update-commands.mdreferences/update-flow.mdreferences/update-prompt.mdscripts/discover-plugins.shscripts/fetch-latest-versions.shscripts/update-flow.mjs

FAQ

What does the plugin-update skill do?

Updates every installed brewcode plugin and mod in one run; shows versions before -> after, what changed and the next steps. Triggers - update plugins, check versions, обнови плагины.

How do I install the plugin-update skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the plugin-update skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare plugin-update with