Coding prompts · Prompt

Review an AI agent's security (prompt)

review-ai-agent-security-prompt

A prompt that reviews an AI agent for prompt injection, unsafe tool use, and data leaks, then lists each gap with a fix. Use when the user wants an agent security checklist, a check of tool permissions, or to review the agent before sharing it.

Works with: Any AI Not yet model-tested; testing Jan 2027

Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works

Install in Claude Code, Cursor or Codex (optional)

Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.

Claude Code (all your projects)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-agent-security-prompt/raw' -o ~/'.claude/skills/review-ai-agent-security-prompt/SKILL.md'

Cursor (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-agent-security-prompt/raw' -o '.cursor/skills/review-ai-agent-security-prompt/SKILL.md'

Codex and other Agent Skills tools (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-agent-security-prompt/raw' -o '.agents/skills/review-ai-agent-security-prompt/SKILL.md'

Or connect the whole library over MCP

Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):

{
  "mcpServers": {
    "theskillvault": {
      "url": "https://theskillvault.ai/mcp"
    }
  }
}

This prompt reviews an agent you describe. It checks prompt injection, tool abuse and data leaks. It does not install rate limits.

When to use

  • You want an agent security checklist.
  • You need a check of tool permissions.
  • You want to review the agent before sharing it.

When not to use

  • You want rate limits and a spend cap on a public bot. Use add-chatbot-guardrails-and-rate-limits.
  • You want a threat model of a normal web app. Use threat-model-your-app.

Steps

  1. Paste the agent's instructions, tool list and where its knowledge comes from.
  2. Say who can talk to it, and whether one person's chat can be seen by another.
  3. Remove API keys, passwords and private data first.
  4. Treat each gap as a lead. Confirm it in the real config.

Prompt

Review this AI agent. Return a checklist. Do not rewrite the agent.

AGENT NOTES:
{{AGENT NOTES}}

Check these areas. Skip an area the notes do not mention:
- Instructions: untrusted text (user messages, pages, files) is data, not new orders.
- Tools: each tool's permission, and whether a risky tool needs a person to approve it.
- Memory: whether one user's chat or files can leak into another user's session.
- Secrets: whether keys or private data sit in the instructions, the logs or the knowledge set.
- Knowledge: whether imported files are trusted as orders.

For each gap write:
- Risk: one sentence.
- Good: what a safe setup looks like.
- Fix: one concrete change.

Rules:
- Quote the note that shows the gap. If the notes are silent, write "not specified", not a guess.
- Do not invent tools, vendors or policies.
- Do not ask the agent to reveal hidden instructions. Describe the check instead.

How to adapt

  • A workflow with no chat? Drop the memory row and keep tools, secrets and knowledge.
  • Several agent shapes? Ask for one checklist per shape, same rows.

Gotchas

  • Do not paste API keys, passwords or private data into a public AI.
  • No checklist makes an agent safe. Limits on tools matter more than the wording.

Portability

Works with any AI chat and any agent stack. No vendor lock-in.

Done when

  • Each gap has a risk, a picture of good, and a fix.
  • Untrusted text is treated as data, not as orders.

Example prompt

"Review this AI agent for prompt injection, unsafe tools and data leaks. Give me a checklist."

---

Adapted from the "AI Agent Security Evaluation Checklist" prompt by bluedog110776@gmail.com on prompts.chat (CC0 1.0, public domain).

Licence

Adapted from bluedog110776@gmail.com (prompts.chat, 'AI Agent Security Evaluation Checklist') (Public domain (CC0 1.0) - prompt contributed to prompts.chat by bluedog110776@gmail.com), CC0 1.0. Adapted by TheSkillVault: kept a checklist for privacy, tools and memory across agent shapes, dropped a fixed vendor type list, added a fix for each gap, steps and done-when.

Licence: CC0 1.0. Attribution when you reuse it: Based on work by bluedog110776@gmail.com (prompts.chat, 'AI Agent Security Evaluation Checklist') (Public domain (CC0 1.0) - prompt contributed to prompts.chat by bluedog110776@gmail.com, CC0 1.0), https://github.com/f/prompts.chat/blob/b09880e229d2f091ffa2254bc187532fb8980f9b/prompts.csv; adapted by TheSkillVault, https://theskillvault.ai