Isolated Setup Doctor 标志

Isolated Setup Doctor

组织
apache
isolated-setup-doctor

检查安全智能体配置中是否存在阻碍正常工作的限制,包括 SSH 代理的可访问性、端口绑定、容器、临时目录、签名密钥、沙箱外的 `gh`、沙箱内的 `prek` 和 `uv`,以及全局 git 钩子目录。针对每项限制,指出相应的故障排查条目和设置修复方法。只读。

Add to TypingMind

概览

发布者apache
代码仓库magpie
技能名称isolated-setup-doctor
星标数
132
复刻数
120
附带文件
13
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 13 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 apache 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Isolated Setup Doctor AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/isolated-setup-doctor
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/apache/magpie.git /tmp/magpie
mkdir -p .claude/skills
cp -r /tmp/magpie/plugins/magpie-setup/skills/isolated-setup-doctor .claude/skills/isolated-setup-doctor
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Isolated Setup Doctor,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Isolated Setup Doctor。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Isolated Setup Doctor 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

setup-isolated-setup-doctor

Runtime routing (run before the Claude-specific probes)

Use the operator's explicitly requested runtime when supplied; otherwise use the active session's runtime. An installed executable or configuration directory alone does not select a runtime. For the routing below, treat that selection as the active harness.

When the active harness is Codex, first require the static verification in docs/adapters/codex.md, then run the shared live environment probes inside the active Codex sandbox. Attribute failures separately to native sandbox/network denial, approval policy, or the POSIX agent-iso layer. Do not prescribe a .claude settings change for a Codex failure. Then stop before the Claude-specific branch below.

When the selected runtime is Antigravity, follow docs/adapters/antigravity.md: verify the user-scope profile first, then diagnose the actual tool result in the active Antigravity session. Distinguish sandbox limits, permission-rule denials, guard-hook failures, and wrapper or authentication problems. Do not require Claude configuration or prescribe Claude settings changes; then stop before the Claude-specific probes below.

When the selected runtime is Goose, follow docs/adapters/goose.md: verify the plugin, its sandbox runtime and the launcher first, then diagnose the actual tool result in the active Goose session. Distinguish sandbox limits or a missing sandbox runtime, hook denials (deny rules or the guard), a hook that failed closed, approve-mode declines, and wrapper or provider-key problems. Do not require Claude configuration or prescribe Claude settings changes; then stop before the Claude-specific probes below.

When the selected runtime is Pi, follow docs/adapters/pi.md: verify the package install first, then diagnose the actual tool result in the active Pi session. Distinguish sandbox limits or a sandbox that could not start, permission-rule denials, guard denials, and wrapper or authentication problems. Do not require Claude configuration or prescribe Claude settings changes; then stop before the Claude-specific probes below.

When the selected runtime is Copilot CLI, follow docs/adapters/copilot.md: verify the hook first, then diagnose the actual tool result in the live session.

When the harness is Claude Code, continue below. If the harness cannot be determined, ask once.

This is the diagnostic layer over the secure agent setup. verify checks statically that the setup is installed right, catching drift and missing pieces. This skill checks whether common workflows are functionally blocked by the sandbox as configured, catching over-restrictive allowlists. (install puts the setup in place; update reports framework drift.)

Run verify first when the install itself is in doubt: fresh machine, recent upgrade, sandbox-state surprise. Run doctor when the install is known good and a workflow fails in a sandbox-shaped way: agent unreachable, socket error, port permission error.

Every probe maps to a numbered entry in docs/setup/sandbox-troubleshooting.md. The doctor identifies which entry applies now; it does not re-explain the remediation. If a fail shows a failure mode not catalogued there, propose appending a new entry per the catalog's Adding a new entry section.

Golden rules

  • Read-only. Each probe is a small, deterministic, side-effect-free check. The skill never edits a settings file, never runs a command with dangerouslyDisableSandbox, and never installs anything. If a check fails, surface it and point at the catalog entry; do not auto-fix.
  • Run every probe, even on early failure. Do not stop at the first ✗. A user may have one of eight independent restrictions or all eight, and finding them one re-run at a time is annoying.
  • Distinguish ✗ (failing) from ⊘ (not applicable). ✗ means the probe ran and the sandbox blocked it. ⊘ means the probe was skipped because a prerequisite is absent (e.g. no docker / podman on PATH → docker probe ⊘, not ✗).
  • Surface evidence. Each report line names the probe command, the exit code, and the relevant stderr snippet. "Looks blocked" is not useful; "ssh-add -l → rc=2 → Could not open a connection to your authentication agent" is.
  • Sandbox placeholders are not files. Inside the Claude Code sandbox a denied path that does not exist on the host can appear as a /dev/null bind mount: stat -c '%F %t,%T' <path> prints character special file 1,3. git status lists such placeholders as untracked (.bash_profile, .claude/settings.json, .mcp.json), and reading one returns nothing. Take the host state from git (git ls-files <path>, git log -- <path>) or from a read the user runs outside the sandbox, and never delete the placeholder.
  • Map each ✗ to a catalog entry. The fail report links directly to the matching section of docs/setup/sandbox-troubleshooting.md. Do not paraphrase the remediation; the catalog is the single source of truth.

The probes

The probes cover the catalog's failure modes that a sandboxed command can detect on its own; the signing entries that need a live touch or a terminal are verified by setup-isolated-setup-verify check 10 instead. New probes are added when new entries land in the catalog, so the two stay in lock-step.

Probe 1 — SSH agent / Yubikey reachable

Tests whether ssh-agent is reachable from inside the sandbox. Two failure modes: SSH_AUTH_SOCK passes through claude-iso's env whitelist but the socket file is not in sandbox.filesystem.allowRead, so the agent's ssh / git push subprocesses cannot even stat(2) it; or, on macOS, the file is readable but its path is missing from sandbox.network.allowUnixSockets, so connect(2) is denied and the agent looks unreachable while the socket is plainly there. A signed commit hits the second as No private key found for public key.

Command:

bash
bash <skill-dir>/scripts/probe-1-ssh-agent.sh

Interpretation:

ResultStatusMeaning
✓ N identities listedPassssh-add -l returned the key list.
✓ agent reachable, no identitiesPassssh-add -l returned rc=1 (the documented "no keys" exit).
✗ socket not stat-ableFailSandbox blocks stat(2) on the socket file.
✗ agent unreachableFailSandbox blocks connect(2) to the socket.
⊘ SSH_AUTH_SOCK not setSkipEither the user does not run ssh-agent, or claude-iso's env whitelist dropped it (separate bug — verify).

On ✗ → remediation: docs/setup/sandbox-troubleshooting.md — SSH agent / Yubikey appears unreachable from inside the sandbox.

Probe 2 — Localhost port bind

Tests whether a process inside the sandbox can bind to a loopback port AND then talk to itself over loopback. The catalog documents the second half failing (egress proxy blocks 127.0.0.1).

Command:

bash
bash <skill-dir>/scripts/probe-2-localhost-bind.sh

Interpretation:

ResultStatusMeaning
✓ bound + loopback GET → HTTP 200PassBoth bind and loopback HTTP work.
✗ bind: [Errno 1] Operation not permittedFailThe sandbox refuses listening sockets outright; sandbox.network.allowLocalBinding is unset. Fails before any egress rule is consulted, so allowedDomains changes do not help.
✗ bind: ... (other errno)FailThe sandbox blocks bind(2) on 127.0.0.1 for another reason. Rare; report the literal error.
✗ bind ok, loopback GET: ...FailBind works but the sandbox egress proxy refuses 127.0.0.1 as a destination. Common shape.

On ✗ → remediation: docs/setup/sandbox-troubleshooting.md — Test cannot bind to a localhost port.

Probe 3 — Podman / Docker through the container gateway

Tests whether the runtime CLI can talk to the container gateway, not the real daemon socket; the sandbox never gets a route to the daemon itself. Run it for each of podman / docker on PATH; ⊘ each one not installed (an absent prerequisite, not a sandbox failure). The remaining checks narrow down which of the three wiring pieces (env var, running gateway, allowed socket) is missing, in the order a fresh install would hit them.

Command:

bash
bash <skill-dir>/scripts/probe-3-container-gateway.sh

status_json comes from the gateway's own read-only status subcommand. The doctor may call it from inside the sandbox, since it neither binds a socket nor touches the daemon. gw_src picks the adopter's pinned snapshot (.apache-magpie/tools/container-gateway/src) when present, else the framework repo's own tree (tools/container-gateway/src), else the operator install the SessionStart hook runs (~/.claude/scripts/container-gateway/src), so the same probe runs in an adopted checkout, in this framework's own worktree and on a marketplace install. Only status can vouch that the socket is the gateway's — a raw daemon socket answers <rt> info just as well — so with no status (no gateway source, or one the PATH python3 cannot import) the probe fails rather than trusting the socket. A status that exits 2 without a report has refused the run directory. The gw_state check runs before the raw socket-file test. A backend that status does not list under serving never gets a socket file, so testing -S "$sock" first would misreport "gateway not running" for the "running, but this backend's machine/daemon is down" case. The -S test is a defensive fallback for an already-serving backend whose socket vanished mid-probe, not the primary check.

Interpretation:

ResultStatusMeaning
✓ <rt> reaches the container gateway at <sock>PassCLI → gateway → daemon all answer.
✗ … unset — gateway not wired into settingsFailThe reference env block is missing from project settings.
✗ gateway socket missingFailThe SessionStart hook did not start the gateway, or it exited and no PreToolUse ensure hook started it again before the probe's container command (check 12a of setup-isolated-setup-verify flags a missing one); check container-gateway.log in the gateway's run directory — <project>/.apache-magpie-local/run/ when adopted, else <git-common-dir>/apache-magpie/run/<worktree-id>/.
✗ gateway status refused the run directoryFailstatus exited 2 without a report: a run-directory component is a symlink or has the wrong owner, type or mode. Inspect the run directory from outside the sandbox; do not point the CLI around it.
✗ gateway status unavailableFailThe probe could not get a report from status: no gateway source was found (install the operator copy, install Step L.1), or status exited without one (rc=N; typically a python3 on PATH too old to import the gateway). The socket may still work, but nothing confirms it is the gateway's.
✗ gateway running without a <rt> backendFailstatus reports the gateway up but serving does not list this CLI's backend — the Podman machine or Docker daemon behind it is not running. Start it from outside the sandbox, then restart the gateway.
✗ connect … deniedFailThe gateway socket is not in sandbox.network.allowUnixSockets.
✗ gateway up, backend downFailPodman machine / Docker not running on the host; start it from your own terminal.
✗ no response in 15s — <rt> info hungFail_probe_timeout killed a stalled <rt> info call; the backend daemon behind the gateway is likely wedged — restart it from outside the sandbox.
⊘ <rt> not on PATHSkipRuntime not installed; not a sandbox restriction.

An empty podman machine list from inside the sandbox is a read denial on the machine's directory, not proof that no machine exists. Decide the machine's real state from outside the sandbox, per the catalog entry below.

On ✗ → remediation: docs/setup/sandbox-troubleshooting.md — Docker / Podman command fails with a socket error.

Probe 4 — Per-project scratch directory (TMPDIR)

Tests whether the session has a writable scratch directory. The sandbox mounts the host /tmp read-only and makes only specific subpaths writable, so a session whose TMPDIR falls back to /tmp has no scratch area at all.

TMPDIR landing on the shared session root rather than a per-project directory is not a finding. Claude Code sets TMPDIR itself when it builds the sandbox, and that wins over env.TMPDIR from any settings file, so the shared root is expected and no configuration changes it. Each session still gets a per-project, per-session scratchpad beneath it.

Command:

bash
bash <skill-dir>/scripts/probe-4-scratch-dir.sh

Interpretation:

ResultStatusMeaning
✓ per-project + writablePassTMPDIR resolves under this project's path slug and accepts writes.
✓ writable; shared session rootPassThe expected value on current Claude Code. Every project on the machine shares this directory, so write through the per-session scratchpad beneath it, or use unique filenames — but there is nothing to fix.
✗ TMPDIR not setFailTooling falls back to /tmp, which is read-only inside the sandbox.
✗ directory missingFailTMPDIR names a path nothing has created yet.
✗ not writable inside sandboxFailTMPDIR points outside sandbox.filesystem.allowWrite.

On ✗ → remediation: docs/setup/sandbox-troubleshooting.md — Temp files fail with "Read-only file system" under /tmp.

Do not propose env.TMPDIR in a settings file as the fix. Claude Code overrides it when it builds the sandbox, so the setting is accepted and silently has no effect. The giveaway is a directory that exists, is named exactly as configured, and stays empty. The catalog entry above covers what is actually actionable.

Probe 5 — Signing key readable (gpg.format=ssh)

Tests whether the public key git hands to ssh-keygen -Y sign can be opened from inside the sandbox. Failure mode: the framework denies ~/.ssh/ wholesale, so with gpg.format=ssh every signed commit fails before the hardware key asks for a touch. The touch overlay, which waits for ssh-keygen to block, never sees it block.

Command:

bash
bash <skill-dir>/scripts/probe-5-signing-key.sh

Interpretation:

ResultStatusMeaning
✓ readable inside sandboxPassssh-keygen will be able to open the public key.
✓ literal keyPassuser.signingkey holds the key text itself; no file is involved.
✗ not readable inside sandboxFailThe sandbox's ~/.ssh/ read deny covers the public key; add that one file to allowRead.
⊘ gpg.format is not sshSkipSigning goes through gpg (or is off); the agent-socket rules behind Probe 1 are what matter.
⊘ user.signingkey unsetSkipMisconfigured signing, not a sandbox problem — mention it, do not fail the probe.
signing-program → ✓Passgit's signing program (the touch overlay's gpg-touch-wrap-* wrapper, or whatever gpg.ssh.program / gpg.program names) can be started from inside the sandbox. Nothing printed when neither key is set: git uses its default ssh-keygen / gpg from PATH.
signing-program → ✗FailThe program git is configured to sign with is read-denied inside the sandbox — for the overlay wrapper, ~/.claude/scripts/ is. Every sandboxed signed commit fails at once with cannot exec; add the wrapper's two files to allowRead.

On ✗ → remediation: docs/setup/sandbox-troubleshooting.md — Signed commit fails before any touch when git signs with ssh for the key, and docs/setup/sandbox-troubleshooting.md — Signed commit fails with "cannot exec" of the touch-overlay wrapper for the program.

Probe 6 — gh runs outside the sandbox

Tests whether gh can reach GitHub from a sandboxed Bash call, and if not, whether the sandbox.excludedCommands: ["gh *"] exclusion the framework reference relies on is in place. On macOS a sandboxed gh cannot verify TLS or read the keychain (x509: OSStatus -26276 / HTTP 401), so only the exclusion makes it work. The exclusion applies only when every segment of a Bash invocation is cd … or gh ….

The probe deliberately runs gh through sh -c so the exclusion cannot apply to it, showing what an un-excluded gh does on this machine.

Command:

bash
bash <skill-dir>/scripts/probe-6-gh-outside-sandbox.sh

Interpretation:

ResultStatusMeaning
✓ gh works inside the sandboxPassPlatform lets gh verify TLS and read its token inside the sandbox (typical on Linux).
✓ … "gh *" is in excludedCommandsPassThe known macOS shape, and the framework's exclusion is present. Calls still fail if they are not cd/gh-only invocations — see the catalog entry.
✗ … NOT found in excludedCommandsFailgh cannot work inside the sandbox on this machine and nothing runs it outside.
⚠ gh failed for another reasonWarnNot the catalogued shape (network down, not logged in, …); inspect the message.
⚠ catch-all "Bash(gh *)" in permissions.askWarnAsk beats allow regardless of specificity, so this rule prompts on every read-only gh call. Replace it with the explicit write-subcommand list from the reference .claude/settings.json. Extra line, printed after the main result.
⊘ gh not on PATHSkipgh not installed; not a sandbox restriction.

~/.claude/settings.json is usually unreadable from inside the sandbox, so the exclusion check may see only the project-scope files. If the user keeps the exclusion at user scope, a ✗ here is a false alarm; say so when reporting.

Even with the exclusion present, a gh call is excluded only when every part of the Bash invocation is cd … or gh …. A pipe, a $(…) substitution, a loop, or any file redirection (> file, even > /dev/null) puts it back in the sandbox. The redirection case is a Claude Code regression tracked in anthropics/claude-code#95532; the catalog entry shows the gh tofile alias that works around it. When the user reports a gh failure this probe does not reproduce, ask for the exact command line; the shape is usually the answer.

On ✗ → remediation: docs/setup/sandbox-troubleshooting.md — gh fails with TLS OSStatus -26276 or HTTP 401 inside the sandbox.

Probe 7 — prek and uv usable inside the sandbox

Tests whether the dev tools the framework's hooks and Python tools run on are found and can write their cache from a sandboxed Bash call. They live in ~/.local/bin, which the harness reads only when the worktree's .claude/settings.local.json grants it; the committed project-scope entries are not applied. Inside the sandbox a read-denied directory looks exactly like an absent one, so the probe reads settings.local.json to tell a missing grant from a tool that is not installed.

Command:

bash
bash <skill-dir>/scripts/probe-7-dev-tools.sh

Interpretation:

ResultStatusMeaning
✓ (found: …; ~/.cache writable)Passprek / uv run inside the sandbox and can write their caches.
✗ (found: …; ~/.cache not writable …)FailThe tools start but cannot write their cache or state.
⚠ (… not found; ~/.local/bin is not in … settings.local.json)WarnThe grant is missing; the tools are most likely installed but hidden.
⊘ (… not found; ~/.local/bin is granted …)SkipThe grant is present and neither tool is installed there; not a sandbox restriction.

On ✗ or ⚠ → remediation: docs/setup/sandbox-troubleshooting.md — prek or uv not found, or cannot write its cache, inside the sandbox.

Probe 8 — Global git hook dir readable (whole-user scope)

Tests whether git run inside the sandbox can see the hooks a global core.hooksPath points at. Git treats a hook it cannot see as one that does not exist, so an unreadable hook dir costs every hook — pre-commit and prek included — without an error. Only a look from inside the sandbox shows it, which is where this probe runs.

Command:

bash
bash <skill-dir>/scripts/probe-8-git-hooks.sh

Interpretation:

ResultStatusMeaning
✓ (… readable; hooks visible: …)PassSandboxed git runs the listed hooks.
✗ (core.hooksPath … not readable inside sandbox …)FailThe hook dir is hidden; every sandboxed commit skips every hook.
✗ (… readable, but not the target of: …)FailThe dir is visible but a hook's symlink target is not — typically hooks symlinked from a sync repo the sandbox does not grant.
⚠ (… holds none of pre-commit, commit-msg, pre-push, post-checkout)Warncore.hooksPath is set to a dir with none of the common hooks; check it is the intended one.
⊘ (no global core.hooksPath …)SkipPer-project scope: hooks live in each repo's .git/hooks, inside the project root.

On ✗ → remediation: docs/setup/sandbox-troubleshooting.md — Git hooks silently skipped for commits made inside the sandbox.

Probe 9 — Working directories under the read block

Tests whether, with permissions.blockReadsOutsideWorkingDirectories on, the scratch root /tmp/claude-<uid> the skills read on every run is a working directory. Without it nothing breaks, but each read there prompts, and a bulk sync multiplies that by its gatherer agents. It also fails when $HOME/.claude/magpie (the fixed path the vetted-ops rules name) is one, read block or not: the sandbox makes working directories writable, and the vetted-ops commands run from there outside the sandbox. The prompt comes before any command runs, so the sandbox-error hint hook never sees it; this probe is the only in-session pointer. Where the vetted-ops dispatcher is used, a ✓ here is not enough: its commands spell ~ literally, which the read block cannot check, so every vetted-op-read call prompts while the block is on, and a background gatherer turns each prompt into a silent denial. The setup requires the block off there (Read-only vetted ops never prompt); setup-isolated-setup-verify check 16 enforces it.

Command:

bash
bash <skill-dir>/scripts/probe-9-working-dirs.sh

Interpretation:

ResultStatusMeaning
✗ … is a working directory overlapping …Fail$HOME/.claude/magpie, a directory inside it, or a parent of it is listed, usually by an older sandbox-add-project-root.sh; re-run the updated script with --all-worktrees to remove it.
✓ … is a working directoryPassThe resolved scratch root is listed (normally in .claude/settings.local.json, written by sandbox-add-project-root.sh).
⚠ not a working directory: …WarnThe scratch root is missing; reads under it prompt.
⚠ … the glob entry … is never matchedWarnA glob such as /tmp/claude-* is listed as a working directory but does not match; replace it with the resolved path.
⊘ … blockReadsOutsideWorkingDirectories is offSkipNo read block, so nothing prompts.
⊘ HOME is not setSkipThe paths cannot be resolved; nothing to compare.
⊘ … user-scope settings unreadable from the sandboxSkipThe entries are missing from the readable project files, but the read block is usually set in user scope, which the sandbox cannot read; setup-isolated-setup-verify check 15 reads it from outside the sandbox.

On ✗ or ⚠ → remediation: docs/setup/sandbox-troubleshooting.md — Reads of ~/.claude/magpie or /tmp/claude-<uid> ask for approval every time.

After the report

If every probe is ✓ or ⊘:

All nine probes pass (or are not applicable). The sandbox is not currently blocking the known failure modes catalogued in docs/setup/sandbox-troubleshooting.md. If you hit a different sandbox-shaped failure, follow the catalog's Adding a new entry section and (optionally) extend this skill with another probe so future runs catch the same shape automatically.

If any probe is ✗:

  1. Surface every fail in one report (do not stop at the first).
  2. For each fail, print the troubleshooting-doc anchor link from the probe's On ✗ → remediation line above.
  3. Suggest the user read the catalog entry's symptom → root cause → fix, then apply the settings.json widening themselves. Do not propose to apply the widening from this skill; settings.json widenings are sandbox-bypass-adjacent and need an explicit user-driven edit.
  4. After the user has applied the widening (in a separate flow), re-run setup-isolated-setup-doctor to confirm the probe now passes.

If a probe surfaces a fail shape not catalogued in docs/setup/sandbox-troubleshooting.md:

  1. Report the fail with the literal probe command + exit code + stderr.
  2. Suggest the user add a new entry to the catalog per its Adding a new entry section (symptom verbatim, root cause, fix, notes).
  3. Once the catalog has the new entry, extend this skill with a matching probe in the same shape so the next doctor run catches it automatically.

Adding a probe

When the troubleshooting catalogue grows an entry, add a matching probe: scripts/README.md.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Isolated Setup Doctor AI 技能有什么作用?

检查安全智能体配置中是否存在阻碍正常工作的限制,包括 SSH 代理的可访问性、端口绑定、容器、临时目录、签名密钥、沙箱外的 `gh`、沙箱内的 `prek` 和 `uv`,以及全局 git 钩子目录。针对每项限制,指出相应的故障排查条目和设置修复方法。只读。

为什么在 TypingMind 中使用 Isolated Setup Doctor?

因为您只需安装一次,就能搭配任何模型使用。Isolated Setup Doctor 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Isolated Setup Doctor?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/isolated-setup-doctor。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Isolated Setup Doctor?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Isolated Setup Doctor 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Isolated Setup Doctor 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Isolated Setup Doctor AI 技能免费吗?

是的。apache 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇