Skip to content
Back to skills

Setup

ASecurity

Check whether the local Grok CLI is ready for the companion runtime. Use when validating or changing the local companion setup.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
ai-agentsshellbashnode

Works with

  • claude code
  • terminal
  • cli

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add okisdev/claude-code-fusion --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/okisdev-setup-06fa9035/badge)](https://www.skillsdirectory.com/skills/okisdev-setup-06fa9035)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: setup
description: Check whether the local Grok CLI is ready for the companion runtime. Use when validating or changing the local companion setup.
argument-hint: '[--continuity <manual|claude-session>] [--enable-stop-gate | --disable-stop-gate] [--clear-quota-cooldown] [--json]'
disable-model-invocation: true
allowed-tools: Bash(node:*), Read, Write
---

Treat the complete raw request as opaque data and never place any part of it in Bash. Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" transport-create` in one foreground Bash call, accept only its 48 character lowercase hexadecimal token, and use `Read` once on the returned file, requiring it to be empty. Use `Write` to replace that same file with the raw request exactly as received. Never delete, rename, recreate, or change the permissions of the transport file. Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" setup --raw-args-token TOKEN` in one foreground Bash call with timeout `600000`, replacing only `TOKEN` with the validated token. If Read fails, the file is not empty, or Write fails, run `node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" transport-discard --raw-args-token TOKEN`. Never use shell redirection, encoding, command substitution, backticks, environment variables, or heredocs for the raw request.

Present the setup output to the user.

- If the Grok CLI is missing, preserve the install guidance from the command output.
- Model and effort defaults belong in `~/.grok/config.toml`, not in plugin flags. Preserve that guidance when present.
- Preserve the reported continuity policy. `manual` is the default and resumes only when the caller explicitly supplies `--resume` or `--resume-last`. `/grok:setup --continuity claude-session` persists automatic affinity for ordinary direct tasks from the same Claude session, exact resolved working directory, mode, credential profile, and memory setting. Fusion routed briefs do not receive automatic affinity and stay fresh unless explicitly resumed. Review and stop gate runs remain fresh. `/grok:task --fresh` bypasses affinity for one task.
- Preserve the capability readiness line in text output. With `--json`, also preserve capability detail and every per-flag verdict across the plugin surface: `--prompt-file`, `--output-format`, `--sandbox`, `--tools`, `--disallowed-tools`, `--deny`, `--max-turns`, `--no-auto-update`, `--permission-mode`, `--allow`, `--disable-web-search`, `--always-approve`, `--json-schema`, and `--no-wait-for-background`; `--no-subagents` is honored in headless mode on 1.0.77 and 1.0.88 and is reported separately because the Agent deny and `GROK_SUBAGENTS=0` also disable subagents. Top-level `ready` requires the binary, private data directory access, every universal and mode-specific capability, and the installed build at or above the tested floor `1.0.14`. Every managed run requires a new matching `ProfileApplied` sandbox event in the shared `$GROK_HOME/sessions/sandbox-events.jsonl` log containing its unique private `TMPDIR` before sending the prompt because the shared event log exposes no run id or pid; the home-root location that 1.0.13 and earlier wrote is unsupported. Builder tracing starts only after stdin is consumed; fallback or unmatched warnings terminate early, and a successful close is rejected without positive applied evidence. Preserve the `compatibility` line for the tested interval `[1.0.14, 1.0.89)`, with a verification-pass next step when the installed build is newer than that interval. Preserve the version dependent host environment report: 1.0.88 and later accept symlinks resolved to covered deny-list endpoints, but an OrbStack socket can remain reachable from a macOS strict write shell even when `deny_paths` lists it. Consult and review stay ready for a covered symlink, `writeReady` is false while the socket exists, and write runs are refused until the engine is stopped (for OrbStack, `orb stop`) or writes route to another lane. Removing the `/var/run` symlink does not resolve write reachability. `/fusion:doctor` audits the transport, environment isolation, worktree, and future ACP boundaries after an upgrade.
- Preserve the advisory line covering whether a `grok doctor` subcommand is available, probed with a short bounded spawn regardless of its output format. It is informational only and never changes top-level `ready`.
- Report the private Grok home path and whether it is ready. The companion excludes the user’s Grok plugins and hooks and copies the selected login into its profile’s private home before each strict launch. Unsandboxed Grok probes refresh the credential source directly.
- A CLI installation, version, or required capability preflight failure persists and renders failure kind `setup`. Preserve its upgrade or repair guidance and tell the user to rerun `/grok:setup`; do not retry the unchanged task against the incompatible surface.
- The primary switch for the stop-time review gate is the plugin's `Stop gate review` setting in Claude Code's plugin configuration: when enabled, the Stop hook asks Grok to review the working tree diff whenever Claude Code stops with uncommitted changes. Only `BLOCK: <reason>` on the first nonempty reply line blocks the stop; a preamble before `BLOCK` and infrastructure failures fail open. SessionEnd attempts verified process cleanup for jobs owned by that Claude session and removes verified unused raw transports, but it does not delete terminal job records, briefs, or logs. `--enable-stop-gate` and `--disable-stop-gate` remain as a scripting fallback that persists the same toggle locally; they only take effect when the plugin setting is left unset. The report shows the current gate state.
- Preserve the quota cooldown line when present. After a run fails with failure kind `quota`, the companion fails later managed runs fast until the cooldown expires (one hour by default; `GROK_QUOTA_COOLDOWN_MS` overrides it and `0` disables it). `/grok:setup --clear-quota-cooldown` clears it once the xAI balance is restored, and any successful managed run clears it too.
- Managed native sessions live under `<plugin data>/homes/<profileKey>/sessions` with upstream’s default 30 day retention. Removing the plugin data directory also removes managed sessions and the job ledger.

The opaque raw request begins after the next newline and continues to the end of this command prompt:
$ARGUMENTS

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.