grok-pair

grok-pair is a skill for Claude Code from Lykhoyda/ask-llm. It costs 61 tokens per session (2,102 once invoked), scanned B, original, MIT.

A pairing workflow in which Grok gives independent, read-only feedback while the host coding agent edits the project.

In plain words
What is it for?
Pair programming with Grok, reviewing changes at checkpoints, and relaying verified suggestions without silently switching providers or models.
Why use it?
It adds iterative feedback during development while requiring consent for shared context and keeping the selected provider, connection route, and model fixed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

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

Good fit Pair programming with Grok, reviewing changes at checkpoints, and relaying verified suggestions without silently switching providers or models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lykhoyda/ask-llm/grok-pair
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-pair
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-pair

README.md
[![agentmods](https://agentmods.dev/badge/skills/lykhoyda/ask-llm/grok-pair.svg)](https://agentmods.dev/skills/lykhoyda/ask-llm/grok-pair)
Your own site
<a href="https://agentmods.dev/skills/lykhoyda/ask-llm/grok-pair"><img src="https://agentmods.dev/badge/skills/lykhoyda/ask-llm/grok-pair.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00061 $0.02102
Opus 5 $0.00030 $0.01051
Sonnet 5 $0.00012 $0.00420
Haiku 4.5 $0.00006 $0.00210

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

Security

Grade B, and why

grok-pair scanned grade B with 1 finding 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 8d 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.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

Save it as project `.cursor/mcp.json` or user `~/.cursor/mcp.json`. For `xai-api`, ensure `XAI_API_KEY` is present in the MCP server process environment; keep any literal secret in the user-level config and never commit
packages/claude-plugin/skills/grok-pair/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Portable contract

Apply ../pairing-contract.md. The host is the editor and Grok is the explicit read-only reviewer. Share bounded context only after consent, relay and verify actionable feedback at checkpoints, preserve exact route/model attribution, reuse a returned Cursor session where supported, propagate cancellation, and terminate clearly without silent provider, harness, or model fallback.

Host adapters

Cursor Agent adapter

When Cursor itself hosts this skill, do not recursively launch ask-cursor-agent. Offer only the explicit direct routes (xai-api or grok-cli) through an exact ask-grok leaf or a fully pinned unified ask-llm leaf, and follow the same consent and no-fallback contract. The Cursor plugin bundle registers only the unified ask-llm server; a separately user-installed grok entry (@ask-llm/grok-mcp) exposes the deterministic ask-grok leaf and is preferred when exposed. A unified call must specify provider: "grok", exact harness, exact model, and reasoningEffort; direct Grok is one-shot and does not accept include directories or sessions.

If neither leaf is exposed, stop and give this Cursor-native setup (never claude mcp add):

{"mcpServers":{"ask-llm":{"command":"npx","args":["-y","@ask-llm/mcp"]}}}

Save it as project .cursor/mcp.json or user ~/.cursor/mcp.json. For xai-api, ensure XAI_API_KEY is present in the MCP server process environment; keep any literal secret in the user-level config and never commit it. For grok-cli, install/authenticate Grok Build and verify grok --help advertises headless JSON support. Reload the server from Cursor Settings → Tools & MCP or restart Cursor Agent, verify that ask-llm is exposed, then invoke /grok-pair again. The split alternative is the same entry named grok with package @ask-llm/grok-mcp, which exposes ask-grok; keep one registration per server and do not configure both merely to create fallback.

Read the full file on GitHub · 116 lines

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. 8d ago First seen · 116 lines · 61 tokens per session scan B fe729689f9b1

Subscribe to this mod's changes

grok-pair is a skill published in the GitHub repository Lykhoyda/ask-llm (17 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 2,102 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads mcp configuration). 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