Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    System Prompt Review and Rewrite for AI Agents

    by Saizul Amin

    1

    Audit and refactor bloated system prompts using automated contradiction detection and a business-ready agent checklist.

    Free

    Security scanned
    System Prompt Review and Rewrite for AI Agents

    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

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. 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

    1. Analyze input by loading the runtime prompt, tool list, and agent specification.
    2. Execute scripts to run automated checks for vague phrasing, placeholders, and token counts.
    3. Audit against checklist covering grounding, safety, tone, and "I don't know" rules.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Frequently Asked Questions

    This skill acts as a structural audit and refactoring toolkit that identifies conflicting 'always/never' instructions, flags token bloat, and ensures your prompt includes critical business logic like handover rules.

    The methodology is model-neutral and works with any LLM provider; the only technical requirement is Python 3.8+ to execute the included review script.

    You will receive the core Python-based review script, a structured 'business-ready' prompt skeleton, and a comprehensive audit checklist for grounding and safety.

    No, the script is designed for local execution, ensuring your sensitive system prompts and proprietary logic remain within your own environment during the audit process.

    Yes, token counts are generated as estimates based on character counts to help you identify where to move content to retrieval-augmented generation (RAG) to save costs.

    Simply load your runtime prompt and tool list into the script's input directory, run the analysis, and follow the generated 'diff' report to restructure your prompt using the provided skeleton.

    New in Prompt & Skill Engineering

    Free