/magpie-setup:statusfrom magpie-setup
Shows Magpie adoption status in the repo: install method, pin, drift, wired targets, installed skill families, and symlink health. Also lets you change wiring through the setup skill.
Ships in magpie-setup. 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.
Golden rule — a step the sandbox blocks becomes a vetted operation, never a bypass. This holds for the whole run. When anything you need to do fails on a sandbox restriction (a blocked host or transport, a read-only path, a denied credential or socket):
vetted-op-read, vetted-op,
vetted-op-tracker, vetted-op-git), launched with the literal ~ path.
Publishing a change is covered end to end by vetted-op-git:
git-worktree-add, git-fetch, git-stage, git-commit,
git-push-branch, git-pr-create. Run the checks in the sandbox first
with vetted-op-checks (git-commit refuses what they did not pass),
and never hand those steps to the user as commands to paste./magpie-setup:upstream-fix for it: a
closed-shape vetted operation (fixed argv, validated parameters, destination
from the approved policy, no repository code or configuration steering it,
behind a confirmation) or a documented in-sandbox route. Opening that PR
needs the user's go-ahead, like any other publication.Render a one-glance picture of how apache-magpie is adopted in this repo, then let the user reconfigure it without leaving the view. The dashboard answers the questions an operator actually asks: which install method and version are pinned, has the snapshot drifted, which agent targets are wired, which skill families are installed, and are the symlinks healthy.
This skill is the configuration view of adoption. It is read-
only on its own; every change it offers is carried out by
delegating to setup — the one skill
that owns adoption mutation. For a deep integrity / health
check (lock parsing, per-check ✓/✗ matrix, permission-hygiene
audit, ASF comdev MCP prerequisites, stale-worktree sweep), use
setup verify; this skill links to
it rather than duplicating its checks.
Before running its default behaviour, this skill consults
setup-status.md in the personal layer
(.apache-magpie-local/ when the project adopted Magpie, falling back to the main checkout's in a linked worktree,
or <git-common-dir>/apache-magpie/ when Magpie is only installed; applied first, wins on conflict) and
.apache-magpie-overrides/setup-status.md (committed, project-wide)
in the adopter repo, if present, and applies any agent-readable overrides it finds.
See docs/setup/agentic-overrides.md for the contract.
Hard rule: agents NEVER modify the snapshot under <adopter-repo>/.apache-magpie/.
Local modifications go in the override file; framework changes go via PR to apache/magpie.
Also at the top of every run, this skill compares the gitignored
.apache-magpie.local.lock (per-machine fetch) against the
committed .apache-magpie.lock (the project pin). On mismatch the
skill surfaces the gap and proposes
setup update. The proposal is
non-blocking; surfacing the drift is itself part of this skill's
dashboard, so the comparison feeds Step 1
rather than gating the run.
Skill directives (how the user invokes the skill):
| Input | Effect |
|---|---|
| (none) | Render the dashboard, then offer adjustments interactively. |
--no-adjust | Render only; skip the reconfigure offer. |
adjust | Skip straight to the reconfigure flow after a brief state recap. |
Collector flags (passed through to
scripts/collect_status.py):
| Flag | Effect |
|---|---|
--repo <path> | Inspect a repo other than the current git top-level. |
--format md | The Markdown dashboard (default). |
--format json | The raw machine-readable fields (collect.md); add --pretty to indent. |
The default output is the Markdown dashboard, rendered deterministically by the collector.
git rev-parse --show-toplevel succeeds), or an
explicit --repo <path>.python3 on PATH for the deterministic collector
(scripts/collect_status.py). No
third-party packages, no network access.This skill reads only framework-internal, on-disk state (lock
files, symlinks, .gitignore, the post-checkout hook). It reads
no external or private content, so the prompt-injection and
Privacy-LLM gate-checks do not apply.
--repo if given, else
git rev-parse --show-toplevel).<committed-lock> (.apache-magpie.lock) is
absent, the repo is not adopted. Say so, point at
setup to adopt, and stop — there
is no state to render.The collector renders the dashboard itself. Run it (it never writes and never fetches):
magpie-python <framework>/plugins/magpie-setup/skills/status/scripts/collect_status.py
(The script runs from its <framework> copy, not from this skill's own directory: on a marketplace install that directory sits in the plugin cache, which the sandbox cannot read.
The default output
is the Markdown dashboard; pass --format json only when tooling
needs the raw fields — see collect.md.)
OUTPUT CONTRACT — non-negotiable. Present the script's Markdown output verbatim (it is already GitHub-flavoured Markdown — let the harness render the pipe table). Do not: re-draw it as a box-drawing/ASCII table; drop the
servesbullet legend (it carries the agents each directory serves, including the wholeuniversalcluster); add a Reads column back into the table (that is what made it wrap and break); recompute the verdict; or "prettify" the layout. The script, not the agent, owns the rendering, precisely because an LLM formatting pass reliably mangles it (drops the agents-served legend, renames columns, re-introduces the wide column). If you find yourself rebuilding the table, stop and paste the script output instead.
The renderer owns the headline, the agent-target table plus its
serves legend (so the universal cluster and every registry
vendor always appear), the family roster, and the drift /
integrity summary.
Full layout reference, the health-verdict rules, and mode-aware
interpretation: render.md.
After printing the verbatim dashboard, optionally add a one-line
mode-aware note where it helps — without re-tabulating or
contradicting the script output. Example: a method:local
framework checkout commits its symlinks and has no snapshot or
local lock, so the absent snapshot is healthy there but a fault
for a normal adopter (render.md).
Unless --no-adjust was passed, end the dashboard with the
reconfigure offer. Detect the obvious deltas (a registry target
present on disk but not wired; an opt-in family not installed;
dangling symlinks; drift) and present each as a concrete,
confirmable change. On confirmation, delegate to
setup with the right flags
(agents:<list>, skill-families:<list>, or update) — this
skill never edits symlinks, locks, or .gitignore itself.
Full gap-detection and delegation rules: adjust.md.
.gitignore. Every
change is delegated to setup,
preserving the framework's single source of truth for adoption
mutation.setup
run starts. No silent reconfiguration.verify. For deep integrity, permission
hygiene, comdev-MCP prerequisites, and the stale-worktree sweep,
point the user at setup verify
rather than re-implementing those checks here.collect.md — the collector's JSON field
reference.render.md — dashboard layout, health-verdict
rules, mode-aware interpretation.adjust.md — gap detection and the delegation
contract to setup.scripts/collect_status.py — the
deterministic, read-only state collector.setup — adoption mutation:
install.md, update.md,
the agents.md target registry, and the
Golden rules.setup verify — the deep
integrity / health check this dashboard complements.AGENTS.md — framework conventions and the
placeholder convention.docs/setup/agentic-overrides.md
— the override contract every skill consults.What SKILL.md sets; muted values are Claude Code's defaults
When the user asks how Magpie is set up here, which targets are wired, which families are installed, or whether the snapshot is in sync. Also when they want to add a target or family and want to see the current state first.
Three short reads, in order
12 skills in this plugin
/isolated-setup-doctorProbe the secure-agent setup for restrictions that block legitimate work — SSH agent reachability, port binding, containers, the scratch directory, the signing key, `gh` outside the sandbox, `prek` and `uv` inside it, the global git hook dir. Names the troubleshooting entry and settings fix for each. Read-only./isolated-setup-installWalk an adopter through the first-time install of the secure agent setup (sandbox, approval and clean-environment layers) for Claude Code, Codex, Antigravity, Pi or Goose. Interactive throughout; never runs sudo, edits a shell rc, or overwrites settings on its own./isolated-setup-updatenpx claudepluginhub apache/magpie --plugin magpie-setupOther plugins' skills for the same job