- Home
- Skills
- Prompt & Skill Engineering
- System Prompt Review and Rewrite for AI Agents
Works with the AI Agents you already use
System Prompt Review and Rewrite for AI Agents
by Saizul Amin
Audit and refactor bloated system prompts using automated contradiction detection and a business-ready agent checklist.
Free
System Prompt Review and Rewrite for AI Agents
Example session with this skill installed
Run the System Prompt Review and Rewrite for AI Agents skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the system prompt review
Here is what the System Prompt Review and Rewrite for AI Agents skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
6 words, ~10 tokens, 2 sentences
[HIGH ] no rule for out-of-scope or disallowed requests (what to decline and how) (no-refusal-rule)
[HIGH ] no handover/escalation rule (when to pass to a human and how) (no-handover-rule)
[LOW ] no guidance on answer format, length or tone (no-format)
[LOW ] 2 vague phrase(s); replace with concrete rules (vague)
as needed, be helpful
4 finding(s), 4 at or above low
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
System prompts often grow into a mess of conflicting "ALWAYS" and "NEVER" rules as developers patch edge cases over time. This skill treats prompts like code, providing a structured workflow and a Python-based review script to identify contradictions, token bloat, and missing business logic.
What it does
- Automated analysis using a script to flag hard-coded dates, credential strings, and duplicate rules.
- Contradiction detection identifying "always/never" conflicts where the agent receives opposing instructions.
- Token management estimating usage and suggesting move-to-retrieval strategies for prompts exceeding budgets.
- Structural auditing checking for essential business agent components like handover-to-human rules and out-of-scope refusals.
- Refactoring guidance providing a standard skeleton to organize role, context, scope, and tools.
How it works
- Analyze input by loading the runtime prompt, tool list, and agent specification.
- Execute scripts to run automated checks for vague phrasing, placeholders, and token counts.
- Audit against checklist covering grounding, safety, tone, and "I don't know" rules.
- Draft diffs by removing redundant rules and proposing a restructured version based on the provided skeleton.
Frameworks & tools
The core review script requires Python 3.8+. The methodology is model-neutral and works with any LLM provider.
Why this beats prompting it yourself
Manual prompting often misses logical contradictions and "patch fatigue" where rules pile up without structure. This skill uses a specialized script and a rigorous checklist to ensure your agent's behavior is predictable and cost-effective.
Use cases
- Debugging why an agent is ignoring specific negative constraints or rules.
- Preparing a business agent for production launch by hardening refusal and handover logic.
- Reducing latency and costs by pruning bloated prompts and moving facts to tools.
- Converting a messy product specification into a structured, executable system prompt.
Known limitations
Requires Python 3.8+ to run the prompt_review.py script. Token counts are estimates based on character count.
Open source: saizul/ai-agent-builder-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.
Requires Python 3.8+ for the automated review script. Token counts are estimates (characters / 4). Does not design tool schemas or run evals.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 2 days ago
- Free with an Agensi account
- Software
Python 3.8+