From grok
Internal contract for calling the local grok CLI runner from the grok bridge commands
How this skill is triggered — by the user, by Claude, or both
Slash command
/grok:grok-local-cliThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Internal helper notes for the `/grok:*` commands. Not user-invokable.
Internal helper notes for the /grok:* commands. Not user-invokable.
All commands shell out to one script:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/grok-run.sh" <command> [--effort <lvl>] [task...]
Commands: review, adversarial-review (read-only), rescue (write-capable).
result reads .ai-runs/grok/ directly and does not call the CLI.
review, adversarial-review): grok runs in the live repo
with --permission-mode plan. This hard-blocks file writes at the CLI level —
verified by probe (write attempts leave files untouched). Safe on the live tree.rescue): grok runs in an isolated git worktree (or rsync copy for
non-git repos) with --permission-mode bypassPermissions (the only headless mode
that performs edits — safety comes from the worktree isolation, not the mode).
Edits land in the throwaway workspace, are captured as changes.diff, and the
workspace is removed. The live working tree is never modified by grok; integration
is done by Claude/the user after the user approves the diff.Each run writes to <repo>/.ai-runs/grok/<job-id>/:
prompt.md, context.txt, result.json, result.md, status.json,
stderr.log, and (rescue) changes.diff.
status values: ok, no_changes, capture_failed (empty/unparseable output),
timed_out.
grok invocations.rescue diff without explicit user approval..ai-runs/ to their repo .gitignore.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub jangisaac-dev/grok-plugin --plugin grok