AI Agent Prompt Enhancer That Rewrites System Prompts for Safe Tool Use

Paste a draft agent prompt and get a table of real issues, an enhanced version with stop conditions and approval steps, plus three dry-run tests.

Agent prompt for ChatGPT and Claude

You get: Issues found, what is already fine and enhanced prompt

The prompt

Prompt
You are an AI agent designer who rewrites agent system prompts so they are clear, testable and safe to run.

Improve the agent prompt I will paste right after this message. The agent's job: . Tools it can call: .

If something missing would change the rewrite (who approves actions, which systems it touches, what counts as done), ask up to 3 short numbered questions first and wait for my answers.

Rules:
1. Keep instructions that already work. Change only what has a clear problem, report only problems you actually find, and say so when a category has none.
2. Give the agent a clear goal, its inputs, and a stop condition: when it is done and when it must stop and ask a human.
3. For each tool, state when to use it, what to do if it fails or returns nothing, and that it must never invent a result.
4. Add a human approval step before any action that sends, buys, deletes or publishes.
5. Replace vague words like "appropriately" or "if needed" with a concrete rule.
6. Do not add tools, permissions or features the agent was not given.

Output format:
1. Issues found: table with columns Issue | Original text | Why it matters | Fix
2. What is already fine: short bullet list
3. Enhanced prompt: complete, in one code block
4. Dry-run tests: 3 test inputs, each with the expected agent behavior
5. Assumptions and gaps: what you assumed and what I should confirm

Example output

Example for: agent_task = triage support emails for a small online bike-parts shop and draft replies, agent_tools = Gmail (read, draft, send), Shopify order lookup, returns-policy doc; pasted draft: "You are a support agent. Be helpful and friendly. Read new emails and reply to customers. Look up orders if needed. Handle refunds appropriately."; answers: 1) the owner approves every send, 2) refunds over $50 need the manager, 3) done when every new email is labeled. Assumptions are listed in section 5.

1. Issues found
IssueOriginal textWhy it mattersFix
Sends without approval"reply to customers"Agent can email customers with wrong infoDraft only; owner approves each send
Vague tool trigger"Look up orders if needed"Agent may guess order statusLook up any email that mentions an order number or purchase
Undefined refund rule"Handle refunds appropriately"No tool can issue refunds; agent may promise oneQuote the returns doc; flag refunds over $50 for the manager
No stop condition(none)Agent may loop or stop earlyDone when every new email has a label and a draft or flag
No failure handling(none)Lookup errors could lead to made-up order detailsIf lookup fails, say so in the draft note and label Needs Human
2. What is already fine
  • "Be helpful and friendly" sets a clear tone; kept as is.
  • The role line "You are a support agent" is short and accurate.
3. Enhanced prompt
You are a support agent for Spoke & Chain, an online bike-parts shop. Be helpful and friendly.
Goal: for each unread email in the Support inbox, label it and prepare a draft reply.
Tools:
- Shopify order lookup: use when an email mentions an order number or a purchase. If it fails or finds nothing, do not guess; label the email Needs Human and note why.
- Returns-policy doc: quote it for any return or refund question. You cannot issue refunds.
- Gmail: read and create drafts. Never send. The owner approves every send.
Refunds over $50: label Manager Review and do not promise an outcome.
Stop when every unread email has a label and a draft or a Needs Human note. Then list what you did.
4. Dry-run tests
  1. Email: "Where is order #4471?" (order exists) → looks up order, drafts reply with tracking, does not send.
  2. Email: "Refund my $120 wheelset" → quotes returns policy, labels Manager Review, no refund promised.
  3. Order lookup returns an error → labels Needs Human, draft note says lookup failed, no invented status.
5. Assumptions and gaps
  • Assumed labels Needs Human and Manager Review exist in Gmail; confirm or create them.
  • Confirm whether refunds of exactly $50 go to the manager.
  • Unknown: how the agent should handle non-English emails.
Written by AI from this prompt. Your results will vary.

How to use this prompt

  1. Fill in {agent_task} with the agent's job and {agent_tools} with the tools it can actually call.
  2. Paste the prompt into your AI assistant, then paste your current agent prompt right below it.
  3. Answer the up to 3 questions it asks about approvals, systems and what counts as done.
  4. Run the dry-run tests against your agent and send back any case where it behaved differently.
Who it’s for:
Developers and no-code builders designing AI agents and automations
What you get:
A rewritten agent system prompt with tool rules, stop conditions and approval steps, a list of what changed and why, and three tests to try it.

Use cases

  • Tightening a support-email agent that sent replies without anyone checking them
  • Adding stop conditions to a research agent that keeps searching after it has an answer
  • Reviewing an MCP-connected agent prompt before giving it write access to a database
  • Turning a one-line ChatGPT custom instruction into a structured agent system prompt

Works well with

  • Claude: handles long pasted prompts and follows table output formats closely
  • ChatGPT: useful for quick rewrite passes and comparing versions in one chat
  • Gemini: can review long prompts that include pasted tool schemas

Try another example

The same prompt filled in for a different situation.

You are an AI agent designer who rewrites agent system prompts so they are clear, testable and safe to run.

Improve the agent prompt I will paste right after this message. The agent's job: Research competitor pricing pages weekly and write a summary for the marketing team. Tools it can call: Web search, a web page fetcher, Notion page create and edit.

If something missing would change the rewrite (who approves actions, which systems it touches, what counts as done), ask up to 3 short numbered questions first and wait for my answers.

Rules:
1. Keep instructions that already work. Change only what has a clear problem, report only problems you actually find, and say so when a category has none.
2. Give the agent a clear goal, its inputs, and a stop condition: when it is done and when it must stop and ask a human.
3. For each tool, state when to use it, what to do if it fails or returns nothing, and that it must never invent a result.
4. Add a human approval step before any action that sends, buys, deletes or publishes.
5. Replace vague words like "appropriately" or "if needed" with a concrete rule.
6. Do not add tools, permissions or features the agent was not given.

Output format:
1. Issues found: table with columns Issue | Original text | Why it matters | Fix
2. What is already fine: short bullet list
3. Enhanced prompt: complete, in one code block
4. Dry-run tests: 3 test inputs, each with the expected agent behavior
5. Assumptions and gaps: what you assumed and what I should confirm

Tips and common edits

Why this works

  • Asking for only real issues, plus a 'what is already fine' list, keeps working instructions intact instead of rewriting everything.
  • Requiring per-tool rules for when to call it and what to do on failure makes the agent's expected behavior explicit and checkable.
  • Dry-run tests turn the rewrite into something you can verify against your agent before connecting it to real systems.

Use when an agent prompt feels vague or the agent acts without checking. Have your draft prompt and tool list ready. Try it in ChatGPT, Claude or Gemini.

Common edits

  • Swap the 3 dry-run tests for a longer eval set, such as 10 cases with pass/fail criteria.
  • Add a rule for a token or step budget if your agent framework supports a maximum number of tool calls.

Reuse it: Use in a workflowAdapt in the builder

More in Agentic AI
Agentic AI

Threat Model an AI Agent for Prompt Injection Attacks Through Its Tools

Get a prompt injection threat model for your AI agent: entry points, attack scenarios tied to real tool calls, risk ratings, concrete defenses and safe test cases.

Agentic AIClaude

Design an AI Agent With Tools, Guardrails and Eval Cases Before You Build It

Turns an agent idea into a build-ready design: the job, the tools with their inputs and permissions, guardrails, failure handling and a set of evaluation cases to test it.

Agentic AIClaude

Draft Input Sanitization Rules for AI Agents

Get five strict, deterministic input-sanitization rules to prevent prompt injection and data leakage before processing untrusted user inputs in an agent.

Agentic AIClaude

Should This Be an Agent? Single Agent, Workflow or Plain Script Decision

Scores a task you want to automate on variability, tool needs, error tolerance and cost, then recommends a plain script, a fixed LLM workflow, a single agent or multi-agent, with the cheapest first build.

Agentic AI

Agent Tool Names, Descriptions and JSON Schemas from API Docs

Turns pasted API docs or a function list into agent-ready tool names, descriptions, JSON input schemas and when-to-use and when-not-to-use notes.

Agentic AICursor

Coding Agent Task Brief with Guardrails, Test Plan, and Rollback Steps

Creates a scoped brief for an AI coding agent that limits file changes, defines tests, and includes a rollback plan and review checklist.