Get an independent Grok code review through the xAI API. Use when the user asks to review with Grok or wants a Grok second opinion. Requires XAI_API_KEY and explicit acceptance of metered xAI API pricing.
20 stars
0 votes
0 copies
7 views
Added October 2, 2026
ai-agentsgitapi
Works with
claude code
cursor
cli
api
mcp
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ask Llm Grok Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lykhoyda-ask-llm-grok-review)
---
name: ask-llm-grok-review
description: Get an independent Grok code review through the xAI API. Use when the user asks to review with Grok or wants a Grok second opinion. Requires XAI_API_KEY and explicit acceptance of metered xAI API pricing.
---
<!-- PORTABLE-CONTRACT:START -->
## 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.
Never apply review fixes without asking the user first. If a provider or reviewer fails, times out, or is not invoked, report that plainly; never substitute your own findings or attribute any findings to it.
<!-- PORTABLE-CONTRACT:END -->
## Host adapters
### Pi adapter
Call the native `ask-grok` tool and apply the portable contract above.
### Other hosts adapter
Codex, Cursor Agent, Antigravity, Grok Build, Gemini CLI and OpenCode get this skill from their skills folder, not from a plugin. Apply the portable contract above inline with a Grok call as described in `../ask-llm-review/transport.md` (`provider: "grok"`, `reasoningEffort: "high"`).
<!-- HOST-ADAPTER:CLAUDE-CODE:START -->
### 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:
`npm install -g @ask-llm/mcp && claude mcp add --scope user ask-llm -e XAI_API_KEY="$XAI_API_KEY" -- "$(npm prefix -g)/bin/ask-llm-mcp"`
For official Grok Build, install/authenticate `grok`, set `ASK_GROK_HARNESS=grok-cli` in the MCP environment, and register the same server 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.
<!-- HOST-ADAPTER:CLAUDE-CODE:END -->