بنقرة واحدة
grok-cli-runtime
Internal helper contract for calling the grok-companion runtime from Claude Code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Internal helper contract for calling the grok-companion runtime from Claude Code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Run a multi-angle Grok analysis in a single call — Grok analyzes the task from several expert angles (security, review, research, tests) and synthesizes one consolidated answer with a section per angle plus a verdict. Use when the user wants a thorough, multi-perspective audit/review/analysis of something ("find everything wrong with…", "review this from all angles", "deep multi-angle look at…") that benefits from more coverage than a single-shot question. Read-only by default.
Ask xAI Grok a one-off question with optional live web search. Use when the user wants Grok's opinion or a quick answer that benefits from Grok's distinct training (recent web/X awareness, code-focused models). Read-only by default. Returns Grok's stdout verbatim.
Deep research with xAI Grok using effort=max, live web search, and Grok's self-verification --check loop. Use when the user wants a thorough investigation of a topic, recent events, or claims that need source-grounding. Returns Grok's research output verbatim.
Delegate a long-form coding task, root-cause investigation, multi-file refactor, or open-ended fix to xAI Grok via the companion's `task` subcommand. Use when the work is too large or specialized to handle inline and benefits from Grok's distinct training (live web search, code-focused models, 512K context).
Generate an image from a text description using xAI Grok's `/imagine` builtin. Use when the user asks for an image, picture, illustration, logo, mockup, or visual artifact. Returns the absolute path to the saved image plus an `open` command to view it.
Internal guidance for composing Grok prompts for coding, review, diagnosis, and research tasks inside the Grok Claude Code plugin
استنادا إلى تصنيف SOC المهني
| name | grok-cli-runtime |
| description | Internal helper contract for calling the grok-companion runtime from Claude Code |
| user-invocable | false |
Use this skill only inside the grok:grok-rescue subagent.
Primary helper:
node "${CLAUDE_PLUGIN_ROOT}/scripts/companion.mjs" task "<raw arguments>"Execution rules:
task once and return that stdout unchanged.git, direct grok CLI strings, or any other Bash activity.setup, review, adversarial-review, status, result, cancel, or purge from grok:grok-rescue.task for every rescue request, including diagnosis, planning, research, and explicit fix requests.grok-prompting skill to rewrite the user's request into a tighter Grok prompt before the single task call.--write ONLY when the user explicitly asks for code changes.--write is gated by GROK_PLUGIN_ALLOW_WRITE=1 in the environment. If the env var is missing the helper will refuse with exit 2 and a message explaining yolo mode. Do not retry, do not try to set the env var yourself — surface the refusal to the user verbatim and let them decide.--model unset by default. Add --model <name> only when the user explicitly requests one.--effort unset by default. Add --effort <level> only when the user explicitly requests one. Valid values: low, medium, high, xhigh, max.Command selection:
task invocation per rescue handoff.--background or --wait, treat that as Claude-side execution control only. Strip it before calling task, and do not treat it as part of the natural-language task text.--write or --read-only, pass it through to task.--timeout <duration>, pass it through. Forms accepted: 300s, 5m, 1h, 500ms, or 0 to disable. The default for task is unbounded (rescue work is open-ended). Override only if the user named a specific duration. On timeout the helper exits 124 — surface that to the user rather than retrying.--session-id <id>, pass it through. Grok creates a new session if not found, or resumes it if it exists. Use this to continue a previous rescue thread instead of starting fresh.--resume=<id> or bare --resume (resume most-recent), pass it through to task. NOTE: the named form REQUIRES the inline = syntax — --resume <id> (space-separated) is parsed as bare --resume (bool) plus a stray positional, NOT as a named resume. --continue (continue most-recent session for cwd) is also a passthrough. v0.9.5+: companion's extractPolicyFlags routes these into the final grok argv via grokBaseArgs.purge from this subagent. /grok:purge is a destructive disk-cleanup operation the user invokes explicitly; rescue is forwarder-only.Safety rules:
grok:grok-rescue unless the user explicitly asks for code changes.task command exactly as-is.