com um clique
review
Run a full-context, read-only Grok code review over a workspace path
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Run a full-context, read-only Grok code review over a workspace path
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Use when the user says to use Grok, wants a Grok review, wants a second opinion from Grok, or asks to delegate a task to Grok. Also use for getting an independent code review from Grok, having Grok reason about an architecture or debugging question, having Grok implement code (live tree by default, or opt-in isolated worktree), or having Grok independently verify someone else's implementation. Trigger phrases include "use grok", "grok review", "second opinion from grok", and "delegate to grok".
Check Grok readiness and optionally toggle stop gate / run mode / Codex agents scope (Codex agents auto-install on SessionStart)
Have Grok implement code (default: live tree; opt-in isolated worktree). Nothing is committed or pushed
One-call delegate: Grok code then auto-handoff verification (verify-only; mode-aware integrate elsewhere)
ACP multi-turn peer channel (start/prompt/stop). Default peer path; opt out with GROK_DISABLE_ACP=1
Read a verified implementation handoff for a completed Grok code run (runId only; no apply)
Baseado na classificação ocupacional SOC
| name | review |
| description | Run a full-context, read-only Grok code review over a workspace path |
| argument-hint | [--target <path>] [--base <ref>] [--isolated] (--task <text> | --task-file <path>) [--web] [--schema <path>] [--model <id>] [--timeout <s>] [--max-turns <n>] [--wait|--background] |
| allowed-tools | Bash(node:*), Bash(git:*), AskUserQuestion |
SKILL.md and run.mjs).SKILL_BASE to that path. Do not invent versioned cache paths.SKILL_BASE='<Base directory for this skill - absolute path from Skill tool>'
# Required for completion notifications (see plugin/references/execution-context.md):
export GROK_COMPANION_EXECUTION_CONTEXT=foreground # or background
node "$SKILL_BASE/run.mjs" <mode> [args...]
run.mjs finds the plugin install from its own location and runs
scripts/grok-companion.mjs. No CLAUDE_PLUGIN_ROOT / PLUGIN_ROOT required.
If the host already exported CLAUDE_PLUGIN_ROOT or PLUGIN_ROOT, you may call
node "$CLAUDE_PLUGIN_ROOT/scripts/grok-companion.mjs" instead; prefer
"$SKILL_BASE/run.mjs" whenever the Skill tool loaded this skill.
Return companion stdout verbatim. Never put free-text in --task "...";
use --task-file - with a single-quoted heredoc.
Run a Grok review through the hardened wrapper and relay its result envelope.
Raw slash-command arguments:
$ARGUMENTS
Core constraint:
Required wrapper flags (copy exactly, substitute only placeholder values):
--target defaults to . (repo root / working tree) when omitted.--base <ref> frames a branch review against that base (comparison text
only). It does not force worktree isolation.--isolated (opt-in) runs the review in an owned external worktree at HEAD
with tracked dirty applied. Use when you need a clean snapshot without live
checkout noise. Setup failures fail closed as isolation-unavailable (no
silent fallback to the live tree). Default is live checkout.--task <text> or --task-file <path> is required. Prefer
--task-file for anything beyond a short one-line prompt.plugin/references/argv-safety.md):
task text is NEVER placed in a shell-evaluated position - deliver it with
--task-file - and a SINGLE-QUOTED heredoc. Wrap every substituted flag
VALUE in single quotes (--target '<path>'). Bare flags (--web) carry no
value to quote.--web passthrough:
--web only when the
review genuinely depends on current external practices, current library or
software versions, or living external documentation the repo's own rules and
code cannot answer (for example "does this match the latest stable API for
library X"). Do not add --web otherwise.Execution mode (foreground vs background):
--wait, run in the foreground (do not ask).--background, run in a Claude background task
(do not ask).--wait and --background are Claude Code execution flags. Do NOT forward
them to the companion or the wrapper; strip them from the wrapper argv.git status --short --untracked-files=all.git diff --shortstat for the working tree.AskUserQuestion exactly once, with the recommended option first and
its label suffixed with (Recommended). The two options are:
Wait for resultsRun in backgroundForeground flow (one Bash call, then relay verbatim). When the arguments carry a
--task <text>, route that text through STDIN so it is never shell-evaluated:
export GROK_COMPANION_EXECUTION_CONTEXT=foreground
node "$SKILL_BASE/run.mjs" review --target '<target from $ARGUMENTS>' [other non-task flags from $ARGUMENTS, each substituted value single-quoted] --task-file - <<'GROK_TASK'
<the --task text from $ARGUMENTS, verbatim>
GROK_TASK
When the arguments already use --task-file <path>, drop the heredoc and pass
every flag as single-quoted argv tokens:
export GROK_COMPANION_EXECUTION_CONTEXT=foreground
node "$SKILL_BASE/run.mjs" review --target '<target from $ARGUMENTS>' --task-file '<path from $ARGUMENTS>' [other non-task flags from $ARGUMENTS, each substituted value single-quoted]
Background flow:
export GROK_COMPANION_EXECUTION_CONTEXT=background (canonical pattern in
plugin/references/execution-context.md).Bash(run_in_background: true)./grok:status --run-id <id> to read the result envelope (the run id is printed when the run
finishes). If notifications are enabled (setup --notification-mode auto), a
completion signal may also fire when the job ends."Foreground flow must set export GROK_COMPANION_EXECUTION_CONTEXT=foreground
before node "$SKILL_BASE/run.mjs".
If the companion prints an actionable "could not locate the Grok wrapper"
message instead of an envelope, tell the user to run /grok:setup.