
Grok prompting
Guides an agent in writing focused prompts for Grok coding, review and research tasks
Grok prompting is an open-source agent skill for ai models and llm tooling. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Grok prompting
This internal skill sits inside the Grok plugin for Claude Code and is meant to be used only by the grok rescue agent. It helps turn a loose user request into a tighter Grok prompt built from a goal, short repo context, constraints and a stated output format, and it offers patterns for common intents such as diagnosing a bug, fixing a failing test, explaining a flow, comparing design options or checking recent ecosystem changes.
The skill also covers plugin mechanics. It explains how the model and effort settings are chosen, how session ids can be passed to keep work continuous across calls, and how the write flag must be handled, including returning a refusal to the user unchanged instead of working around it. It advises leaving a request untouched when it is already specific.
It expects the Grok companion plugin and its helper commands to be installed in Claude Code. It has no scripts of its own and no tool restrictions are declared.
When your agent uses it
Internal guidance for composing Grok prompts for coding, review, diagnosis, and research tasks inside the Grok Claude Code plugin
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (4 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the grok plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add LovelaceLoom/grok-plugin-cc
/plugin install grok@grok-plugin-ccOr copy only this skill to ~/.claude/skills/grok-prompting:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/grok-prompting &&
cp -R "$tmp/plugins/grok/skills/grok-prompting" ~/.claude/skills/grok-prompting &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/grok-prompting inside it instead.
Copy the skill folder to ~/.agents/skills/grok-prompting to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/grok-prompting &&
cp -R "$tmp/plugins/grok/skills/grok-prompting" ~/.agents/skills/grok-prompting &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/grok-prompting inside it instead.
Copy the skill folder to ~/.cursor/skills/grok-prompting to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/grok-prompting &&
cp -R "$tmp/plugins/grok/skills/grok-prompting" ~/.cursor/skills/grok-prompting &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/grok-prompting inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/LovelaceLoom/grok-plugin-cc.git --path plugins/grok/skills/grok-promptingOr copy the folder to ~/.gemini/skills/grok-prompting yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/grok-prompting:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/grok-prompting &&
cp -R "$tmp/plugins/grok/skills/grok-prompting" ~/.copilot/skills/grok-prompting &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/grok-prompting inside it instead.
Get the folder:
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.gitThen copy grok-plugin-cc/plugins/grok/skills/grok-prompting into your agent's skills folder as grok-prompting. Agents that support SKILL.md read one folder per skill.
What it does
- Structured prompt composition
- Shows how to build a Grok prompt from a goal, context, constraints and expected output.
- Task-specific prompt patterns
- Provides ready templates for diagnosis, test fixes, code walkthroughs, design options and recent-change research.
- Model and effort selection
- Explains when to set the model or effort level and the precedence used to resolve the model.
- Session continuity handling
- Describes passing session ids to create or resume Grok sessions across calls.
- Write mode safeguards
- Defines how the write flag is passed through and how refusals are reported back to the user.
- Anti-pattern guidance
- Lists prompt habits to avoid, such as restating the whole repo or pre-deciding the fix.
Good for
- Diagnose why a function returns the wrong value in my repo
- Fix a failing unit test with a minimal patch
- Explain how the request flow works through a feature module
- Compare design options for a new caching layer with tradeoffs
- Find recent changes in a library I depend on, with sources
Grok prompting FAQ
Where does Grok prompting run?
It is internal and is loaded only from inside the grok rescue agent of the Grok Claude Code plugin, not invoked directly by users.
Does Grok prompting change my files?
The skill itself only gives guidance. Edits only happen when write mode is passed and the companion allows it through the GROK_PLUGIN_ALLOW_WRITE environment variable.
Which model does Grok prompting use by default?
Unless the user names a model, the plugin resolves one from the caller flag, the GROK_PLUGIN_MODEL variable, the workspace config, or the default grok-build in lib/grok.mjs.
How are sessions kept across calls?
A user can name a session with --session-id, resume one with --resume, or continue the latest session for the working directory with --continue.
How do I install Grok prompting in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/grok-prompting to use it in all your projects, or to .claude/skills/grok-prompting in one project. Or install the grok plugin, which includes it: /plugin marketplace add LovelaceLoom/grok-plugin-cc, then /plugin install grok@grok-plugin-cc.
Does Grok prompting run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Grok prompting?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Grok prompting?
The closest alternatives to Grok prompting are Grok result handling, Prompt optimizer, Grok rescue, Grok CLI runtime and Prompt optimizer.
Where this comes from
- Description: from the skill's own SKILL.md.
More from LovelaceLoom/grok-plugin-cc

Sends a one-off question to xAI Grok and returns its answer unchanged
- Open source
- 5 GitHub stars
- AI models and LLM tooling

Lets a Claude Code subagent hand rescue tasks to the Grok companion runtime
- Open source
- 5 GitHub stars
- Developer tools

Runs parallel Grok analyses from several expert angles and merges them into one verdict
- Open source
- 5 GitHub stars
- Developer tools

Generates images from text prompts through xAI Grok's imagine builtin
- Open source
- 5 GitHub stars
- Design and media

Hands a long coding task or root-cause investigation to xAI Grok via a companion script
- Open source
- 5 GitHub stars
- Developer tools

Runs deep web-grounded research on a topic through xAI Grok with self-verification
- Open source
- 5 GitHub stars
- Web search and scraping


