--- name: setup-status description: "Reports which brewcode setup skills are installed, stale, partial or missing in this project, compares the version each installed artifact was generated under against the installed plugin, prints the exact command to run for each, and upgrades the stale ones on request, one fresh subagent per setup, re-probed after each. Triggers: setup status, what is installed, upgrade setups, что установлено, обнови сетапы." user-invocable: true disable-model-invocation: true argument-hint: "[prompt] [report|upgrade] [|] - no args = full report + one upgrade offer" allowed-tools: [Read, Bash, Glob, Grep, AskUserQuestion, Agent] model: sonnet license: MIT --- # Setup Status Dashboard over every **setup skill** in the brewcode suite: what is set up in this project, at which version against the plugin in use, what drifted or was never installed, and the exact command for each row. `upgrade`, or a yes to the one offer, then brings every stale row it may run current (Phase 3b): one fresh `brewcode:setup-upgrader` subagent per row, re-probed after each. Every probe is an existence check, a stamp read, a `cmp` or a JSON read; `allowed-tools` carries no `Write` and no `Edit`: the subagents write, each through its owner's own `upgrade` section. ## Prompt contract `$ARGUMENTS` is one free-form RU/EN prompt; mode tokens may sit anywhere in it. 1. Mode: an explicit mode token wins outright; else the most distinct whole-word keyword hits (table below). A tie -> `report`. No hit or empty -> `report`. 2. Scope: a plugin name (`brewcode`, `brewtools`, `brewdoc`) or a skill name (`semble-setup`, `docsync`, `task board`, ...) anywhere in the prose is the filter, in both modes, never the first word as a positional filter. Prose naming neither, or empty arguments -> every row, not an error. 3. Ask: at most ONE `AskUserQuestion` call per run, at most 2 questions, never about mode or filter: Q1 "Upgrade N setups now?" (`report` only, >=1 Phase 3b `auto` row, no `RELOAD-NEEDED`) and Q2, Phase 1c's task-tools offer, bundled into that one call. `upgrade` asks no Q1: the typed word is the consent; it still carries Q2 when Q2 applies. | Mode | EN keywords | RU keywords | Mutates? | |------|-------------|-------------|----------| | `report` (default) | *(empty)*, `status`, `report`, `check`, `what`, `show` | `статус`, `отчёт`, `проверь`, `что`, `покажи` | no, except an accepted offer | | `upgrade` | `upgrade`, `update`, `refresh`, `fix`, `apply` | `обнови`, `апгрейд`, `почини`, `примени` | yes | **First output:** the PLAN block below, as plain text, before any tool call. Once, filled from the prompt alone (labels literal, values in the conversation language), never re-printed: ``` PLAN — brewcode:setup-status INPUT: MODE: — ; > SCOPE: ; ; upgrade runs only Phase 3b's auto rows, counted before the first spawn DO: <2-5 imperative bullets: probe, read stamps, classify, plan; report: offer the upgrade and/or the task-graph tools; upgrade: one brewcode:setup-upgrader per row in stage order, re-probe each, stop on the first 🔴. Warn: their Write/Edit into .claude/ prompts in default/acceptEdits mode and is denied in dontAsk> RESULT: ``` ## What it runs and what it never runs `report` runs nothing. `upgrade` runs the owner's own `upgrade` section with `--unattended` for each Phase 3b `auto` row, one fresh subagent per row, sequentially in run-list stage order. Under the flag an owner asks nothing: every gate takes its decline branch and stays pending for you. Each row is then re-probed here (the verdict, never the subagent's claim); the first 🔴 stops the run. Fresh subagent contexts start empty, so rows never answer against each other's stale findings. Never run: `install`, `enable`, `uninstall`, `purge`, `--force`, an interview upgrade (roster class `C`), a re-copy over a `modified` row. Those ask real questions or may overwrite your edits, and two in one session degrade each other; they stay in the run-list, one per fresh session. Never a revert, reset or stash. Main-session writes: the runner's lock dir under the temp root, `scope-guard.sh`'s snapshot in the git dir, and Phase 1c's one-key `settings.json` merge after the user picks it. --- ## Two questions, two signals Installed artifacts and an external dependency are versioned apart and reported apart. The field contract (`version`, `content_version`, `generated_by`, `last_updated`, `doc_type`, and each file type's carrier) lives in [`references/artifact-metadata.md`](references/artifact-metadata.md); this skill consumes it and never restates it. Signal and artifact-kind tables: [`references/signals.md`](references/signals.md), read on demand. --- ## The Roster — SINGLE SOURCE OF TRUTH Every fact about a setup lives in this table, plus its carrier lines in the Phase 2a `STAMPS` heredoc and its byte pairs in the Phase 2b `PAIRS` heredoc, both in `references/phase2-stamps.md`. Adding a setup = one row here + its lines there + its stage in `scripts/upgrade-plan.mjs` `STAGES` and the `references/run-list.md` stage table, plus `DELEGATES` when its `upgrade` spawns a subagent and `SCOPED` when it installs per scope (`tests/upgrade-plan-lockstep.mjs` pins all of them). | # | Skill (command) | Plugin | Anchor artifact | Secondary artifacts | Off-switch: the row is `disabled` when (Phase 1b) | Hook registrations: `` `` `