grok-review

grok-review is a skill for Claude Code from Lykhoyda/ask-llm. It costs 51 tokens per session (475 once invoked), scanned A, original, MIT.

An independent code review that sends your selected code changes to Grok through the xAI API, then checks Grok’s findings against the source.

In plain words
What is it for?
Reviewing staged, unstaged, and untracked changes with Grok, then returning only verified, prioritized issues.
Why use it?
It provides a second opinion from a separate model and helps filter out findings that the code does not support. The code context is sent to xAI and may incur metered API charges.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex.

Part of the ask-llm plugin — 18 skills, 9 agents, 5 hooks, 1 MCP server shipped together

Good fit Reviewing staged, unstaged, and untracked changes with Grok, then returning only verified, prioritized issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lykhoyda/ask-llm/grok-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lykhoyda/ask-llm --skill grok-review
Clone the repo
git clone --depth 1 https://github.com/Lykhoyda/ask-llm

Made for: Claude Code.

Or install ask-llm, the plugin that ships this one along with the rest of its 18 skills, 9 agents, 5 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grok-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/lykhoyda/ask-llm/grok-review/github.svg)](https://agentmods.dev/skills/lykhoyda/ask-llm/grok-review)
Your own site
<a href="https://agentmods.dev/skills/lykhoyda/ask-llm/grok-review"><img src="https://agentmods.dev/badge/skills/lykhoyda/ask-llm/grok-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grok-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/lykhoyda/ask-llm/grok-review"><img src="https://agentmods.dev/badge/skills/lykhoyda/ask-llm/grok-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00475
Opus 5 $0.00026 $0.00237
Sonnet 5 $0.00010 $0.00095
Haiku 4.5 $0.00005 $0.00047

Measured 10d ago against content hash 5b484c6a0db7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

grok-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/claude-plugin/skills/grok-review/SKILL.md · 31 lines

What it actually says

Portable contract

Gather the relevant staged, unstaged, and untracked changes; build a bounded context brief; request an independent Grok review; verify every reported finding against source; and return only prioritized, source-supported findings. State that project context is sent to xAI and may incur API charges. Never enable billing, buy credits, use priority processing, substitute models, or retry on another model.

Host adapters

Pi adapter

Call the native ask-grok tool and apply only the Portable contract section of ../../agents/grok-reviewer.md; ignore that file's frontmatter and Claude Code adapter.

Claude Code adapter

Review current code changes by delegating to the grok-reviewer agent.

  1. Confirm the user configured XAI_API_KEY and understands xAI API usage is metered separately from any Grok consumer subscription. Do not configure billing or credits.
  2. Gather git diff, git diff --cached, and relevant untracked files. If there are no changes, say so.
  3. Launch the grok-reviewer agent with a bounded diff and relevant project instructions.
  4. If the Grok MCP tool is unavailable, explain how to register it without attempting another provider. For API use: claude mcp add --scope user grok -e XAI_API_KEY="$XAI_API_KEY" -- npx -y @ask-llm/grok-mcp For official Grok Build, install/authenticate grok, set ASK_GROK_HARNESS=grok-cli in the MCP environment, and register the same package without silently switching from API.
  5. Preserve provider/model/harness attribution and any xAI error verbatim after secret redaction. Never silently route to Codex, Gemini, or another model.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 31 lines · 51 tokens per session scan A 5b484c6a0db7

Subscribe to this mod's changes

grok-review is a skill published in the GitHub repository Lykhoyda/ask-llm (18 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 475 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories