grok-result-handling

grok-result-handling is a skill for Claude Code from okisdev/claude-code-fusion. It costs 18 tokens per session (725 once invoked), scanned A, original, MIT.

Internal guidance for displaying results from the Grok companion service. It requires the returned review output to be shown exactly as received, including session, job, usage, cost, and incomplete-result details.

In plain words
What is it for?
Handling and presenting Grok review responses, including partial results and usage records.
Why use it?
It prevents important status and accounting information from being lost or altered when a Grok review is presented.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the grok plugin — 3 skills, 2 agents shipped together

Good fit Handling and presenting Grok review responses, including partial results and usage records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okisdev/claude-code-fusion/grok-result-handling
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 okisdev/claude-code-fusion --skill grok-result-handling
Clone the repo
git clone --depth 1 https://github.com/okisdev/claude-code-fusion

Made for: Claude Code.

Or install grok, the plugin that ships this one along with the rest of its 3 skills, 2 agents.

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-result-handling

README.md
[![agentmods](https://agentmods.dev/badge/skills/okisdev/claude-code-fusion/grok-result-handling/github.svg)](https://agentmods.dev/skills/okisdev/claude-code-fusion/grok-result-handling)
Your own site
<a href="https://agentmods.dev/skills/okisdev/claude-code-fusion/grok-result-handling"><img src="https://agentmods.dev/badge/skills/okisdev/claude-code-fusion/grok-result-handling/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-result-handling

Your own site · 80×15
<a href="https://agentmods.dev/skills/okisdev/claude-code-fusion/grok-result-handling"><img src="https://agentmods.dev/badge/skills/okisdev/claude-code-fusion/grok-result-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 725 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.00018 $0.00725
Opus 5 $0.00009 $0.00362
Sonnet 5 $0.00004 $0.00145
Haiku 4.5 $0.00002 $0.00072

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

Security

Grade A, and why

grok-result-handling 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 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.

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.

plugins/grok/skills/grok-result-handling/SKILL.md · 24 lines

What it actually says

Grok result handling

When the helper returns Grok output:

  • Return the companion output verbatim, whether the Bash tool reports it from stdout or stderr. Do not paraphrase, summarize, or add commentary before or after it.
  • Keep the grok-session and job lines; the user needs them to resume or inspect the run.
  • Preserve reported request id, turn count, aggregate and per-model token usage, cost, partial-cost, incomplete-usage-ledger, and structured-output fields. Grok headless JSON has no top-level model field; model names come only from modelUsage keys when usage attaches, including a salvaged error envelope. Upstream per-model entries contain input, output, cache-read, and model-call counts plus optional cost; never invent aggregate reasoning or total tokens. When usage_is_incomplete is true, present counts are observed lower bounds and both job-total token and cost coverage are incomplete. Missing values stay missing; do not infer zero or exactness.
  • A Grok max turns outcome preserves the complete final JSON envelope, including partial text, usage, num_turns, and modelUsage, even though the process exits 1 with stderr Error: max turns reached. Treat its failure: turn_limit as a sizing result, not an engine health failure.
  • For review output, keep findings ordered by severity and use the file paths and line numbers exactly as the helper reports them.
  • If there are no findings, say that explicitly and keep the residual risk note brief.
  • If Grok made edits, say so explicitly and list the touched files when the helper provides them.
  • The review run is read only consult mode and never edits files. After it returns, triage findings by verification, not by asking. The orchestrator separately decides whether to act on each confirmed finding; when it does, dispatch a fix without prompting, and drop false positives with a stated reason. Only a finding that forces a genuine product or design decision goes to the user as a question. Close with one report: what was fixed, what was dropped, and why.
  • Return a failed or incomplete Grok run to the caller with its typed failure. For automatic Fusion routing, the caller applies the circuit breaker and an eligible fallback; a direct user selected Grok command reports the failure without silently changing engines. Never implement inside result handling.
  • Return a cleanup-required failure receipt immediately even though its durable state remains running. Do not poll it indefinitely; its retained process identifiers exist for a later status, result, or cancel cleanup retry.
  • If the helper reports malformed output, a structured output error, missing or mismatched ProfileApplied evidence, an owned-stderr sandbox warning or handshake timeout, shared sandbox-event rotation, absent positive tool allowlist evidence, a fallback or unmatched policy warning, or another failed run, include the most actionable log lines and return control to the caller instead of guessing. Shared ApplyFailed events are auxiliary diagnostics because upstream supplies no run id or pid.
  • If the helper reports that the Grok CLI is missing, direct the user to /grok:setup and do not improvise alternate install flows.
  • If the helper reports failure kind setup, do not retry the unchanged task. Direct the user to upgrade or repair the Grok CLI and rerun /grok:setup; automatic Fusion routing may use another healthy eligible lane meanwhile.
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 · 24 lines · 18 tokens per session scan A 2fde23c66136

Subscribe to this mod's changes

grok-result-handling is a skill published in the GitHub repository okisdev/claude-code-fusion (3 stars, last pushed 3d ago), licensed MIT. It adds 18 tokens to every session and 725 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

review-team

A multi-reviewer code review process that checks a change from several specialist viewpoints and combines the results into one report. It can cover bugs, security, tests, dependencies, frontend behavior, and continuous-integration workflows.

s977043/river-review · 147 tokens

swarm-pi-configure

Configure Pi providers, credentials, models, role routing, and shared project policy in the guided local setup. Use for first setup, recovery, provider or model changes, or full reconfiguration; use swarm-pi-project when provider connections must stay unchanged.

JiaWeiXie/swarm-pi-code-plugin · 57 tokens

swarm-pi-implement

Implement an explicitly authorized change, fix, or refactor in an existing repository with Pi. Use for scoped file mutation; route new projects to scaffold, project tooling to setup, and design-only work to plan. Delivery, commit, and push remain separate decisions.

JiaWeiXie/swarm-pi-code-plugin · 59 tokens

swarm-pi-orchestrate

Compare bounded read-only Pi perspectives on repository architecture, migration, tradeoffs, or risk. Use when independent perspectives materially improve a decision; route one question to ask, one change plan to plan, and file mutation to implement.

JiaWeiXie/swarm-pi-code-plugin · 53 tokens

swarm-pi-discover

Investigate unknown requirements or unresolved technical claims through Pi's fixed research, experiment, and convergence sequence. Use when reproducible evidence and Human Decision gates are required; route one answer to ask and evidence-ready design to plan.

JiaWeiXie/swarm-pi-code-plugin · 51 tokens

swarm-pi-project

Configure Pi project routing, execution safety, scope, Host Assistance, Decision Mode, Advisor, timing, and testing defaults while preserving provider connections. Use for project-policy changes; use swarm-pi-configure for provider or authentication changes.

JiaWeiXie/swarm-pi-code-plugin · 52 tokens