원클릭으로
brewtools-plugin-update
Checks, installs, updates Claude Code plugins. Triggers - update plugins, check versions, обнови плагины.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Checks, installs, updates Claude Code plugins. Triggers - update plugins, check versions, обнови плагины.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
SSH server management — connect, configure, deploy, administer Linux servers with safety gates.
Manager mode. on installs+arms a HARD delegation wall into THIS project (PreToolUse denies Write/Edit/Bash in main session, subagents free); off disarms; uninstall removes it. Codeword ++m auto-injects a delegate-everything prompt (plan-aware: adds the plan supplement in plan mode); ++a auto-injects an architecture-first directive (mode-agnostic); ++rr/++r auto-inject review discipline (anti-regression / two-phase double-check), all independent of this skill. level strict|balanced, status, edit, reset. Triggers: manager, менеджер, hard mode, хард режим, delegate.
Installs or removes the think-short terse-mode hooks. Triggers: think-short, be terse, terse mode, инжект терс-режим.
Creates and improves Claude Code subagents. Triggers: create agent, improve agent, scaffold agent, fix agent.
Extracts etalon classes, patterns, architecture into convention docs. Triggers: extract conventions, etalon classes.
Orchestrates e2e testing: BDD scenarios, Playwright autotests. Triggers: e2e tests, BDD scenarios, write autotest.
| name | brewtools:plugin-update |
| description | Checks, installs, updates Claude Code plugins. Triggers - update plugins, check versions, обнови плагины. |
| user-invocable | true |
| disable-model-invocation | true |
| argument-hint | [check|update|all] — no args = interactive. check = status only, update = prompt to update, all = everything non-interactive |
| allowed-tools | Read, Bash, AskUserQuestion, Write, WebFetch |
| model | sonnet |
Check, install, and update the brewcode plugin suite (brewcode, brewdoc, brewtools, brewui). Execute all commands in the current session — never give "you should run" instructions.
Skill arguments received: $ARGUMENTS
| Arg | Behavior |
|---|---|
| (empty) | Interactive — all 6 phases with AskUserQuestion gates |
check | Phases 0-2 only (status table), no prompts |
update | Phases 0-4, non-interactive "Update all" |
all | Phases 0-6 non-interactive |
Parse first token of $ARGUMENTS. Unknown or empty → interactive.
claude plugin ... command via Bash tool. Show full output.--plugin-dir for end users (dev-only).PRIMARY (CC 2.1.163+) — EXECUTE using Bash tool:
unset CLAUDECODE && claude plugin list --json && echo "✅ list OK" || echo "❌ list FAILED"
If the command succeeds and returns a non-empty JSON array, parse it directly. Each object has fields: id (<plugin>@<marketplace>), version (string, may be "unknown"), scope, enabled (boolean), installPath, installedAt, lastUpdated, optional mcpServers.
FALLBACK (CC < 2.1.163 or empty/error output from above) — EXECUTE using Bash tool:
bash "${CLAUDE_SKILL_DIR}/scripts/discover-plugins.sh" && echo "✅ discover OK" || echo "❌ discover FAILED"
STOP if both fail — report to user and continue without installed data (treat everything as missing).
Partition results into: suite = {brewcode, brewdoc, brewtools, brewui}, other = everything else.
Read references/discovery.md for details on both discovery paths.
EXECUTE using Bash tool:
bash "${CLAUDE_SKILL_DIR}/scripts/fetch-latest-versions.sh" && echo "✅ fetch OK" || echo "❌ fetch FAILED"
STOP if ❌ — report network issue, mark latest versions as "unknown", continue.
Merge with Phase 0 data.
Render markdown table to the user:
| Plugin | Installed | Latest | Status |
|---|---|---|---|
| brewcode | 3.4.51 | 3.4.52 | ⬇️ update |
| brewdoc | 3.4.51 | 3.4.51 | ✅ current |
| brewtools | — | 3.4.51 | ❌ missing |
| brewui | 3.4.51 | 3.4.51 | ✅ current |
Status legend: ✅ current, ⬇️ update available, ❌ missing, ❓ unknown.
Also list other plugins below with their versions (informational).
If arg = check → STOP here. Skip to Phase 6.
Precheck:
claude plugin details --help >/dev/null 2>&1 && echo "available" || echo "skip"
If unavailable → SKIP (proceed to Phase 3).
If available, for each installed suite plugin run claude plugin details <plugin>@claude-brewcode and render:
| Plugin | Base Tokens | With Skills | Hooks | Total |
|---|---|---|---|---|
| brewcode | ... | ... | ... | ... |
| brewdoc | ... | ... | ... | ... |
| brewtools | ... | ... | ... | ... |
| brewui | ... | ... | ... | ... |
Adapt column names to actual output fields. Missing field → —. Command failure for a plugin → ❓ for that row, continue.
Phase is informational only; do not block on errors.
For each missing suite plugin, ask via AskUserQuestion (unless arg ∈ {update, all} — all auto-installs, update skips install).
AskUserQuestion (interactive only, if missing plugins exist):
Question: "Install missing brewcode plugins?" Options: "Install all missing" / "Install selected" / "Skip install"
If "Install selected" — ask per plugin with options ["Install", "Skip"].
EXECUTE (idempotent):
claude plugin marketplace add https://github.com/kochetkov-ma/claude-brewcode && echo "✅ marketplace add OK" || echo "⚠️ marketplace add warning (may already exist)"
Then per plugin:
claude plugin install <plugin>@claude-brewcode && echo "✅ install <plugin> OK" || echo "❌ install <plugin> FAILED"
Show full output of each command.
Reference: references/install-prompt.md.
AskUserQuestion (interactive only; update and all auto-pick "Update all"):
Question: "Update brewcode plugin suite?" Options: "Update all" / "Update suite only" / "Update selected" / "Skip updates"
EXECUTE full chain in order:
claude plugin marketplace update claude-brewcode && echo "✅ marketplace update OK" || echo "❌ marketplace update FAILED"
claude plugin update brewcode@claude-brewcode && echo "✅ brewcode update OK" || echo "❌ brewcode update FAILED"
claude plugin update brewdoc@claude-brewcode && echo "✅ brewdoc update OK" || echo "❌ brewdoc update FAILED"
claude plugin update brewtools@claude-brewcode && echo "✅ brewtools update OK" || echo "❌ brewtools update FAILED"
claude plugin update brewui@claude-brewcode && echo "✅ brewui update OK" || echo "❌ brewui update FAILED"
On failure: report exact error and continue. Reference: references/update-commands.md, references/update-prompt.md.
Skip for arg ∈ {check, update}. Interactive or all only.
Auto-update for third-party marketplaces is OFF by default. Toggle per-marketplace via /plugin UI → Marketplaces → claude-brewcode. Exact settings.json key unverified — see references/autoupdate-research.md.
AskUserQuestion (interactive only):
Question: "Enable auto-update for claude-brewcode marketplace?" Options: "Enable via /plugin UI" / "Skip"
Do NOT patch settings.json blindly. Instruct user to toggle via /plugin UI.
EXECUTE using Bash tool:
claude plugin prune --help >/dev/null 2>&1 && claude plugin prune || echo "skipped: claude plugin prune unavailable"
Non-fatal: if CLI lacks prune, prints skip notice and continues.
ALWAYS print the contents of references/reload-notice.md:
⚠️ Reload plugins to activate updates. Preferred: run
/reload-pluginsin this session. Fallback: typeexit, then runclaudeagain.
Final summary: