Borrowing it
Nothing to install: this file belongs to verivus-oss/llm-cli-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/verivus-oss/llm-cli-gateway/main/.agents/skills/provider-grok/SKILL.mdgit clone --depth 1 https://github.com/verivus-oss/llm-cli-gatewayWrote 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.
[](https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/provider-grok)<a href="https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/provider-grok"><img src="https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/provider-grok/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.
<a href="https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/provider-grok"><img src="https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/provider-grok.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.02080 |
| Opus 5 | $0.00037 | $0.01040 |
| Sonnet 5 | $0.00015 | $0.00416 |
| Haiku 4.5 | $0.00007 | $0.00208 |
Grade A, and why
provider-grok 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Provider: xAI Grok CLI
Process guidance for keeping the gateway's Grok (grok) integration aligned
with the upstream CLI. This skill does not define argv/env behaviour; the
single mechanical source of truth is UPSTREAM_CLI_CONTRACTS.grok in
src/upstream-contracts.ts, enforced by validateUpstreamCliArgs /
validateUpstreamCliEnv. Never re-encode flags, permission modes, sandbox, or
resume rules here or in TOML.
Identity
| Field | Value |
|---|---|
| CliType | grok |
| Executable | grok |
| Distribution | vendor (no pinned npm/PyPI package recorded) |
| Changelog | https://docs.x.ai/developers/release-notes.md |
| Install docs | https://docs.x.ai/build/overview |
| Watch categories | flags, permission-modes, session-resume, sandbox, output-formats |
These values mirror UPSTREAM_CLI_CONTRACTS.grok.upstreamMetadata and
docs/upstream/provider-sources.dag.toml ([providers.grok]). The TypeScript
metadata is authoritative; the TOML is scanner input only.
When to use
- An xAI Grok CLI release lands and you need to check for contract drift.
- A
grokrequest fails the upstream contract check before spawn. npm run upstream:scan -- --livereports a change on the x.ai changelog.
How LLM agents should use Grok through the gateway
- Discover the live gateway/provider surface before relying on Grok-specific
controls or local skill tools:
For a cached read-only resource, useprovider_tool_capabilities({cli:"grok"})provider-tools://grok. - Use
grok_requestfor normal turns andgrok_request_asyncfor long-running review, analysis, or diversity checks. Sync calls may auto-defer; pollllm_job_statusand fetch withllm_job_resultwhen that happens. - Omit
modelunless the caller explicitly asked for a specific variant; the gateway resolves the configured Grok default. - Do not copy Claude tool names such as
Read,Grep,Glob, orBashinto GrokallowedTools; Grok has its own provider-native tool names. This was the root cause of prior Grok reviewer startup failures. - Grok supports gateway
allowedTools/disallowedTools,allow/deny,alwaysApprove,permissionMode, agent/subagent controls, web-search toggles, memory/planning toggles, prompt controls, output format, workspace/worktree/native-worktree controls, session controls, and compaction/effort controls as reported byprovider_tool_capabilities. UseapprovalStrategy:"legacy": Grok rejectsmcp_managedbefore launch andapprovalPolicyhas no effect. Its permission and sandbox controls remain provider-native. Native ACP also rejects those Claude-only fields. mcpServersis descriptive metadata only; Grok owns its MCP configuration.- Local Grok skills are discoverable from
~/.grok/skillsand bundled skill directories.provider_tool_capabilitiesreports discovered provider-native tools such as Imagineimage_gen,image_edit,image_to_video, andreference_to_videowhen those skills are present. The gateway still executes Grok throughgrok_request; it does not directly call those native tools. - The full subcommand surface (including
agent/*,update,worktree,dashboard,login, etc.) is exposed viaprovider_subcommands_list,provider_subcommand_contract, andprovider_subcommand_driftfor inspection and drift monitoring.dashboard(grok 0.2.60 (474c2bbfc)+) is catalogued as read-only/inspect. - Grok continuity is real via
sessionId,resumeLatest,createNewSession,--resume, and--continue. Auth must already be set up withgrok loginorXAI_API_KEY. Bind concurrent repository work withworkingDiror a verifiedworkspace. Use gatewayworktreeonly with an explicit provider-nativesessionIdthat is not overridden bycreateNewSession; fresh,createNewSession, andresumeLatest-only worktree requests fail closed. - An unscoped CLI child uses a fresh neutral temporary cwd. A cwd-scoped
resumeLatestwithout a stable selected target fails closed. Grok's current prompt contract is argv-bound, so oversized UTF-8 input fails as non-retryableinput_too_largeand is never truncated. All other caller-controlled argv values are admitted in their final encoded form before spawn. Embedded NUL bytes return non-retryableinvalid_inputwithout exposing the rejected value.
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.
- 5d ago Changed 3a700e765274
- 10d ago First seen · 142 lines · 75 tokens per session scan A 01318f0d5092
provider-grok is a skill published in the GitHub repository verivus-oss/llm-cli-gateway (15 stars, last pushed 2d ago), licensed MIT. It adds 75 tokens to every session and 2,080 once invoked, about $0.0004 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.
Other skills, from other repositories
provider-integration
Adds new AI providers to claude-council, configures provider API settings, troubleshoots provider connections, and documents the provider script interface. Covers creating provider shell scripts, setting API keys, and validating connectivity. Triggers on "add provider", "new AI agent", "provider not working", "API…
architect
System design, tradeoffs, and complex technical decisions.
security-analyst
Threat-model and find vulnerabilities, with practical remediation.
plan-reviewer
Validate that a work plan is executable before work starts.
researcher
Research external libraries, APIs, and best practices, with evidence.
debugger
Rank root-cause hypotheses and propose the smallest safe fix.