# Grok prompting

> Grok prompting is an open-source agent skill for ai models and llm tooling. Guides an agent in writing focused prompts for Grok coding, review and research tasks. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/LovelaceLoom/grok-plugin-cc/tree/main/plugins/grok/skills/grok-prompting
- **Repository:** https://github.com/lovelaceloom/grok-plugin-cc
- **GitHub stars:** 5
- **License:** Apache-2.0
- **Skill name:** grok-prompting
- **Collection:** https://github.com/LovelaceLoom/grok-plugin-cc
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/LovelaceLoom/grok-plugin-cc/tree/HEAD/plugins/grok/skills/grok-prompting)
- [License: Apache-2.0](https://github.com/LovelaceLoom/grok-plugin-cc/tree/HEAD/plugins/grok/skills/grok-prompting)

## Features

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

## Install

### Claude Code

This skill ships in the `grok` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add LovelaceLoom/grok-plugin-cc
/plugin install grok@grok-plugin-cc
```

Or copy only this skill to `~/.claude/skills/grok-prompting`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/grok-prompting` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/grok-prompting` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/LovelaceLoom/grok-plugin-cc.git --path plugins/grok/skills/grok-prompting
```

Or copy the folder to `~/.gemini/skills/grok-prompting` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/grok-prompting`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git
```

Then 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.

## 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.

## Alternatives

- [Grok result handling](https://ai-powered.com/skills/grok-result-handling): Grok result handling is an open-source agent skill for developer tools.
- [Prompt optimizer](https://ai-powered.com/skills/prompt-optimizer-getsentry): Prompt optimizer is an open-source agent skill for ai models and llm tooling.
- [Grok rescue](https://ai-powered.com/skills/grok-rescue): Grok rescue is an open-source agent skill for developer tools.
- [Grok CLI runtime](https://ai-powered.com/skills/grok-cli-runtime): Grok CLI runtime is an open-source agent skill for developer tools.
- [Prompt optimizer](https://ai-powered.com/skills/prompt-optimizer-github): Prompt optimizer is an open-source agent skill for ai models and llm tooling.
- [Finalize agent prompt](https://ai-powered.com/skills/finalize-agent-prompt): Finalize agent prompt is an open-source agent skill for ai models and llm tooling.
- [Execute](https://ai-powered.com/skills/execute-ajyadav013): Execute is an open-source agent skill for ai models and llm tooling.
- [Agent prompt engineering](https://ai-powered.com/skills/agent-prompt-engineering): Agent prompt engineering is an open-source agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/grok-prompting
