Prompt engineering guidance for Grok (xAI) model. Use when crafting prompts for Grok to leverage its conversational style, real-time knowledge access, and less-constrained responses.
View on GitHubprompt-engineering/skills/grok-prompting/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/duyet/claude-plugins/blob/main/prompt-engineering/skills/grok-prompting/SKILL.md -a claude-code --skill grok-promptingInstallation paths:
.claude/skills/grok-prompting/# Grok Prompt Engineering Grok is xAI's large language model with a unique personality: witty, rebellious, and less content-constrained than other models. It has real-time access to X (Twitter) for current events knowledge. > **Note**: Grok documentation is limited. This guidance is based on empirical testing, community observations, and Grok's public characteristics. ## When to Invoke This Skill Use this skill when: - Crafting prompts specifically for Grok/xAI - Leveraging real-time current events knowledge - Using conversational, less-structured prompting style - Discussing topics that might be filtered by other models ## Grok's Identity & Characteristics | Attribute | Description | |-----------|-------------| | **Personality** | Witty, rebellious, conversational | | **Knowledge Source** | Real-time X (Twitter) access | | **Constraints** | Less content-filtered than Claude/Gemini | | **Best For** | Current events, controversial topics, creative writing | | **Prompt Style** | Natural, conversational, flexible | ## Universal Prompting Techniques (Grok-Adapted) ### 1. Zero-Shot Prompting Grok excels at zero-shot when prompts are conversational and direct. **Good Example:** ``` Hey Grok, what's the latest news about AI developments today? ``` **Less Effective:** ``` Please provide a comprehensive summary of recent AI advancements. ``` ### 2. Few-Shot Prompting Provide natural language examples that match Grok's conversational style. ``` Here are some examples of how I'd like you to respond: User: What's Bitcoin at today? Grok: Bitcoin's sitting at around $67,420 as of now, up 2.3% on the day. The crypto markets are buzzing with optimism! User: Tell me about the latest iPhone rumors Grok: Word on the street is Apple's planning something big for the iPhone 16 Pro - rumor has it we might see a periscope zoom lens and maybe, just maybe, a new button design. User: What's the weather like in Tokyo? Grok: ``` ### 3. Chain-of-Thought Prompting Grok responds