[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACZTDWA6R3ZW8Z3R11ERW6":3,"skill-same:01M6ACZTDWA6R3ZW8Z3R11ERW6":114},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":54,"linkOnly":55,"markdownContent":56,"markdownBody":57,"frontMatter":58,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":17,"updatedAt":71,"install":72,"resources":85},"01M6ACZTDWA6R3ZW8Z3R11ERW6","isolated-setup-install","安全智能体环境安装引导","Walk 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.","引导采用者首次安装安全智能体设置（沙箱、审批和干净环境层），适用于 Claude Code、Codex、Antigravity、Pi 或 Goose。全程交互式；绝不自行运行 sudo、编辑 shell rc 或覆盖设置。","apache\u002Fmagpie","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACRKRED1THWRMNQ1E2RYE7",146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"setup","isolated setup install","install","when","new","agent setup","environment","layers","for","platform","goose","capability","clone","sudo","fresh","wiring","clean","Meta","time","never","code","secure","update","2026-11-10 10:12:30",false,"---\n# SPDX-License-Identifier: Apache-2.0\n# https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\nname: isolated-setup-install\nfamily: setup\nmode: Meta\ndescription: >-\n  Walk an adopter through the first-time install of the secure agent\n  setup (sandbox, approval and clean-environment layers) for Claude\n  Code, Codex, Antigravity, Pi or Goose. Interactive throughout; never runs sudo,\n  edits a shell rc, or overwrites settings on its own.\nwhen_to_use: >-\n  When the user wants the secure setup installed for the first time, or\n  is working in a fresh clone or on a new machine with no wiring yet.\n  If it is already installed, use `setup-isolated-setup-verify` to check\n  it or `setup-isolated-setup-update` to refresh it.\ncapability: capability:platform\nsurface_hash: sha256:cb0c81b693d9aa76\nlicense: Apache-2.0\nmeasured_tokens: 5390\n---\n\n\u003C!-- Placeholder convention (see AGENTS.md#placeholder-convention-used-in-skill-files):\n     \u003Cproject-config> → per file: the personal layer, else `.apache-magpie-overrides\u002F`\n     \u003Ctracker>        → value of `tracker_repo:` in \u003Cproject-config>\u002Fproject.md\n     \u003Cupstream>       → value of `upstream_repo:` in \u003Cproject-config>\u002Fproject.md -->\n\n# setup-isolated-setup-install\n\n## Runtime routing (run before the Claude-specific procedure)\n\nUse the operator's explicitly requested runtime when supplied; otherwise use the active session's runtime.\nAn installed executable or configuration directory alone does not select a runtime.\nFor the routing below, treat that selection as the active harness.\n\nDetermine the active harness from the session metadata and executable.\nWhen it is Codex, Antigravity, Pi, Goose or Copilot CLI, follow that harness's paragraph in [`runtime-routing.md`](runtime-routing.md).\n\nWhen the harness is Claude Code, continue below. If the harness cannot be\ndetermined from the session or executable, stop and report that; never guess and never prompt.\n\nThis skill is the **on-ramp** for adopters who do not yet have the\nsecure setup running. It is a thin walkthrough wrapper around the\ncanonical install path documented in\n[`docs\u002Fsetup\u002Fsecure-agent-setup.md`](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md). The\nauthoritative content lives there; this skill exists so an adopter\ncan say *\"set up the secure agent setup\"* in a fresh session and\nland in the right step-by-step flow without first reading the\ndocument.\n\n## Adopter overrides\n\n\u003C!-- BEGIN MAGPIE BLOCK: adopter-overrides — generated from tools\u002Fdev\u002Fblocks\u002Fadopter-overrides.md -->\n\nBefore running its default behaviour, this skill consults\n`setup-isolated-setup-install.md` in the personal layer\n(`.apache-magpie-local\u002F` when the project adopted Magpie, falling back to the main checkout's in a linked worktree,\nor `\u003Cgit-common-dir>\u002Fapache-magpie\u002F` when Magpie is only installed; applied first, wins on conflict) and\n[`.apache-magpie-overrides\u002Fsetup-isolated-setup-install.md`](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fagentic-overrides.md) (committed, project-wide)\nin the adopter repo, if present, and applies any agent-readable overrides it finds.\nSee [`docs\u002Fsetup\u002Fagentic-overrides.md`](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fagentic-overrides.md) for the contract.\n\n**Hard rule**: agents NEVER modify the snapshot under `\u003Cadopter-repo>\u002F.apache-magpie\u002F`.\nLocal modifications go in the override file; framework changes go via PR to `apache\u002Fmagpie`.\n\n\u003C!-- END MAGPIE BLOCK: adopter-overrides -->\n\n---\n\n## Snapshot drift\n\nAlso at the top of every run, this skill compares the\ngitignored `.apache-magpie.local.lock` (per-machine\nfetch) against the committed `.apache-magpie.lock`\n(the project pin). On mismatch the skill surfaces the\ngap and proposes\n[`setup update`](..\u002Fsetup\u002Fupdate.md).\nThe proposal is non-blocking — the user may defer if\nthey want to run with the local snapshot for now. See\n[`docs\u002Fsetup\u002Finstall-recipes.md` § Subsequent runs and drift detection](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fquick-start\u002Fother-install-methods.md#subsequent-runs-and-drift-detection)\nfor the full flow.\n\nDrift severity:\n\n- **method or URL differ** → ✗ full re-install needed.\n- **ref differs** (project bumped tag, or `git-branch`\n  local is behind upstream tip) → ⚠ sync needed.\n- **`svn-zip` SHA-512 mismatches the committed\n  anchor** → ✗ security-flagged; investigate before\n  upgrading.\n\n---\n## Golden rules\n\n- **Do not auto-run privilege-elevating commands.** Anything that\n  needs `sudo` (apt \u002F dnf installs, system-wide writes) is *printed*\n  for the user to copy-paste into their own terminal. The skill\n  never invokes `sudo` itself.\n- **Do not edit shell rc files without approval.** `~\u002F.bashrc` \u002F\n  `~\u002F.zshrc` modifications (sourcing `agent-iso.sh`, the optional\n  `alias claude='claude-iso'`) are surfaced as the exact line to\n  add; the user pastes it themselves. The skill confirms the rc\n  file path with the user first; it does not assume.\n- **Do not overwrite an existing settings file silently.** If the\n  user already has a project `.claude\u002Fsettings.json` or a\n  user-scope `~\u002F.claude\u002Fsettings.json`, the skill *diffs* the\n  desired merge against the existing file and asks for explicit\n  approval before writing. The merge carries the framework's\n  `permissions.allow` set (the read-only reads: `gh` reads, the\n  vetted-ops read dispatcher, archive \u002F mailbox \u002F roster MCP reads,\n  registry `WebFetch` hosts) alongside `deny` and `ask` — leaving it\n  out makes every skill read prompt. Only read-only entries belong in\n  `allow`. Re-installs \u002F partial-state recoveries\n  are common — the skill must not blow away an unrelated\n  pre-existing hook or `permissions.ask` rule. The desired merge\n  **includes the agent-guard `hooks.PreToolUse` entry** (matcher\n  `Bash`, command running the user-scope `~\u002F.claude\u002Fscripts\u002Fagent-guard.py`)\n  — the deterministic guard from\n  [`tools\u002Fagent-guard`](..\u002F..\u002F..\u002F..\u002Ftools\u002Fagent-guard\u002FREADME.md). Install\n  the script as `~\u002F.claude\u002Fscripts\u002Fagent-guard.py` and populate\n  `~\u002F.claude\u002Fscripts\u002Fguards.d\u002F` from both the engine's bundled\n  `guards.d\u002F*.py` and every skill-owned `skills\u002F*\u002Fguards\u002F*.py`\n  (so skill-owned guards like `mention` \u002F `mark-ready` are active),\n  alongside the other user-scope scripts (Step P); wire the\n  `PreToolUse` entry once, and preserve any pre-existing `hooks`\n  entries.\n- **Stop on the first failure.** If a step fails (manifest read\n  fails, framework path wrong, an existing file conflicts in a way\n  the user has not yet decided about), stop and report. Do not\n  push past a failure to the next step.\n\n## Up-front confirmations\n\nBefore walking any install step, confirm with the user:\n\n1. **OS \u002F distro.** macOS, Ubuntu \u002F Debian (apt), Fedora \u002F RHEL\n   (dnf), or Arch \u002F NixOS \u002F other. macOS skips bubblewrap +\n   socat (Seatbelt is built-in); Linux installs both per the\n   distro shortcut.\n2. **Framework checkout path.** The path to the user's local\n   `magpie` clone. Required to read\n   `tools\u002Fagent-isolation\u002Fpinned-versions.toml`,\n   `.claude\u002Fsettings.json`, and the\n   `tools\u002Fagent-isolation\u002F*.sh` scripts. If the user does not\n   have a clone, walk them through `git clone` first.\n3. **Fresh install or re-install.** For a re-install on a partial\n   existing state, the skill must enumerate the existing wiring\n   (project settings.json, user settings.json, hooks dir, the\n   agent-guard `hooks.PreToolUse` entry + `~\u002F.claude\u002Fscripts\u002Fagent-guard.py`,\n   shell rc) before any merge so the user knows what is being\n   preserved vs replaced.\n4. **Sync repo (optional).** Whether the user maintains a\n   private dotfile-style `~\u002F.claude-config` repo per\n   [Syncing user-scope config across machines](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#syncing-user-scope-config-across-machines).\n   If yes, the skill installs user-scope scripts as **symlinks**\n   into `~\u002F.claude-config\u002Fscripts\u002F` rather than `cp`-ing into\n   `~\u002F.claude\u002Fscripts\u002F` — the symlink approach is what makes\n   sync push the upgrades to other machines automatically.\n   **Except `container-gateway-hook.sh`**, which is always a plain\n   copy owned by the user: the managed-settings dispatcher that runs\n   it refuses a symlink, whose target could be swapped after the\n   checks. A symlink already in its place is replaced by a copy\n   (`rm` the link first — a `cp` onto it would write through it into\n   the sync repo), and `setup-isolated-setup-update` reports the copy\n   when it drifts from the framework's.\n\n## Walk-through\n\nFollow the canonical step list at\n[docs\u002Fsetup\u002Fsecure-agent-setup.md → Adopter setup → Via a Claude Code prompt](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#via-a-claude-code-prompt).\nEach step in that list maps 1:1 to a step in this skill. Do not\nre-write the list here — read the doc, follow it, and surface each\nsub-step with the user. The doc names are the source of truth; the\nskill is the runner.\n\nFor the verification step at the end, hand off to the\n`setup-isolated-setup-verify` skill rather than re-walking the checklist\ninline.\n\n### Agent harness — install `@latest`, enforce the floor\n\n`claude-code` is **not** pinned to an exact version. Install it with\n`npm install -g --no-save @anthropic-ai\u002Fclaude-code@latest` (the\ncommand in the doc's install list) — latest always carries the newest\npermission-rule \u002F sandbox \u002F prompt-injection fixes. The manifest's\n`[tools.claude-code]` table in\n[`pinned-versions.toml`](..\u002F..\u002F..\u002F..\u002Ftools\u002Fagent-isolation\u002Fpinned-versions.toml)\ndeclares a `min_version` **floor**, not a pin. Because this install is\ndriven from Claude Code, apply the same hard gate\n`setup-isolated-setup-verify` check 5 applies: read the running\nversion (`command claude --version`, which skips an\n`alias claude=claude-iso`) and, if it is **below** `min_version`,\n**hard-fail** — stop the install, tell the operator to upgrade to\n`@latest`, and have them re-run. The secure setup must not be stood up\non a below-floor runtime.\n\n### Step P — Project-root coverage in the sandbox allowlists\n\nThe harness drops the literal `.` when it pre-resolves\n`sandbox.filesystem.allowRead: [\".\"]`, so a session in a fresh clone can\nwrite to the project root but not read from it. The fix is to add the root\nas an absolute path to the project-local `settings.local.json`.\n\nThis step asks one question first — per-project or whole-user scope — and\nthe whole-user answer overrides git's hook lookup for every repository on\nthe machine, so it carries a disclosure the operator has to acknowledge.\n\n**Full procedure, both scopes and both whole-user flavours:**\n[`step-p-sandbox-allowlists.md`](step-p-sandbox-allowlists.md).\n\n### Step V — The vetted-ops split and exclusion\n\nOnly applies when the adopter routes forge operations through the\n`vetted-ops` dispatcher — i.e. the repo has\n`.apache-magpie-overrides\u002Ftools\u002Fvetted-ops\u002Fconfig.toml`, the maintainer\nkeeps a personal one (`\u003Cpersonal layer>\u002Ftools\u002Fvetted-ops\u002Fconfig.toml`,\nfor a project that has not adopted Magpie), or the operator asks for the\ndispatcher to be wired now. If neither is\ntrue, skip this step, report it as **n\u002Fa**, and continue with the\nnext step: a missing policy is never a blocker for this install.\nDo not create a policy the project has not asked for.\n\n**Only with the sandbox on.** The allow rules and sandbox exclusions\nbelow are a permission bypass: they let the dispatcher run without a\nprompt, and outside the sandbox. They are safe only because the sandbox\nconfines everything else. If the sandbox is not enabled for this\nsession (Step P declined, or `sandbox.enabled` is not `true` in the\nscope being wired), skip this step, say so, and leave every vetted\noperation behind its normal prompt.\n\n**Full procedure, including Step V.1 (read-only vetted ops never prompt):**\n[`step-v-vetted-ops.md`](step-v-vetted-ops.md).\n\n### Step R — The adversarial-review exclusion\n\nOnly applies when the `magpie-adversarial-review` plugin is installed. If it\nis not, skip this step and say so.\n\n**Full procedure:** [`step-r-adversarial-review.md`](step-r-adversarial-review.md).\n\n### Step W — Working directories for the read block\n\nWhere the vetted-ops dispatcher is used, Step V.1 already requires\n`permissions.blockReadsOutsideWorkingDirectories` to be off, and these\nentries cannot stand in for that: they do not stop the `vetted-op-read`\nprompt. They remain useful for the agent's own reads of the scratch root\nwhere the block is on for other reasons.\n\nNothing extra to write: the `sandbox-add-project-root.sh` run in Step P also\nadds `\u002Ftmp\u002Fclaude-\u003Cuid>`, resolved, to `permissions.additionalDirectories` of\neach worktree's project-local `settings.local.json`. Under\n`permissions.blockReadsOutsideWorkingDirectories` the skills read it on every\nrun; without the entry each read prompts, and a bulk sync multiplies that by\nits gatherer agents. The script also removes `$HOME\u002F.claude\u002Fmagpie` where an\nearlier version added it.\n\nAfter Step P, show the operator the resulting `additionalDirectories` list and\ncheck three things:\n\n- **Never `~\u002F.claude\u002Fmagpie`.** If any scope lists `$HOME\u002F.claude\u002Fmagpie` or a\n  parent of it, propose removing it. A working directory is writable to\n  sandboxed Bash, and the vetted-ops commands run from that checkout outside\n  the sandbox. `\u002Fadd-dir` has the same effect for a session.\n\n- **No glob and no `~`.** If the operator already has an entry such as\n  `\u002Ftmp\u002Fclaude-*` in any scope, say it does nothing: the setting matches\n  literal paths only, so the glob is listed but never matched.\n- **Nothing per-host in a synced or committed file.** If the operator put the\n  paths in a user-scope `~\u002F.claude\u002Fsettings.json` that is synced across\n  machines, or in the committed project settings, suggest moving them: they\n  name this host's uid.\n\nRationale and the rules in full:\n[`docs\u002Fsetup\u002Fsecure-agent-setup.md` → Working directories under the read-outside-working-directories block](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#working-directories-under-the-read-outside-working-directories-block).\n\n### Step U — Host-only uv state\n\nThe excluded `uvx` \u002F `uv run` commands, MCP servers launched with `uv`, hooks\nthat call `python3` and the operator's own terminal all run uv-managed code\noutside the sandbox. None of it may come from a directory a sandboxed command\ncan write:\n\n- **`~\u002F.local\u002Fshare\u002Fuv` is read-only to the sandbox.** No scope may list it,\n  or a parent of it, in `allowWrite` or `additionalDirectories`. The Step P\n  helper removes the write an earlier version added; propose removing any other\n  by hand.\n- **The host gets its own uv cache.** Read `~\u002F.config\u002Fuv\u002Fuv.toml`. Unless it\n  sets a `cache-dir` that is absolute and, symlinks resolved, outside every\n  directory a sandboxed command can write (every `allowWrite` and `additionalDirectories` entry in any scope, every project root, and the roots the sandbox writes without a grant (`\u002Ftmp`, `\u002Fprivate\u002Ftmp`, `\u002Fvar\u002Ffolders`, `\u002Fprivate\u002Fvar\u002Ffolders`, `$TMPDIR`)),\n  stage it with `cache-dir = \"\u003Cresolved $HOME>\u002F.local\u002Fshare\u002Fuv-host\u002Fcache\"`\n  added, keeping every other setting, and give the operator the copy command:\n  `Edit(~\u002F.config\u002Fuv\u002F**)` keeps the agent from writing it. Never `~` (uv does\n  not expand it there) and never a relative path.\n- **The sandbox cannot read that file.** `permissions.deny` carries\n  `Read(~\u002F.config\u002Fuv\u002Fuv.toml)` and `Edit(~\u002F.config\u002Fuv\u002F**)` (both in the\n  framework's `.claude\u002Fsettings.json`, so Step 2's copy brings them). Sandboxed\n  uv then keeps its default, writable cache.\n\n- **Sandboxed prek gets its own home.** The `env` entry is needed only where a\n  repository uses prek (a `prek.toml`, `.pre-commit-config.yaml` or\n  `.pre-commit-config.yml`, or a hook that runs it:\n  [detection](..\u002F..\u002F..\u002F..\u002Ftools\u002Fhook-manager\u002FREADME.md#detection)); the deny\n  is always kept, since the default home is per-user. The settings carry\n  `\"env\": {\"PREK_HOME\": \"~\u002F.cache\u002Fprek-sandbox\"}` and `permissions.deny`\n  carries `Edit(~\u002F.cache\u002Fprek\u002F**)` (both in the framework's\n  `.claude\u002Fsettings.json`): a terminal's git hooks run prek outside the\n  sandbox from `~\u002F.cache\u002Fprek`. The whole-user dispatcher (Step P) gives hooks\n  that Claude Code runs outside the sandbox a host-only home and cache root\n  too; if a repository sets its own `core.hooksPath`, propose unsetting it so\n  the dispatcher runs there.\n\nThen hand the operator the reinstall commands from the doc to run in a\nterminal: interpreters and tools the sandbox could write before may already\nhave been changed. Rationale and commands:\n[`docs\u002Fsetup\u002Fsecure-agent-setup.md` → Host-only uv state](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#host-only-uv-state).\n\n### Step T — Local agent settings\n\nThe committed `.claude\u002Fsettings.json` is only the shared floor; the rest\nof a working setup is personal and goes in `.claude\u002Fsettings.local.json`.\nBuild and hand over that file exactly as\n[`setup update` → Reconcile the local agent settings](..\u002Fsetup\u002Fupdate.md#reconcile-the-local-agent-settings)\ndoes: the MCP tools for families installed here but not adopted by the\nproject and, **only when this project is the Magpie framework checkout**,\nits template (`tools\u002Fagent-isolation\u002Fclaude-settings.local.template.json`).\nNever stage that template into another project: it would widen that\nproject's sandbox beyond what its maintainers configured. An agent\ncannot write that file, so stage it and give the user the copy command.\n\n**ASF network fragment selection:** Follow\n[`setup update` → ASF network fragment selection](..\u002Fsetup\u002Fupdate.md#asf-network-fragment-selection)\nwhen building the proposed local settings. Select the reviewed ASF\nfragment only for an explicitly declared ASF project. Preserve the\nexisting staged-copy and user-approval process. Never install ASF\nnetwork grants in user-scope settings or the shared gateway baseline.\n\n### Steps K, L, M and B — optional extras\n\nNone of these is needed for a working install. Walk the one the operator\nasks for: a hardware security key (K), the container gateway (L), the\neval-harness exclusion (M), or the exclusion for the third-party\n[roborev](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fcompanion-skills.md#roborev) CLI (B) — offer B\nunprompted when `command -v roborev` finds it.\n\n**Procedures:** [`optional-steps.md`](optional-steps.md).\n\n## After the install lands\n\n**Tell the operator what to look for in the footer**, and what each\nstate means. This is the one piece of the install they will see on\nevery render afterwards, so a wrong reading here persists:\n\n| Tag | Means |\n|---|---|\n| `[sandbox]` green | sandboxed, and still prompting per command |\n| `[sandbox-auto]` yellow | sandboxed, **not** prompting per command — auto-allow; wider blast radius, which is why it is not green |\n| `[NO SANDBOX]` bold red | not sandboxed; the state this install exists to make impossible to miss |\n\nCaptures of each are in\n[*What a session looks like*](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#what-a-session-looks-like);\npoint the operator there rather than describing the colours twice.\n\nTwo things to say explicitly, because both are counter-intuitive:\n\n- **The tag reads the settings files, not the running process.** A\n  CLI flag that disables sandboxing mid-session is not visible here.\n  Pair it with the bypass-warn hook, which fires per call.\n- **Yellow is not a warning that something is broken.** Auto-allow is\n  a deliberate, common choice; the colour distinguishes two postures\n  rather than flagging a fault.\n\nSuggest two follow-up routines the user can wire later:\n\n- `setup-isolated-setup-verify` — re-run after every Claude Code upgrade\n  or settings-file edit, to confirm denials still fire as\n  expected. The \"did a denial silently turn into an allow?\"\n  signal is exactly what this skill exists for.\n- `setup-isolated-setup-update` — periodic check for framework\n  updates, pinned-tool upgrade candidates, and drift between the\n  installed user-scope copies and the framework's\n  source-of-truth. The pre-flight of every skill proposes it for them\n  once the install is recorded (below): after an upgrade that changes\n  the secure-setup files, and weekly otherwise.\n\n**Record the install** so that pre-flight knows the isolated setup is\nused on this machine and what it was installed against:\n\n```bash\nPYTHONPATH=\"$HOME\u002F.cache\u002Fapache-magpie\u002Fpreflight\" \\\n  python3 -P -m setup_preflight.isolated record-update\n```\n\nIt writes the `isolated_setup` block of the personal layer's\n`reconciled.json` (`\u003Cgit-common-dir>\u002Fapache-magpie\u002F` when the project has\nnot adopted Magpie, `.apache-magpie-local\u002F` when it has) and nothing\nelse. Skip it when the command cannot find `setup_preflight` — say that\n`\u002Fmagpie-setup:setup config` installs the checker, and that the reminders start\nonce it is there.\n\n**Check that the vetted-ops plugin is installed.** `magpie-vetted-ops`\nis part of the baseline: the family skills run their forge operations\nthrough its dispatcher, and Step V's permission rules point at it.\nIf the harness's plugin listing lacks it, propose\n`claude plugin install magpie-vetted-ops@apache-magpie`\n(`codex plugin add magpie-vetted-ops@apache-magpie` on Codex) and run it once the operator confirms.\nWhere the harness has no plugin CLI, print the command instead of running it.\n\n**Always propose shared-config sync once the install lands.**\nRegardless of whether the operator already maintains the\n`~\u002F.claude-config` sync repo, proactively offer to run\n`setup-shared-config-sync` as a follow-up:\n\n- If the `~\u002F.claude-config` sync repo is already in place, the\n  skill commits + pushes the local modifications (the user-scope\n  scripts, hooks, and settings this install just wired up) so the\n  other machines pick them up.\n- If the operator does **not** yet have `~\u002F.claude-config`, the\n  `setup-shared-config-sync` skill bootstraps it (clones the\n  default private remote if it exists, or creates a fresh private\n  remote and scaffolds the layout). Mention this so a first-time\n  operator knows the follow-up will set sync up from scratch — the\n  point of proposing it is precisely so the just-installed config\n  does not stay machine-local.\n\nSurface it as an offer for the operator to accept, not an\nauto-run — the sync skill has its own confirmation gates before it\ncommits or pushes anything.\n","\u003C!-- Placeholder convention (see AGENTS.md#placeholder-convention-used-in-skill-files):\n     \u003Cproject-config> → per file: the personal layer, else `.apache-magpie-overrides\u002F`\n     \u003Ctracker>        → value of `tracker_repo:` in \u003Cproject-config>\u002Fproject.md\n     \u003Cupstream>       → value of `upstream_repo:` in \u003Cproject-config>\u002Fproject.md -->\n\n# setup-isolated-setup-install\n\n## Runtime routing (run before the Claude-specific procedure)\n\nUse the operator's explicitly requested runtime when supplied; otherwise use the active session's runtime.\nAn installed executable or configuration directory alone does not select a runtime.\nFor the routing below, treat that selection as the active harness.\n\nDetermine the active harness from the session metadata and executable.\nWhen it is Codex, Antigravity, Pi, Goose or Copilot CLI, follow that harness's paragraph in [`runtime-routing.md`](runtime-routing.md).\n\nWhen the harness is Claude Code, continue below. If the harness cannot be\ndetermined from the session or executable, stop and report that; never guess and never prompt.\n\nThis skill is the **on-ramp** for adopters who do not yet have the\nsecure setup running. It is a thin walkthrough wrapper around the\ncanonical install path documented in\n[`docs\u002Fsetup\u002Fsecure-agent-setup.md`](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md). The\nauthoritative content lives there; this skill exists so an adopter\ncan say *\"set up the secure agent setup\"* in a fresh session and\nland in the right step-by-step flow without first reading the\ndocument.\n\n## Adopter overrides\n\n\u003C!-- BEGIN MAGPIE BLOCK: adopter-overrides — generated from tools\u002Fdev\u002Fblocks\u002Fadopter-overrides.md -->\n\nBefore running its default behaviour, this skill consults\n`setup-isolated-setup-install.md` in the personal layer\n(`.apache-magpie-local\u002F` when the project adopted Magpie, falling back to the main checkout's in a linked worktree,\nor `\u003Cgit-common-dir>\u002Fapache-magpie\u002F` when Magpie is only installed; applied first, wins on conflict) and\n[`.apache-magpie-overrides\u002Fsetup-isolated-setup-install.md`](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fagentic-overrides.md) (committed, project-wide)\nin the adopter repo, if present, and applies any agent-readable overrides it finds.\nSee [`docs\u002Fsetup\u002Fagentic-overrides.md`](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fagentic-overrides.md) for the contract.\n\n**Hard rule**: agents NEVER modify the snapshot under `\u003Cadopter-repo>\u002F.apache-magpie\u002F`.\nLocal modifications go in the override file; framework changes go via PR to `apache\u002Fmagpie`.\n\n\u003C!-- END MAGPIE BLOCK: adopter-overrides -->\n\n---\n\n## Snapshot drift\n\nAlso at the top of every run, this skill compares the\ngitignored `.apache-magpie.local.lock` (per-machine\nfetch) against the committed `.apache-magpie.lock`\n(the project pin). On mismatch the skill surfaces the\ngap and proposes\n[`setup update`](..\u002Fsetup\u002Fupdate.md).\nThe proposal is non-blocking — the user may defer if\nthey want to run with the local snapshot for now. See\n[`docs\u002Fsetup\u002Finstall-recipes.md` § Subsequent runs and drift detection](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fquick-start\u002Fother-install-methods.md#subsequent-runs-and-drift-detection)\nfor the full flow.\n\nDrift severity:\n\n- **method or URL differ** → ✗ full re-install needed.\n- **ref differs** (project bumped tag, or `git-branch`\n  local is behind upstream tip) → ⚠ sync needed.\n- **`svn-zip` SHA-512 mismatches the committed\n  anchor** → ✗ security-flagged; investigate before\n  upgrading.\n\n---\n## Golden rules\n\n- **Do not auto-run privilege-elevating commands.** Anything that\n  needs `sudo` (apt \u002F dnf installs, system-wide writes) is *printed*\n  for the user to copy-paste into their own terminal. The skill\n  never invokes `sudo` itself.\n- **Do not edit shell rc files without approval.** `~\u002F.bashrc` \u002F\n  `~\u002F.zshrc` modifications (sourcing `agent-iso.sh`, the optional\n  `alias claude='claude-iso'`) are surfaced as the exact line to\n  add; the user pastes it themselves. The skill confirms the rc\n  file path with the user first; it does not assume.\n- **Do not overwrite an existing settings file silently.** If the\n  user already has a project `.claude\u002Fsettings.json` or a\n  user-scope `~\u002F.claude\u002Fsettings.json`, the skill *diffs* the\n  desired merge against the existing file and asks for explicit\n  approval before writing. The merge carries the framework's\n  `permissions.allow` set (the read-only reads: `gh` reads, the\n  vetted-ops read dispatcher, archive \u002F mailbox \u002F roster MCP reads,\n  registry `WebFetch` hosts) alongside `deny` and `ask` — leaving it\n  out makes every skill read prompt. Only read-only entries belong in\n  `allow`. Re-installs \u002F partial-state recoveries\n  are common — the skill must not blow away an unrelated\n  pre-existing hook or `permissions.ask` rule. The desired merge\n  **includes the agent-guard `hooks.PreToolUse` entry** (matcher\n  `Bash`, command running the user-scope `~\u002F.claude\u002Fscripts\u002Fagent-guard.py`)\n  — the deterministic guard from\n  [`tools\u002Fagent-guard`](..\u002F..\u002F..\u002F..\u002Ftools\u002Fagent-guard\u002FREADME.md). Install\n  the script as `~\u002F.claude\u002Fscripts\u002Fagent-guard.py` and populate\n  `~\u002F.claude\u002Fscripts\u002Fguards.d\u002F` from both the engine's bundled\n  `guards.d\u002F*.py` and every skill-owned `skills\u002F*\u002Fguards\u002F*.py`\n  (so skill-owned guards like `mention` \u002F `mark-ready` are active),\n  alongside the other user-scope scripts (Step P); wire the\n  `PreToolUse` entry once, and preserve any pre-existing `hooks`\n  entries.\n- **Stop on the first failure.** If a step fails (manifest read\n  fails, framework path wrong, an existing file conflicts in a way\n  the user has not yet decided about), stop and report. Do not\n  push past a failure to the next step.\n\n## Up-front confirmations\n\nBefore walking any install step, confirm with the user:\n\n1. **OS \u002F distro.** macOS, Ubuntu \u002F Debian (apt), Fedora \u002F RHEL\n   (dnf), or Arch \u002F NixOS \u002F other. macOS skips bubblewrap +\n   socat (Seatbelt is built-in); Linux installs both per the\n   distro shortcut.\n2. **Framework checkout path.** The path to the user's local\n   `magpie` clone. Required to read\n   `tools\u002Fagent-isolation\u002Fpinned-versions.toml`,\n   `.claude\u002Fsettings.json`, and the\n   `tools\u002Fagent-isolation\u002F*.sh` scripts. If the user does not\n   have a clone, walk them through `git clone` first.\n3. **Fresh install or re-install.** For a re-install on a partial\n   existing state, the skill must enumerate the existing wiring\n   (project settings.json, user settings.json, hooks dir, the\n   agent-guard `hooks.PreToolUse` entry + `~\u002F.claude\u002Fscripts\u002Fagent-guard.py`,\n   shell rc) before any merge so the user knows what is being\n   preserved vs replaced.\n4. **Sync repo (optional).** Whether the user maintains a\n   private dotfile-style `~\u002F.claude-config` repo per\n   [Syncing user-scope config across machines](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#syncing-user-scope-config-across-machines).\n   If yes, the skill installs user-scope scripts as **symlinks**\n   into `~\u002F.claude-config\u002Fscripts\u002F` rather than `cp`-ing into\n   `~\u002F.claude\u002Fscripts\u002F` — the symlink approach is what makes\n   sync push the upgrades to other machines automatically.\n   **Except `container-gateway-hook.sh`**, which is always a plain\n   copy owned by the user: the managed-settings dispatcher that runs\n   it refuses a symlink, whose target could be swapped after the\n   checks. A symlink already in its place is replaced by a copy\n   (`rm` the link first — a `cp` onto it would write through it into\n   the sync repo), and `setup-isolated-setup-update` reports the copy\n   when it drifts from the framework's.\n\n## Walk-through\n\nFollow the canonical step list at\n[docs\u002Fsetup\u002Fsecure-agent-setup.md → Adopter setup → Via a Claude Code prompt](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#via-a-claude-code-prompt).\nEach step in that list maps 1:1 to a step in this skill. Do not\nre-write the list here — read the doc, follow it, and surface each\nsub-step with the user. The doc names are the source of truth; the\nskill is the runner.\n\nFor the verification step at the end, hand off to the\n`setup-isolated-setup-verify` skill rather than re-walking the checklist\ninline.\n\n### Agent harness — install `@latest`, enforce the floor\n\n`claude-code` is **not** pinned to an exact version. Install it with\n`npm install -g --no-save @anthropic-ai\u002Fclaude-code@latest` (the\ncommand in the doc's install list) — latest always carries the newest\npermission-rule \u002F sandbox \u002F prompt-injection fixes. The manifest's\n`[tools.claude-code]` table in\n[`pinned-versions.toml`](..\u002F..\u002F..\u002F..\u002Ftools\u002Fagent-isolation\u002Fpinned-versions.toml)\ndeclares a `min_version` **floor**, not a pin. Because this install is\ndriven from Claude Code, apply the same hard gate\n`setup-isolated-setup-verify` check 5 applies: read the running\nversion (`command claude --version`, which skips an\n`alias claude=claude-iso`) and, if it is **below** `min_version`,\n**hard-fail** — stop the install, tell the operator to upgrade to\n`@latest`, and have them re-run. The secure setup must not be stood up\non a below-floor runtime.\n\n### Step P — Project-root coverage in the sandbox allowlists\n\nThe harness drops the literal `.` when it pre-resolves\n`sandbox.filesystem.allowRead: [\".\"]`, so a session in a fresh clone can\nwrite to the project root but not read from it. The fix is to add the root\nas an absolute path to the project-local `settings.local.json`.\n\nThis step asks one question first — per-project or whole-user scope — and\nthe whole-user answer overrides git's hook lookup for every repository on\nthe machine, so it carries a disclosure the operator has to acknowledge.\n\n**Full procedure, both scopes and both whole-user flavours:**\n[`step-p-sandbox-allowlists.md`](step-p-sandbox-allowlists.md).\n\n### Step V — The vetted-ops split and exclusion\n\nOnly applies when the adopter routes forge operations through the\n`vetted-ops` dispatcher — i.e. the repo has\n`.apache-magpie-overrides\u002Ftools\u002Fvetted-ops\u002Fconfig.toml`, the maintainer\nkeeps a personal one (`\u003Cpersonal layer>\u002Ftools\u002Fvetted-ops\u002Fconfig.toml`,\nfor a project that has not adopted Magpie), or the operator asks for the\ndispatcher to be wired now. If neither is\ntrue, skip this step, report it as **n\u002Fa**, and continue with the\nnext step: a missing policy is never a blocker for this install.\nDo not create a policy the project has not asked for.\n\n**Only with the sandbox on.** The allow rules and sandbox exclusions\nbelow are a permission bypass: they let the dispatcher run without a\nprompt, and outside the sandbox. They are safe only because the sandbox\nconfines everything else. If the sandbox is not enabled for this\nsession (Step P declined, or `sandbox.enabled` is not `true` in the\nscope being wired), skip this step, say so, and leave every vetted\noperation behind its normal prompt.\n\n**Full procedure, including Step V.1 (read-only vetted ops never prompt):**\n[`step-v-vetted-ops.md`](step-v-vetted-ops.md).\n\n### Step R — The adversarial-review exclusion\n\nOnly applies when the `magpie-adversarial-review` plugin is installed. If it\nis not, skip this step and say so.\n\n**Full procedure:** [`step-r-adversarial-review.md`](step-r-adversarial-review.md).\n\n### Step W — Working directories for the read block\n\nWhere the vetted-ops dispatcher is used, Step V.1 already requires\n`permissions.blockReadsOutsideWorkingDirectories` to be off, and these\nentries cannot stand in for that: they do not stop the `vetted-op-read`\nprompt. They remain useful for the agent's own reads of the scratch root\nwhere the block is on for other reasons.\n\nNothing extra to write: the `sandbox-add-project-root.sh` run in Step P also\nadds `\u002Ftmp\u002Fclaude-\u003Cuid>`, resolved, to `permissions.additionalDirectories` of\neach worktree's project-local `settings.local.json`. Under\n`permissions.blockReadsOutsideWorkingDirectories` the skills read it on every\nrun; without the entry each read prompts, and a bulk sync multiplies that by\nits gatherer agents. The script also removes `$HOME\u002F.claude\u002Fmagpie` where an\nearlier version added it.\n\nAfter Step P, show the operator the resulting `additionalDirectories` list and\ncheck three things:\n\n- **Never `~\u002F.claude\u002Fmagpie`.** If any scope lists `$HOME\u002F.claude\u002Fmagpie` or a\n  parent of it, propose removing it. A working directory is writable to\n  sandboxed Bash, and the vetted-ops commands run from that checkout outside\n  the sandbox. `\u002Fadd-dir` has the same effect for a session.\n\n- **No glob and no `~`.** If the operator already has an entry such as\n  `\u002Ftmp\u002Fclaude-*` in any scope, say it does nothing: the setting matches\n  literal paths only, so the glob is listed but never matched.\n- **Nothing per-host in a synced or committed file.** If the operator put the\n  paths in a user-scope `~\u002F.claude\u002Fsettings.json` that is synced across\n  machines, or in the committed project settings, suggest moving them: they\n  name this host's uid.\n\nRationale and the rules in full:\n[`docs\u002Fsetup\u002Fsecure-agent-setup.md` → Working directories under the read-outside-working-directories block](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#working-directories-under-the-read-outside-working-directories-block).\n\n### Step U — Host-only uv state\n\nThe excluded `uvx` \u002F `uv run` commands, MCP servers launched with `uv`, hooks\nthat call `python3` and the operator's own terminal all run uv-managed code\noutside the sandbox. None of it may come from a directory a sandboxed command\ncan write:\n\n- **`~\u002F.local\u002Fshare\u002Fuv` is read-only to the sandbox.** No scope may list it,\n  or a parent of it, in `allowWrite` or `additionalDirectories`. The Step P\n  helper removes the write an earlier version added; propose removing any other\n  by hand.\n- **The host gets its own uv cache.** Read `~\u002F.config\u002Fuv\u002Fuv.toml`. Unless it\n  sets a `cache-dir` that is absolute and, symlinks resolved, outside every\n  directory a sandboxed command can write (every `allowWrite` and `additionalDirectories` entry in any scope, every project root, and the roots the sandbox writes without a grant (`\u002Ftmp`, `\u002Fprivate\u002Ftmp`, `\u002Fvar\u002Ffolders`, `\u002Fprivate\u002Fvar\u002Ffolders`, `$TMPDIR`)),\n  stage it with `cache-dir = \"\u003Cresolved $HOME>\u002F.local\u002Fshare\u002Fuv-host\u002Fcache\"`\n  added, keeping every other setting, and give the operator the copy command:\n  `Edit(~\u002F.config\u002Fuv\u002F**)` keeps the agent from writing it. Never `~` (uv does\n  not expand it there) and never a relative path.\n- **The sandbox cannot read that file.** `permissions.deny` carries\n  `Read(~\u002F.config\u002Fuv\u002Fuv.toml)` and `Edit(~\u002F.config\u002Fuv\u002F**)` (both in the\n  framework's `.claude\u002Fsettings.json`, so Step 2's copy brings them). Sandboxed\n  uv then keeps its default, writable cache.\n\n- **Sandboxed prek gets its own home.** The `env` entry is needed only where a\n  repository uses prek (a `prek.toml`, `.pre-commit-config.yaml` or\n  `.pre-commit-config.yml`, or a hook that runs it:\n  [detection](..\u002F..\u002F..\u002F..\u002Ftools\u002Fhook-manager\u002FREADME.md#detection)); the deny\n  is always kept, since the default home is per-user. The settings carry\n  `\"env\": {\"PREK_HOME\": \"~\u002F.cache\u002Fprek-sandbox\"}` and `permissions.deny`\n  carries `Edit(~\u002F.cache\u002Fprek\u002F**)` (both in the framework's\n  `.claude\u002Fsettings.json`): a terminal's git hooks run prek outside the\n  sandbox from `~\u002F.cache\u002Fprek`. The whole-user dispatcher (Step P) gives hooks\n  that Claude Code runs outside the sandbox a host-only home and cache root\n  too; if a repository sets its own `core.hooksPath`, propose unsetting it so\n  the dispatcher runs there.\n\nThen hand the operator the reinstall commands from the doc to run in a\nterminal: interpreters and tools the sandbox could write before may already\nhave been changed. Rationale and commands:\n[`docs\u002Fsetup\u002Fsecure-agent-setup.md` → Host-only uv state](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#host-only-uv-state).\n\n### Step T — Local agent settings\n\nThe committed `.claude\u002Fsettings.json` is only the shared floor; the rest\nof a working setup is personal and goes in `.claude\u002Fsettings.local.json`.\nBuild and hand over that file exactly as\n[`setup update` → Reconcile the local agent settings](..\u002Fsetup\u002Fupdate.md#reconcile-the-local-agent-settings)\ndoes: the MCP tools for families installed here but not adopted by the\nproject and, **only when this project is the Magpie framework checkout**,\nits template (`tools\u002Fagent-isolation\u002Fclaude-settings.local.template.json`).\nNever stage that template into another project: it would widen that\nproject's sandbox beyond what its maintainers configured. An agent\ncannot write that file, so stage it and give the user the copy command.\n\n**ASF network fragment selection:** Follow\n[`setup update` → ASF network fragment selection](..\u002Fsetup\u002Fupdate.md#asf-network-fragment-selection)\nwhen building the proposed local settings. Select the reviewed ASF\nfragment only for an explicitly declared ASF project. Preserve the\nexisting staged-copy and user-approval process. Never install ASF\nnetwork grants in user-scope settings or the shared gateway baseline.\n\n### Steps K, L, M and B — optional extras\n\nNone of these is needed for a working install. Walk the one the operator\nasks for: a hardware security key (K), the container gateway (L), the\neval-harness exclusion (M), or the exclusion for the third-party\n[roborev](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fcompanion-skills.md#roborev) CLI (B) — offer B\nunprompted when `command -v roborev` finds it.\n\n**Procedures:** [`optional-steps.md`](optional-steps.md).\n\n## After the install lands\n\n**Tell the operator what to look for in the footer**, and what each\nstate means. This is the one piece of the install they will see on\nevery render afterwards, so a wrong reading here persists:\n\n| Tag | Means |\n|---|---|\n| `[sandbox]` green | sandboxed, and still prompting per command |\n| `[sandbox-auto]` yellow | sandboxed, **not** prompting per command — auto-allow; wider blast radius, which is why it is not green |\n| `[NO SANDBOX]` bold red | not sandboxed; the state this install exists to make impossible to miss |\n\nCaptures of each are in\n[*What a session looks like*](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fsetup\u002Fsecure-agent-setup.md#what-a-session-looks-like);\npoint the operator there rather than describing the colours twice.\n\nTwo things to say explicitly, because both are counter-intuitive:\n\n- **The tag reads the settings files, not the running process.** A\n  CLI flag that disables sandboxing mid-session is not visible here.\n  Pair it with the bypass-warn hook, which fires per call.\n- **Yellow is not a warning that something is broken.** Auto-allow is\n  a deliberate, common choice; the colour distinguishes two postures\n  rather than flagging a fault.\n\nSuggest two follow-up routines the user can wire later:\n\n- `setup-isolated-setup-verify` — re-run after every Claude Code upgrade\n  or settings-file edit, to confirm denials still fire as\n  expected. The \"did a denial silently turn into an allow?\"\n  signal is exactly what this skill exists for.\n- `setup-isolated-setup-update` — periodic check for framework\n  updates, pinned-tool upgrade candidates, and drift between the\n  installed user-scope copies and the framework's\n  source-of-truth. The pre-flight of every skill proposes it for them\n  once the install is recorded (below): after an upgrade that changes\n  the secure-setup files, and weekly otherwise.\n\n**Record the install** so that pre-flight knows the isolated setup is\nused on this machine and what it was installed against:\n\n```bash\nPYTHONPATH=\"$HOME\u002F.cache\u002Fapache-magpie\u002Fpreflight\" \\\n  python3 -P -m setup_preflight.isolated record-update\n```\n\nIt writes the `isolated_setup` block of the personal layer's\n`reconciled.json` (`\u003Cgit-common-dir>\u002Fapache-magpie\u002F` when the project has\nnot adopted Magpie, `.apache-magpie-local\u002F` when it has) and nothing\nelse. Skip it when the command cannot find `setup_preflight` — say that\n`\u002Fmagpie-setup:setup config` installs the checker, and that the reminders start\nonce it is there.\n\n**Check that the vetted-ops plugin is installed.** `magpie-vetted-ops`\nis part of the baseline: the family skills run their forge operations\nthrough its dispatcher, and Step V's permission rules point at it.\nIf the harness's plugin listing lacks it, propose\n`claude plugin install magpie-vetted-ops@apache-magpie`\n(`codex plugin add magpie-vetted-ops@apache-magpie` on Codex) and run it once the operator confirms.\nWhere the harness has no plugin CLI, print the command instead of running it.\n\n**Always propose shared-config sync once the install lands.**\nRegardless of whether the operator already maintains the\n`~\u002F.claude-config` sync repo, proactively offer to run\n`setup-shared-config-sync` as a follow-up:\n\n- If the `~\u002F.claude-config` sync repo is already in place, the\n  skill commits + pushes the local modifications (the user-scope\n  scripts, hooks, and settings this install just wired up) so the\n  other machines pick them up.\n- If the operator does **not** yet have `~\u002F.claude-config`, the\n  `setup-shared-config-sync` skill bootstraps it (clones the\n  default private remote if it exists, or creates a fresh private\n  remote and scaffolds the layout). Mention this so a first-time\n  operator knows the follow-up will set sync up from scratch — the\n  point of proposing it is precisely so the just-installed config\n  does not stay machine-local.\n\nSurface it as an offer for the operator to accept, not an\nauto-run — the sync skill has its own confirmation gates before it\ncommits or pushes anything.\n",{"mode":48,"name":5,"family":31,"license":16,"capability":59,"description":7,"when_to_use":60,"surface_hash":61,"measured_tokens":62},"capability:platform","When the user wants the secure setup installed for the first time, or is working in a fresh clone or on a new machine with no wiring yet. If it is already installed, use `setup-isolated-setup-verify` to check it or `setup-isolated-setup-update` to refresh it.","sha256:cb0c81b693d9aa76",5390,"main","d594f578d34fc8482d2e4d633961a37687048c2d","plugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install",127,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie","https:\u002F\u002Fmagpie.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-15 00:32:58",{"source":9,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add apache\u002Fmagpie --skill isolated-setup-install",{"tool":78,"command":79},"bunx","bunx skills add apache\u002Fmagpie --skill isolated-setup-install",{"tool":81,"command":82},"pnpm","pnpm dlx skills add apache\u002Fmagpie --skill isolated-setup-install","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install\u002FSKILL.md",true,[86,92,98,102,106,110],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"guards\u002Flefthook_hooks_path.py","SCRIPT","脚本",3737,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install\u002Fguards\u002Flefthook_hooks_path.py",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"optional-steps.md","REFERENCE","参考文档",30363,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install\u002Foptional-steps.md",{"path":99,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":100,"sourceHtmlUrl":101},"runtime-routing.md",2857,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install\u002Fruntime-routing.md",{"path":103,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":104,"sourceHtmlUrl":105},"step-p-sandbox-allowlists.md",21687,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install\u002Fstep-p-sandbox-allowlists.md",{"path":107,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":108,"sourceHtmlUrl":109},"step-r-adversarial-review.md",2452,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install\u002Fstep-r-adversarial-review.md",{"path":111,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":112,"sourceHtmlUrl":113},"step-v-vetted-ops.md",9640,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fisolated-setup-install\u002Fstep-v-vetted-ops.md",[115,136,160,181,201,228],{"skillNo":116,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":54},"01M70JNYMCY5EEWYWDN30WKDJ4","upgrade","Upgrade Magpie in one run: move to the new version if needed (`setup update`), check this machine and project, apply one approved plan, re-check, and print exact commands for what is out of reach.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fupgrade\u002FSKILL.md",[],[117,122,40,39,123,124,125,126,48,127,128,35,129,130,131,132,133,134,135,53],"notice","project","re","move","session","machine","yes","version","apply","print","check","last","plan","run",{"skillNo":137,"name":138,"nameZh":17,"description":139,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":54},"01M70JJBSW3XE35BAXQ1VTA9SV","dependency-vulnerability-audit","Read-only dependency vulnerability audit for one repository or a local\ncheckout. Detects the project's dependency manager(s), runs the\nappropriate audit tool, surfaces patchable findings grouped by severity,\nand proposes upgrades for maintainer review. Never modifies manifests or\nlock files and never opens update PRs.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-repo-health\u002Fskills\u002Fdependency-vulnerability-audit\u002FSKILL.md",[],[143,144,145,146,50,147,148,149,123,150,151,152,153,154,155,34,156,157,158,159],"vulnerability","audit","dependency","dependency vulnerability audit","checkout","chain","scope","dependency manager","local","only","files","invoke","manifests","ask","patch","hand","review",{"skillNo":161,"name":162,"nameZh":17,"description":163,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":54},"01M70JGBWHKMB7V6T7QWT6G5DQ","thread-mentor","Draft a teaching-register comment on a GitHub issue or PR thread on the\nconfigured `\u003Cupstream>` repo, aimed at a contributor missing context the\nmaintainer would spell out. Reads the thread, decides\nwhether an intervention is warranted, drafts one comment per the tone\nguide and convention pointers, and waits for explicit confirmation before\nposting via `gh`. Escalates on the four hand-off triggers.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-pr-management\u002Fskills\u002Fthread-mentor\u002FSKILL.md",[],[167,168,169,123,170,171,154,172,173,34,174,156,175,158,159,176,177,178,179,180],"thread mentor","mentor","thread","repro","confirmation","pr-management","contributor","number","teaching","at","config","drafts","flags","spell",{"skillNo":182,"name":183,"nameZh":17,"description":184,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":54},"01M70JF866SAVGXSSC33HRX4ZG","merge-candidates","Identify trivial, low-risk PRs in the `ready for maintainer review` queue\nof \u003Cupstream> that pass every quality gate and touch only supplementary\nareas (docs, changelog, translations, tests) — the \"express lane\".\nSurfaces and ranks candidates with per-PR diff summaries, an\nall-gates-green attestation, and the exact merge command. On explicit\nper-PR confirmation it can submit an APPROVE review, exactly as\npr-management-code-review does. It never merges itself — automated merge\nis the deliberately-deferred Agentic Autonomous mode.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-pr-management\u002Fskills\u002Fmerge-candidates\u002FSKILL.md",[],[188,189,190,191,192,50,193,194,123,195,196,197,152,198,171,154,172,199,200,51],"merge candidates","merge","ready","quick","show","green","submit","churn","attestation","mode","autonomous","show me","agentic",{"skillNo":202,"name":203,"nameZh":204,"description":205,"descriptionZh":206,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":207,"categories":208,"keywords":213,"publishedAt":54},"01M6AD18GMVM1BEM31VF538R8A","generate-cve-json","CVE 5.x JSON 文档生成","Generate a CVE 5.x JSON document from an \u003Ctracker> tracking\nissue, ready to paste into the Vulnogram `#source` tab of the ASF CVE tool\nat https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002F\u003CCVE-ID>#source. The conversion is\ndeterministic: same issue in, same JSON bytes out. Handles multiple\ncredits (one per line) and multiple references (URLs extracted from the\nissue's \"Public advisory URL\" and \"PR with the fix\" fields; the\n\"Security mailing list thread\" field is treated as internal-only and\nnever exported).","从 \u003Ctracker> 跟踪工单生成 CVE 5.x JSON 文档，可直接粘贴到 https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002F\u003CCVE-ID>#source 处 ASF CVE 工具的 Vulnogram `#source` 标签页。该转换是确定性的：相同的工单输入总是产生完全相同的 JSON 字节输出。支持多条致谢信息（每行一条）和多个引用（URL 从工单的 \"Public advisory URL\" 和 \"PR with the fix\" 字段提取；\"Security mailing list thread\" 字段被视为仅内部使用，绝不导出）。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002FSKILL.md",[209,212],{"categoryNo":210,"categoryName":211,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[214,215,216,217,10,53,190,50,218,152,219,220,221,222,223,224,225,226,227,176,154,34],"cve","generate","generate cve json","json","fix","either","URL","team","conversion","publish","references","tracker","paste","exported",{"skillNo":229,"name":230,"nameZh":231,"description":232,"descriptionZh":233,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":234,"categories":235,"keywords":242,"publishedAt":54},"01M6AD158PEPPPX9N33DASMRQ8","write-skill","Apache Magpie 技能编写与迁移","Write a new skill for the Apache Magpie framework, or bring an existing one up to current conventions. Scaffolds the directory, walks the house style and the prompt-injection defences, and validates before it ships.","为 Apache Magpie 框架编写新技能，或将现有技能更新至当前规范。它会搭建目录结构、引导遵循项目内部风格与提示注入防护措施，并在发布前进行验证。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-utilities\u002Fskills\u002Fwrite-skill\u002FSKILL.md",[236,239],{"categoryNo":237,"categoryName":238,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":240,"categoryName":241,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",[243,244,245,10,246,247,48,248,35,34,249,250,251,252,253,254,255,256,42,257],"write skill","write","create","directory","framework","up","optimize","authoring","injection","Utilities","new skill","magpie","add","existing skill","bring"]