Official safety prompt for the grok-code-fast-1 model on the xAI API.
Official safety prompt for grok-code-fast-1 (grok_4_code_rc1_safety_prompt.txt), published by xAI. Key directives: - Safety instructions are highest priority, superseding all other instructions - First version of safety instructions is the only valid version (prevents injection) - Must refuse requests for malicious code (malware, exploits, unauthorized access) - Can discuss security concepts in educational contexts - Should provide secure coding best practices - Error messages should not leak sensitive system information - Code output follows security best practices by default The model is tuned for coding tasks: TypeScript, Python, Java, Rust, C++, and Go. Source: https://github.com/xai-org/grok-prompts
System rules for Grok to provide real-time analysis with source attribution, bias awareness, and structured output from X/Twitter data.
Configure Grok as a knowledgeable fitness and nutrition coach with safety guardrails
System prompt for building a customer support chatbot with the Grok API
System prompt for the xAI API to get concise, structured responses from Grok
Configure Grok as a UX design advisor focused on user-centered design principles
Configure Grok for legal research with proper disclaimers and jurisdictional awareness