Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ask-llm-grok-pair

БесплатноБез исполняемых скриптовНе проверен

Pair with Grok as an explicit independent reviewer while the host edits. Use when the user asks for /grok-pair, Grok pair programming, iterative Grok…

Lykhoydaот Lykhoyda★ 20 звёзд на GitHub

Об этом скилле

Portable contract

Apply ../ask-llm-codex-pair/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

Pi adapter

Unsupported on Pi: Grok pairing needs a dedicated Pi consent and lifecycle adapter that does not exist yet. Say so and stop before collecting context or calling any provider.

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; an earlier user-installed grok entry that still exposes the deterministic ask-grok leaf 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 standalone @ask-llm/grok-mcp package is retired, so never suggest installing it; keep one registration per server and do not configure two merely to create fallback.

Other hosts adapter

Codex, Antigravity, Gemini CLI and OpenCode follow the Cursor Agent adapter above; ask-llm setup registers the server there, so point to it instead of the Cursor mcp.json snippet. When Grok Build hosts this skill, do not route through grok-cli, which would launch Grok Build from inside itself; offer only xai-api or Cursor Agent.

Claude Code adapter

/grok-pair

Run an iterative pair-programming session in which Claude remains the sole editor and Grok is the independent reviewer.

1. Parse and lock the route

Accept optional command text in this form (ask for any missing choice):

/grok-pair route=cursor-agent model=grok-4.7-high include=packages/api,packages/shared <task>
/grok-pair route=xai-api model=grok-4.7 effort=xhigh <task>
/grok-pair route=grok-cli model=grok-4.7 effort=high <task>

Supported routes:

  1. cursor-agent — preferred only when an ask-cursor-agent MCP tool is actually exposed and the user supplies an exact Grok-family ID from agent --list-models. Use provider: "grok"; never use Auto. Reasoning effort remains part of the exact Cursor catalog ID, not a separate generic option.
  2. xai-api — call ask-grok with harness: "xai-api", exact model, and explicit reasoningEffort. Requires XAI_API_KEY; metered xAI API pricing is separate from consumer subscriptions.
  3. grok-cli — call ask-grok with harness: "grok-cli", an exact ID from grok models, and explicit reasoningEffort. Uses the authenticated official Grok Build plan.

Inspect the current tool surface by leaf capability. The Claude plugin bundles only Codex; Cursor and Grok tools come from user-scoped registrations such as mcp__ask-llm__ask-cursor-agent, mcp__ask-llm__ask-llm, or mcp__grok__ask-grok, so match on the __ask-cursor-agent, __ask-grok, or __ask-llm leaf and never on one assumed prefix. When no ask-grok leaf exists but the unified ask-llm leaf does, a direct route may use ask-llm({ provider: "grok", harness, model, reasoningEffort, prompt }) only with every one of those fields pinned explicitly; the unified schema rejects unsupported combinations instead of stripping them. An unpinned generic call or a raw CLI never replaces a missing selected tool.

If both Cursor and direct tools exist and no route was given, recommend Cursor Agent and show the direct alternatives, then use AskUserQuestion to obtain an explicit selection. Once selected, route/model/effort are immutable. A failure is terminal for that route.

2. Bound context and obtain consent

Read ../ask-llm-codex-pair/pairing-contract.md. Determine the task, changed files, project instructions, tests, and requested relative include directories. Reject absolute, ..

Полный SKILL.md на GitHub

Установить ask-llm-grok-pair в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл ask-llm-grok-pair?

Pair with Grok as an explicit independent reviewer while the host edits. Use when the user asks for /grok-pair, Grok pair programming, iterative Grok feedback, or Grok through Cursor Agent. Selects one exact route/model with consent and never falls back.

Как установить скилл ask-llm-grok-pair?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ask-llm-grok-pair запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ask-llm-grok-pair с