grok-prompting

grok-prompting is a skill for Claude Code from stdevMac/grok-in-codex. It costs 21 tokens per session (186 once invoked), scanned A, original, Apache-2.0.

A guide for turning a coding problem into a short, well-scoped prompt for Grok, an external coding-agent runtime.

In plain words
What is it for?
Use it when delegating debugging or implementation work that needs a clear goal, known context, restrictions on changes, and requested tests or build checks.
Why use it?
It reduces ambiguous handoffs by preserving the relevant context, constraints, and completion checks without asking Grok to rediscover the problem.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Codex.

Good fit Use it when delegating debugging or implementation work that needs a clear goal, known context, restrictions on changes, and requested tests or build checks.

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

Made for: Claude Code.

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/stdevmac/grok-in-codex/grok-prompting/github.svg)](https://agentmods.dev/skills/stdevmac/grok-in-codex/grok-prompting)
Your own site
<a href="https://agentmods.dev/skills/stdevmac/grok-in-codex/grok-prompting"><img src="https://agentmods.dev/badge/skills/stdevmac/grok-in-codex/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/stdevmac/grok-in-codex/grok-prompting"><img src="https://agentmods.dev/badge/skills/stdevmac/grok-in-codex/grok-prompting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 186 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.00021 $0.00186
Opus 5.5 $0.00008 $0.00074
Sonnet 5.5 $0.00004 $0.00037
Haiku 4.5 $0.00002 $0.00019

Measured 1mo ago against content hash 7378bddb1646, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 30 lines

What it actually says

Grok prompting

Reshape a rescue request into a tighter prompt before the single task call.

Shape

  1. Goal — one sentence
  2. Context — what failed / what matters
  3. Constraints — no drive-by refactors, test expectations, worktree if requested
  4. Done when — measurable checks (--check helps)

Do

  • Preserve file names, errors, and commands the user mentioned
  • Ask for verification via tests/build when fixing bugs
  • Keep it short

Do not

  • Inspect the repo yourself
  • Invent stack traces
  • Solve the problem in the prompt
  • Embed model/effort/resume flags in the natural-language body
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. 1mo ago First seen · 30 lines · 21 tokens per session scan A 7378bddb1646

Subscribe to this mod's changes

grok-prompting is a skill published in the GitHub repository stdevMac/grok-in-codex (27 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 186 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

grok-prompting

How to shape a good prompt before delegating to Grok via the grok-rescue subagent or /grok-cc:rescue. Use when tightening a vague user request into a crisp Grok task. Covers stating the goal, constraints, acceptance criteria, and scope so a one-shot headless Grok run succeeds.

zachdunn/grok-plugin-claude-code · 73 tokens

gpt-5-4-prompting

Internal guidance for composing Codex and GPT-5.4 prompts for coding, review, diagnosis, and research tasks inside the Grok Codex plugin.

jinxlzc/grok-codex-plugin · 40 tokens

ima2

Use the ima2-gen CLI/server to generate, edit, inspect, and manage local AI image generation jobs.

lidge-jun/ima2-gen · 25 tokens

zero-shot

Use when the user asks to "check zero-shot", "audit few-shot anchoring", "find example anchoring", or invokes /zero-shot. Read-only audit of LLM-facing prose: principle over anchoring examples.

jongwony/epistemic-protocols · 48 tokens

dspy-prompt-optimizer

Tunes prompts iteratively using reflection and success metrics. Use for: optimize this prompt, dspy tune, improve prompt with reflection, self-refine-loop.

Stijnman/grok-custom-skills · 39 tokens

metaprompt

Generate a complete, ready-to-paste prompt engineered for a specific target model (Claude Fable 5.1 / Opus 5.5 / Sonnet 5 / Haiku 4.5, GPT-5.x) and harness (Claude Code CLAUDE.md or skill, Codex AGENTS.md, pi, Amp, eve, AI Gateway, Agent SDK, raw API, chat UI), using per-model and per-harness reference guides. Trigger…

JairoTorregrosa/jaiskills · 208 tokens