/spellguard:spellguard-setupfrom spellguard
Bootstraps a Spellguard-issued GitHub credential via WebSocket and browser authorization. Use when setting up Spellguard for the first time or re-authorizing GitHub access.
Ships in spellguard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill bootstraps a Spellguard credential for the current Claude Code session. It opens a WebSocket to the Spellguard broker, surfaces a setup URL the user follows in their browser, starts the persistent credential daemon, and waits (bounded) for the broker to push a scoped GitHub token back to the plugin.
Run the wrapper with the BashTool:
${CLAUDE_PLUGIN_ROOT}/bin/skill-spellguard-setup
The wrapper writes interactive prompts and the URL to stderr; it returns a JSON summary on stdout when complete. It can legitimately run for ~15 minutes (up to 10 waiting for the browser approval, then up to 5 waiting for the dashboard GitHub connect), so prefer running it in the background and relay the setup URL to the user as soon as it appears in the output.
~/.config/spellguard/config.json.The JSON summary reports what happened, e.g.
{"ok":true,"daemon":"spawned","githubCredential":"delivered"}.
githubCredential:"pending" is NOT an error — it means the dashboard
GitHub connect hasn't completed yet.
Git-credential protection for the CURRENT session still finishes wiring at the next session start (restart or /clear) — the env-file injection is performed by the SessionStart hook.
Just execute the wrapper and surface its output. Don't try to reimplement the flow in the conversation — the wrapper is the source of truth.
The wrapper runs non-interactively under the skill, so it cannot show its menu. If it reports an existing identity, ASK THE USER which action they want, then re-run the wrapper with the matching flag:
--choice print — show the current identity (default behavior)--choice additional — provision an additional agent (replaces the
credential stored on this machine; the server keeps the existing agent)--choice reauthorize — re-authorize this machine (re-binds the same
agent identity; only the secret rotates)/spellguard-reset — disconnect this machine: deregister server-side
(tolerates an already-deleted agent), stop the local credential daemon,
and delete the stored credential. Use before a from-scratch test.If the wrapper reports the agent is "no longer recognized by the server", it has already fallen through to fresh setup — just surface the new URL.
SessionStart hooks fire only on startup/resume/clear/compact — never on
/reload-plugins — so on a fresh mid-session install nothing else can
start the daemon before the user's next session. Setup must leave one
running or the pushed GitHub credential has no consumer (2026-06-11
incident).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
spellguard, github-credential, setup, authorization, websocket, credential-daemon
npx claudepluginhub spellguard/spellguard --plugin spellguard4 skills in this plugin
/spellguard-cliUse when an agent needs to inspect, script, or operate the Spellguard CLI for auth, managed agents, provisioning, setup, diagnostics, operations, connection, or JSON/YAML/table output contracts./spellguard-handler-authoringWrite, debug, or repair a Spellguard task handler — the single executable a managed box runs for a task type. Use when asked to 'write a handler', 'add a task type', 'make my agent do X when Y happens', 'why did my handler fail', 'my task timed out', 'the handler isn't running', 'inspect the handlers on this box', 'restore a handler', or when editing anything under ~/.config/spellguard/handlers. Teaches the handler ABI (stdin envelope, the three environment variables, the result-file contract, exit semantics), the heartbeat obligation that keeps a long task alive, how to report progress and completion without credentials, and how to read handler inventory and divergence states./spellguard-resetDisconnect this machine from Spellguard. Use when the user runs /spellguard-reset, wants a from-scratch setup test, or needs to cleanly tear down the agent on this machine (deregister server-side, stop the daemon, delete the local credential).Other plugins' skills for the same job