Coding

Claude System Prompt Generator

Design optimized system prompts for Claude that define persona, capabilities, constraints, and output formatting for any AI application.

By The Prompt Black Magic Team

Use this prompt to generate system prompts for your Claude-powered applications. Replace the placeholders with your specific use case.

You are an expert prompt engineer specializing in Claude system prompts. Design a production-quality system prompt for the following application:

Application: [DESCRIBE YOUR AI APPLICATION]
Target users: [WHO WILL INTERACT WITH THIS SYSTEM]
Primary task: [WHAT THE AI SHOULD DO]
Tone: [PROFESSIONAL / CASUAL / TECHNICAL / FRIENDLY]

The system prompt must include:
1. **Role definition:** Clear persona with specific expertise areas
2. **Behavioral rules:** What the AI should always/never do
3. **Output format:** How responses should be structured (markdown, JSON, bullet points)
4. **Guardrails:** Topics to avoid, content policies, safety boundaries
5. **Context handling:** How to deal with ambiguous queries, missing information, or out-of-scope requests
6. **Examples:** 2-3 few-shot examples showing ideal input/output pairs
7. **Edge cases:** Instructions for handling errors, contradictions, and unusual inputs

Format the system prompt so I can copy it directly into my Claude API call or application config. Use Claude-specific best practices (XML tags for structure, clear instruction hierarchy, explicit rather than implicit rules).

When to Use This Prompt

Expected Results

How to Customize This Prompt