# xai-org/grok-prompts

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/xai-org-grok-prompts).**

3,943 stars · 420 forks · Jinja · agpl-3.0

## Links

- GitHub: https://github.com/xai-org/grok-prompts
- awesome-repositories: https://awesome-repositories.com/repository/xai-org-grok-prompts.md

## Description

grok-prompts is a library of system prompts and templates used to define the personality, safety boundaries, and operational logic of large language models. It provides a framework for managing model personas and the integration of external tools through structured configurations.

The project focuses on persona management to ensure consistent response styles and professional tones. It includes specific configurations for safety guardrails to prevent harmful outputs and a tool integration framework that enables models to interact with services for web search, image generation, and document analysis.

The library also defines schemas for structured data output, specifically for rendering interactive charts via JSON and formatting mathematical expressions using LaTeX syntax. It covers the extraction and summarization of external content, such as user profiles and social posts.

## Tags

### Artificial Intelligence & ML

- [AI Prompt Configurations](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-prompt-configurations.md) — Uses system prompts and templates to define the personality, safety constraints, and operational logic of language models. ([source](https://github.com/xai-org/grok-prompts#readme))
- [System Prompts](https://awesome-repositories.com/f/artificial-intelligence-ml/system-prompts.md) — Implements a comprehensive library of system-level instructions to define model personality, safety, and operational logic.
- [AI Agent Tool Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-integrations/ai-agent-tool-integrations.md) — Defines the interfaces for AI models to interact with external software, databases, and APIs.
- [Persona and Behavioral Instructions](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-prompt-engineering-templates/automated-prompt-generation/persona-and-behavioral-instructions.md) — Uses predefined identity and behavior templates to maintain consistent model personality and operational style.
- [AI Safety Guardrails](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-safety-guardrails.md) — Provides operational boundaries and safety rules embedded in system prompts to prevent harmful model outputs.
- [LLM Tooling Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/artificial-intelligence-tooling/language-model-integrations/llm-tooling-integrations.md) — Defines the interfaces and configurations enabling language models to interact with external tools like web search and document analysis.
- [Persona Identity Definitions](https://awesome-repositories.com/f/artificial-intelligence-ml/character-recognition-models/persona-identity-definitions.md) — Specifies identity and response style guidelines through configuration interfaces to ensure consistent persona execution. ([source](https://github.com/xai-org/grok-prompts/blob/main/grok3_official0330_p1.j2))
- [External Tool Integration](https://awesome-repositories.com/f/artificial-intelligence-ml/external-tool-integration.md) — Configures how a model interacts with external APIs for tasks like web search and document processing. ([source](https://github.com/xai-org/grok-prompts/blob/main/grok4p1_non_thinking_system_turn_prompt.j2))
- [Behavioral Constraints](https://awesome-repositories.com/f/artificial-intelligence-ml/model-behavioral-analysis/prompt-engineering-workflows/behavioral-constraints.md) — Defines core operational constraints to ensure truth-seeking responses and a professional tone. ([source](https://github.com/xai-org/grok-prompts/blob/main/grok_4_mini_system_prompt.txt))
- [Model Capability Extensions](https://awesome-repositories.com/f/artificial-intelligence-ml/model-capability-extensions.md) — Sets permissions for model capabilities such as web search, memory access, and image generation. ([source](https://github.com/xai-org/grok-prompts/blob/main/grok3_official0330_p1.j2))
- [Tool Schema Definitions](https://awesome-repositories.com/f/artificial-intelligence-ml/tool-schema-definitions.md) — Defines external service interactions and capability permissions using standardized schema formats within system prompts.
- [Multimedia Content Analyzers](https://awesome-repositories.com/f/artificial-intelligence-ml/image-content-analyzers/multimedia-content-analyzers.md) — Processes user profiles, social posts, images, and documents to extract and summarize key information. ([source](https://github.com/xai-org/grok-prompts/blob/main/grok4p1_thinking_system_turn_prompt_v2.j2))

### Security & Cryptography

- [AI Personas](https://awesome-repositories.com/f/security-cryptography/identity-access-management/access-control/identity-role-management/ai-personas.md) — Provides reusable system prompts and configurations to define behavioral identities for AI assistants.
- [User Persona Profiles](https://awesome-repositories.com/f/security-cryptography/identity-access-management/identity-management/user-management/user-persona-profiles.md) — Injects personality preferences and custom instructions to create tailored response styles for different users. ([source](https://github.com/xai-org/grok-prompts/blob/main/grok3_official0330_p1.j2))

### Data & Databases

- [LLM Schema Outputs](https://awesome-repositories.com/f/data-databases/data-governance-modeling/data-modeling-schemas/data-schemas/schema-validated-data-structures/schema-enforced-output-parsers/llm-schema-outputs.md) — Defines schemas for generating validated, machine-readable JSON and LaTeX outputs from model responses.
- [JSON Chart Generators](https://awesome-repositories.com/f/data-databases/interactive-data-charting/json-chart-generators.md) — Generates structured JSON objects that define interactive charts and graphs for frontend rendering.
- [Interactive Visualization Rendering](https://awesome-repositories.com/f/data-databases/interactive-visualization-rendering.md) — Generates structured JSON configurations that allow a frontend to render dynamic, interactive charts and graphs.

### Networking & Communication

- [Analysis Templates](https://awesome-repositories.com/f/networking-communication/email-address-validators/email-content-parsing/ai-powered-content-extraction/document-content-extraction/analysis-templates.md) — Processes external profiles and documents by mapping raw input to specific analysis templates for summarization.

### Scientific & Mathematical Computing

- [Mathematical Typesetting](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/mathematical-typesetting-engines/mathematical-typesetting.md) — Enforces LaTeX syntax for all mathematical expressions to ensure consistent visual rendering of equations.

### Software Engineering & Architecture

- [Mathematical Notation Rendering](https://awesome-repositories.com/f/software-engineering-architecture/expression-transformers/notation-converters/mathematical-notation-rendering.md) — Formats mathematical expressions using LaTeX syntax for consistent visual rendering of equations. ([source](https://github.com/xai-org/grok-prompts/blob/main/grok4p1_non_thinking_no_tool_system_turn_prompt.j2))
