← ClaudeAtlas

collaborating-with-groklisted

Delegate tasks to Grok CLI (xAI) for prototyping, debugging, code review, research, and cross-model second opinions. Supports multi-turn sessions via SESSION_ID.
appautomaton/agent-designer · ★ 130 · AI & Automation · score 80
Install: claude install-skill appautomaton/agent-designer
# Collaborating with Grok Drive the Grok CLI headlessly as an independent collaborator while the calling agent stays responsible for verification, synthesis, and final user-facing decisions. The bridge (`scripts/grok_bridge.py`) wraps `grok -p`, streams progress to stderr, returns structured JSON, and manages multi-turn continuity via `SESSION_ID`. Always go through the bridge — don't invoke `grok` directly — so output parsing, the safe permission default, and session handling stay consistent. Commands below write `<skill_dir>` for the absolute path of the directory containing this SKILL.md. Your harness usually reports that path when it loads the skill. If it does not, use this SKILL.md's own location. Substitute it before running, for example `~/.claude/skills/collaborating-with-grok`. In Claude Code, run non-trivial calls in the background and watch stderr progress: ```text Bash tool call: command: python3 <skill_dir>/scripts/grok_bridge.py --cd "/project" --tools "read_file,grep,list_dir" --PROMPT "Analyze auth flow in src/auth/" run_in_background: true ``` ## Safety Grok can read, edit, and run shell. The bridge **defaults to `--permission-mode default`** so headless gated actions are cancelled rather than inheriting host configuration. Read-class tools and Grok's safe-command fast paths still run automatically; use a tool allowlist for deterministic read-only work. `--always-approve` is a mutually exclusive, explicit write-authority choice. | Posture | Flags