grok-prompting

grok-prompting is a skill for Claude Code, Codex 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 CodeCodex

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.

agentmods
npx agentmods add skills/stdevmac/grok-in-codex/grok-prompting
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00010 $0.00093
Sonnet 5 $0.00004 $0.00037
Haiku 4.5 $0.00002 $0.00019

Measured 5d ago against content hash 7378bddb1646, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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.

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. 5d 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 (23 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 186 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-30.

Related

Other skills, from other repositories