| <!-- SPDX-License-Identifier: Apache-2.0 | |
| https://www.apache.org/licenses/LICENSE-2.0 --> | |
| <!-- START doctoc generated TOC please keep comment here to allow auto update --> | |
| <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | |
| **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* | |
| - [Setup skill family](#setup-skill-family) | |
| - [Install & first runs](#install--first-runs) | |
| - [Agent isolation](#agent-isolation) | |
| - [Security mailing-list configuration](#security-mailing-list-configuration) | |
| - [Skills](#skills) | |
| - [Deep documentation](#deep-documentation) | |
| - [Typical lifecycle](#typical-lifecycle) | |
| - [Cross-references](#cross-references) | |
| <!-- END doctoc generated TOC please keep comment here to allow auto update --> | |
| <!-- SPDX-License-Identifier: Apache-2.0 | |
| https://www.apache.org/licenses/LICENSE-2.0 --> | |
| # Setup skill family | |
| > **Scope.** Works on any project, ASF or not — no | |
| > Apache-Software-Foundation-specific assumptions baked in. | |
| The **setup** skill family is the prerequisite for running any | |
| framework skill. It walks a new adopter (or a fresh dev machine on | |
| an existing adopter) through the secure-agent install — pinned | |
| system tools, the project-scope `.claude/settings.json` sandbox | |
| block, the `claude-iso` clean-env wrapper, the user-scope hooks — | |
| and through the ongoing housekeeping (verify install drift, pull | |
| framework updates, sync shared user-scope config across machines). | |
| Why a dedicated install skill family? The framework's other skills | |
| run against pre-disclosure CVE content, private mailing lists, and | |
| in-flight tracker discussions. Without the layered defence the | |
| setup skills install (sandbox + permission rules + clean-env | |
| wrapper), a misconfigured agent can leak credentials or | |
| pre-disclosure content into the model provider's training data or | |
| into a public PR. The setup family is what makes the rest of the | |
| framework safe to use. | |
| > [!TIP] | |
| > **Why this family** | |
| > - Install, upgrade and adopt the framework without hand-editing a settings file | |
| > - A sandboxed agent with a clean environment, walked through step by step — nothing runs with sudo behind your back | |
| > - One command tells you what is installed, what the project expects, and whether the two agree | |
| ## Install & first runs | |
| [Install & first runs](install.md) has the install command for this family, | |
| the files to configure before the first run, and the skills to try first. | |
| ## Agent isolation | |
| These commands require the `magpie-setup` plugin. | |
| Install the sandbox with `/magpie-setup:isolated-setup-install`. | |
| Verify its configuration with `/magpie-setup:isolated-setup-verify`. | |
| Diagnose sandbox setup failures with `/magpie-setup:isolated-setup-doctor`. | |
| Refresh the isolated setup with `/magpie-setup:isolated-setup-update`. | |
| ## Security mailing-list configuration | |
| Set `security_list` in your project manifest to your project's private | |
| security mailing list. If it is missing, blank, or still a template TODO, | |
| security workflows warn and resolve draft CC from | |
| `security_inbox.foundation_security_address` through the normal | |
| project/organization/default configuration chain. For ASF adopters the | |
| organization supplies `security@apache.org`; other adopters use their own | |
| organization's configured address. If neither address is configured, | |
| drafting is blocked until configuration is corrected. | |
| The selected address and fallback are shown before draft confirmation. | |
| This does not configure subscriptions or redirect list searches to the | |
| organization's mailbox. Configure mail reads separately; read-only work | |
| can continue only when its own prerequisites are met. See the shared | |
| [security draft CC resolution](../../tools/mail-source/contract.md#security-draft-cc-resolution) | |
| for the complete rule. | |
| ## Skills | |
| | Skill | Purpose | | |
| |---|---| | |
| | [`setup-isolated-setup-install`](../../skills/setup-isolated-setup-install/SKILL.md) | First-time install of the secure agent setup. | | |
| | [`setup-isolated-setup-verify`](../../skills/setup-isolated-setup-verify/SKILL.md) | Verify the secure setup landed correctly (static checks on settings.json, hooks, pinned versions). | | |
| | [`setup-isolated-setup-doctor`](../../skills/setup-isolated-setup-doctor/SKILL.md) | Diagnose in-session sandbox friction (SSH agent, port bind, docker/podman socket) and map each fail to a catalog entry. | | |
| | [`setup-isolated-setup-update`](../../skills/setup-isolated-setup-update/SKILL.md) | Surface drift between the installed setup and the framework's latest. | | |
| | [`setup-privacy-llm`](../../skills/setup-privacy-llm/SKILL.md) | Configure which LLMs may see this project's private foundation mail, then prove it: detect the stack, write `privacy-llm.md` from the matching variant, and run the approved-LLM gate and the PII redactor end to end. | | |
| | [`setup`](../../skills/setup/SKILL.md) | Adopt and maintain the framework in a project repo through installation, verification, updates, overrides, and unadoption. | | |
| | [`setup update`](../../skills/setup/update.md) | Move this install to the new version: on a pinned snapshot, re-fetch it per the committed lock, refresh symlinks, reconcile overrides and refresh the personal layer's pre-flight checker; on a marketplace install, run the agent's plugin update. `setup-upgrade` runs it for you. | | |
| | [`setup-upgrade`](../../skills/setup-upgrade/SKILL.md) | Upgrade Magpie in one run ("upgrade magpie"): move to the new version with `setup update` when needed, check this machine and project, apply one approved plan, re-check, and print exact commands for what is out of reach. Every skill offers it until it has run after a version change; see [Upgrading Magpie](marketplace.md#upgrading-magpie). | | |
| | [`setup verify`](../../skills/setup/verify.md) | Verify the framework is integrated correctly into an adopter tracker. | | |
| | [`setup-status`](../../skills/setup-status/SKILL.md) | Render a Markdown adoption dashboard (install pin, drift, wired agent targets, installed skill families, symlink health) and adjust the wiring in place. | | |
| | [`setup-shared-config-sync`](../../skills/setup-shared-config-sync/SKILL.md) | Commit + push the user's shared Claude config to its sync repo. | | |
| | [`setup-override-upstream`](../../skills/setup-override-upstream/SKILL.md) | Promote a local `.apache-magpie-overrides/<skill>.md` file into a PR against `apache/magpie`; prompts to remove the override once merged and upgraded. | | |
| | [`setup-welcome-guide`](../../skills/setup-welcome-guide/SKILL.md) | Show a Magpie welcome guide on demand — the general one, or a family's such as `security` — and turn a dismissed one back on. | | |
| | [`setup-upstream-fix`](../../skills/setup-upstream-fix/SKILL.md) | Turn a framework bug or quirk hit mid-session into a fix PR against `apache/magpie`, after checking for an existing issue or PR that already covers it. | | |
| ## Deep documentation | |
| - [**The Apache Magpie Marketplace**](marketplace.md) — the one marketplace | |
| the project publishes, and the recommended way to install. Every agent that | |
| can add it, which families to pick, pinning, updates, and verification | |
| status. | |
| - [**Your first run with a family**](../quick-start/first-run.md) — the | |
| configuration walkthrough in terminal steps: what stops, what the wizard | |
| scaffolds, and which files a family needs before it will run. | |
| - [**Companion skill packages**](companion-skills.md) — third-party skill | |
| packages that pair with a Magpie family, and the install command for each | |
| agent that has one. None is a dependency. | |
| - [**`secure-agent-setup.md`**](secure-agent-setup.md) — full | |
| install walkthrough. The authoritative reference the | |
| `setup-isolated-setup-install` skill steps through. | |
| - [**`secure-agent-internals.md`**](secure-agent-internals.md) — | |
| how the layered defence works (sandbox + permission rules + | |
| clean-env wrapper) and why each layer exists. | |
| - [**`install-recipes.md`**](../quick-start/other-install-methods.md) — copy-pasteable | |
| shell recipes (svn-zip / git-tag / git-branch) for bootstrapping | |
| `setup` into a new adopter repo. | |
| - [**`uninstall.md`**](uninstall.md) — counterpart to `install-recipes.md`: | |
| remove the framework artefacts the install flow installed. One | |
| path, full plan surfaced before any write. | |
| - [**`sandbox-troubleshooting.md`**](sandbox-troubleshooting.md) — | |
| catalog of known sandbox-shaped failure modes (SSH agent / | |
| Yubikey unreachable, test port-bind blocked, docker/podman | |
| socket denied) with symptom → root cause → settings.json fix | |
| for each. The page to grep when a normal-looking operation | |
| fails in the sandbox in an unexpected way. | |
| - [**Individual use**](individual-use.md) — using Magpie on any repo, adopted | |
| or not, with nothing committed and nothing asked of teammates. The default, | |
| and the half that asks no one's permission. | |
| - [**Team adoption**](team-adoption.md) — what a repo commits so every | |
| contributor arrives with a recommended set: the floor lock, the default | |
| plugin set, the shared overrides, and keeping them current. The maintainer | |
| half of the pair. | |
| - [**`per-role-mcp-access.md`**](per-role-mcp-access.md) — how to | |
| enable an MCP server for yourself only (e.g. a release manager | |
| enabling a Policy MCP, a security triage member enabling a | |
| private CVE database) without touching shared project config: | |
| register the server in user-scope Claude settings, then write a | |
| personal `<skill>.md` override in your personal layer. | |
| ## Typical lifecycle | |
| ```text | |
| new dev machine | |
| ↓ setup-isolated-setup-install | |
| isolated setup installed | |
| ↓ setup-isolated-setup-verify (any time, especially after Claude Code upgrade) | |
| verified | |
| ↓ setup-isolated-setup-update (monthly / after Claude Code upgrade) | |
| drift surfaced | |
| ↓ setup-upgrade (when framework releases something new) | |
| framework checkout up to date | |
| ``` | |
| `setup-shared-config-sync` is orthogonal — it commits the user's | |
| `~/.claude/CLAUDE.md` and other shared config to a private sync | |
| repo so a fresh dev machine can pick it up (run after editing any | |
| file under `~/.claude-config/`). | |
| ## Cross-references | |
| - [Top-level README — Install](../../README.md#install) — 3-step bootstrap. | |
| - [`docs/prerequisites.md`](../quick-start/prerequisites.md) — what each framework | |
| skill needs (Claude Code, Gmail MCP, GitHub auth, browser, etc.). |