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
mkdir -p .agents/skills/ai-agent-prompt-enhancer-that-rewrites-system-prompts-for-safe-t && curl -sL "https://prompts-gpt.com/prompts/ai-agent-prompt-enhancer-that-rewrites-system-prompts-for-safe-tool-use/raw" -o .agents/skills/ai-agent-prompt-enhancer-that-rewrites-system-prompts-for-safe-t/SKILL.mdYou 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 confirmExample output
How to use this prompt
- Fill in {agent_task} with the agent's job and {agent_tools} with the tools it can actually call.
- Paste the prompt into your AI assistant, then paste your current agent prompt right below it.
- Answer the up to 3 questions it asks about approvals, systems and what counts as done.
- 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.
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
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
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.
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.
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.
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.
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.
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.
- Tool Permission Matrix and Function Spec for a Tool-Using Agent
- Agent Run Pre-Mortem and Self-Correction Loop Designer
- Audit Agent Tool Definitions to Fix Routing Errors
- Generate Adversarial Evaluation Transcripts for AI Agents
- Incident Recovery Playbook for Rogue AI Agent Loops
- Red Team Agent System Prompts for Injection Vulnerabilities