grok-prompting

grok-prompting is a skill for Claude Code from davit-khaburdzania/grok-plugin-cc. It costs 31 tokens per session (1,155 once invoked), scanned A, original, Apache-2.0.

Internal guidance for turning coding, review, diagnosis, or research requests into concise prompts for Grok Build, an AI coding tool.

In plain words
What is it for?
It is for structuring Grok tasks with explicit goals, output requirements, follow-up behavior, and limits on unsupported guesses.
Why use it?
It helps make the request and expected result clear before sending the task to Grok.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

Part of the grok plugin — 3 skills, 10 commands, 1 agent, 3 hooks shipped together

Good fit It is for structuring Grok tasks with explicit goals, output requirements, follow-up behavior, and limits on unsupported guesses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davit-khaburdzania/grok-plugin-cc/grok-prompting
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 davit-khaburdzania/grok-plugin-cc --skill grok-prompting
Clone the repo
git clone --depth 1 https://github.com/davit-khaburdzania/grok-plugin-cc

Made for: Claude Code.

Or install grok, the plugin that ships this one along with the rest of its 3 skills, 10 commands, 1 agent, 3 hooks.

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-prompting

README.md
[![agentmods](https://agentmods.dev/badge/skills/davit-khaburdzania/grok-plugin-cc/grok-prompting/github.svg)](https://agentmods.dev/skills/davit-khaburdzania/grok-plugin-cc/grok-prompting)
Your own site
<a href="https://agentmods.dev/skills/davit-khaburdzania/grok-plugin-cc/grok-prompting"><img src="https://agentmods.dev/badge/skills/davit-khaburdzania/grok-plugin-cc/grok-prompting/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-prompting

Your own site · 80×15
<a href="https://agentmods.dev/skills/davit-khaburdzania/grok-plugin-cc/grok-prompting"><img src="https://agentmods.dev/badge/skills/davit-khaburdzania/grok-plugin-cc/grok-prompting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,155 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.00031 $0.01155
Opus 5 $0.00015 $0.00577
Sonnet 5 $0.00006 $0.00231
Haiku 4.5 $0.00003 $0.00115

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

Security

Grade A, and why

grok-prompting 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 11d 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-prompting/SKILL.md · 66 lines

How it starts

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

Grok Prompting

Use this skill when grok:grok-rescue needs to shape a request into a tighter Grok Build prompt before the single task handoff.

Prompt Grok like an operator, not a collaborator. Keep prompts compact and block-structured with XML tags. State the task, the output contract, the follow-through defaults, and the small set of extra constraints that matter.

Core rules:

  • Prefer one clear task per Grok run. Split unrelated asks into separate runs.
  • Tell Grok what done looks like. Do not assume it will infer the desired end state.
  • Add explicit grounding and verification rules for any task where unsupported guesses would hurt quality.
  • Prefer better prompt contracts over raising reasoning effort or adding long natural-language explanations.
  • Use XML tags consistently so the prompt has stable internal structure.

Default prompt recipe:

  • <task>: the concrete job and the relevant repository or failure context.
  • <structured_output_contract> or <compact_output_contract>: exact shape, ordering, and brevity requirements.
  • <default_follow_through_policy>: what Grok should do by default instead of asking routine questions.
  • <verification_loop> or <completeness_contract>: required for debugging, implementation, or risky fixes.
  • <grounding_rules> or <citation_rules>: required for review, research, or anything that could drift into unsupported claims.

When to add blocks:

  • Coding or debugging: add completeness_contract, verification_loop, and missing_context_gating.
  • Review or adversarial review: add grounding_rules, structured_output_contract, and dig_deeper_nudge.
  • Research or recommendation tasks: add research_mode and citation_rules.
  • Write-capable tasks: add action_safety so Grok stays narrow and avoids unrelated refactors.

How to choose prompt shape:

  • Use the built-in review or adversarial-review commands when the job is reviewing local git changes. Those prompts already carry the review contract. grok:grok-rescue forwards only to task, so route review-style asks by saying they belong to the review commands rather than to a task run.
  • Use task when the task is diagnosis, planning, research, or implementation and you need to control the prompt more directly.
  • Use task --resume-last for follow-up instructions on the same Grok session. Send only the delta instruction instead of restating the whole prompt unless the direction changed materially.

Working rules:

  • Prefer explicit prompt contracts over vague nudges.
  • Use stable XML tag names that match the block names in the reference file.
  • Do not raise reasoning effort or complexity first. Tighten the prompt and verification rules before escalating. Grok's --effort flag accepts none, minimal, low, medium, high, xhigh, max; leave it unset unless the user asked for a specific effort.
  • Ask Grok for brief, outcome-based progress updates only when the task is long-running or tool-heavy.
  • Keep claims anchored to observed evidence. If something is a hypothesis, say so.

Grok runtime facts you can rely on in prompts:

  • Grok runs headless with --always-approve. A write run uses a workspace sandbox (edits limited to the repository, /tmp, and ~/.grok); without --write it uses a read-only sandbox.
  • Grok has built-in tools: shell, read_file, search_replace, write, grep, list_dir, web_search, web_fetch, spawn_subagent, and todo_write. You can name these when a prompt needs a specific tool path.

Read the full file on GitHub · 66 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 66 lines · 31 tokens per session scan A c98b5139e3ea

Subscribe to this mod's changes

grok-prompting is a skill published in the GitHub repository davit-khaburdzania/grok-plugin-cc (1 stars, last pushed 23d ago), licensed Apache-2.0. It adds 31 tokens to every session and 1,155 once invoked, about $0.0002 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.