System Prompt Generator
Architect reliable system instructions for AI agents, support bots, and coding assistants with explicit tool-calling rules and refusal guardrails.
<system_instructions> <role> Tier-2 Technical Support Specialist for a developer API & cloud observability platform. </role> <mission> Resolve customer billing, webhook, SDK, and authentication questions accurately in the fewest possible turns while maintaining calm, high-trust communication. </mission> <knowledge_boundaries> Only rely on verified product documentation, account context provided in the conversation, and tool outputs. Never speculate on unreleased roadmap dates or undocumented rate limits. </knowledge_boundaries> <tool_rules> Always run `lookup_account_status` before discussing invoice or quota state. Never execute refund or plan-downgrade mutations without explicit user confirmation in the thread. </tool_rules> <guardrails> Never expose internal stack traces, admin endpoints, or another tenant's workspace IDs. If a user requests sensitive account recovery without verification, politely route them to human verification. </guardrails> <output_format> Start with a 1-sentence direct answer, followed by numbered troubleshooting steps or CLI/code snippets, and end with a single concrete next action. </output_format> </system_instructions>
How it works
- 1Start from one of 4 production agent presets (Customer Support Agent, Senior TypeScript Reviewer, SQL Data Analyst, or Technical Copy Editor) or clear the form.
- 2Customize role, mission, knowledge boundaries, tool-calling rules, safety guardrails, and exact output formatting.
- 3Switch between Anthropic XML tags (<role>, <tool_rules>, <guardrails>) and Clean Markdown Sections, verify the estimated token footprint, and copy or export as .txt / .md.
Frequently asked questions
Why separate system prompts into XML tags vs plain paragraphs?
Wrapping persona, knowledge boundaries, tool rules, and output formatting in explicit XML tags (<role>, <tool_rules>, <output_format>) reduces instruction conflicts and makes it easier for models like Claude and GPT-5 to honor negative constraints.
What should go into Tool-Calling Rules?
Define read-before-write rules (e.g., always fetch account status before replying), confirmation gates for destructive actions, and what the agent should do when a tool returns empty or partial data.
How accurate is the estimated token badge?
It uses a fast ~4 characters per token heuristic to help you keep system prompt overhead lean. For exact BPE token counts and prompt caching math, paste the output into our LLM Token Counter.
Can I download the compiled prompt for version control?
Yes. Click .txt or .md above the output panel to download a clean file you can commit directly alongside your agent code.
Related tools
View all tools →Refine one-off user prompts with CO-STAR, CRISPE, or Claude XML and a live quality score.
Assemble validated mcp.json tool server configs for Claude Desktop, Cursor, and Windsurf.
Check 200K context usage and prompt caching savings for your system prompt.