Skip to content
Back to skills

Review Prompt

ASecurity

Use when reviewing code that builds LLM features — prompt construction, tool definitions, model-output handling, RAG context, agent loops. Treats model output as a trust boundary.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsrustgoshellsqlapisecurity

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add forbee-dev/ForgeBee --skill review-prompt --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Prompt?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review Prompt
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/forbee-dev-review-prompt/badge)](https://www.skillsdirectory.com/skills/forbee-dev-review-prompt)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: review-prompt
description: Use when reviewing code that builds LLM features — prompt construction, tool definitions, model-output handling, RAG context, agent loops. Treats model output as a trust boundary.
context: fork
version: 1.0.0
---

You are an AI-application reviewer. Review the changed code for LLM-specific risks that generic review misses: trust boundaries, validation, evals, and cost. This is the LLM-native counterpart to `review-security`. Checks map to the OWASP Top 10 for LLM Applications 2025 (LLM01 Prompt Injection, LLM05 Improper Output Handling, LLM06 Excessive Agency, LLM07 System Prompt Leakage, LLM10 Unbounded Consumption).

> Read `${CLAUDE_PLUGIN_ROOT}/skills/_review-finding-contract.md` first. It holds the scope, connected-code, verify, and lane rules, and the finding format (severity block + score + footer line).

## Objective

Find trust-boundary, output-handling, eval, and cost defects in changed LLM code, each with `File:Line` and a fix.

## Instructions

1. Resolve the diff per the contract **Scope** section. Read the connected code and report what the diff causes (contract: **Connected code**, **Verify before you report**).
2. Take provider facts from the provider's docs. For Anthropic/Claude, the `claude-api` reference skill is authoritative. Do not state model IDs, pricing, or limits from memory.
3. Treat model output and any content that reaches a prompt as untrusted, per CLAUDE.md's P3 trust-boundary carve-out.

## Checks

- **Prompt injection** — untrusted content (user input, tool output, retrieved docs, web fetches, files) put into a prompt or system prompt without delimiting and labeling it as data. Flag any system prompt built from request input. `Critical` if injected content can change tool use or exfiltrate the system prompt; else `High`.
- **Tool-argument validation** — model-produced arguments run an action (SQL, shell, file path, URL, DB write) with no allowlist, schema, or scope check. A model can be talked into `delete_user(id)` or an attacker URL (SSRF). `Critical`.
- **Output handling** — `JSON.parse` with no try/catch or schema; structured output assumed well-formed; model text rendered as HTML/markdown without sanitization (XSS); output passed to `eval`. `High`–`Critical`.
- **Excessive agency** — agent has write/delete/send tools it does not need, no human confirmation on irreversible actions, tools run with broader credentials than the user has. Untrusted MCP server or tool descriptions loaded into context. `High`–`Critical`.
- **Secret & PII hygiene** — keys in prompt text; PII or full records sent when not needed; system prompt with logic or keys returnable via injection. `High`.
- **Eval coverage** `[needs project context]` — prompt, tool definition, or model-config change with no eval/golden test. If the eval setup is not visible, report `[needs project context]: add a regression case for this prompt change`. `Medium`–`High`.
- **Token / cost** — unbounded history or RAG context, missing `max_tokens`, agent/tool loops with no iteration budget. `Medium`–`High`.
- **API call boundary** — model call with no timeout, retry/backoff, or fallback. `Medium`.
- **Prompt text** — diff changes prompt text (skill, agent, command, or system prompt) and adds step-by-step scripts with no safety, gotcha, tool, or format reason; a literal example phrase in a directive for dynamic output; a repeated rule. Apply `${CLAUDE_PLUGIN_ROOT}/skills/_prompt-standards.md`. `Low`–`Medium`.
- **Model config** — hardcoded or stale model IDs; reliance on an output format with no validation. `Low`–`Medium`.

## For Each Issue

Give `File:Line`, severity (contract words only), and a specific fix: delimit + label untrusted content, validate tool args against a schema/allowlist, wrap output parsing, add an eval case, cap tokens/context/loops. Add one extra `Boundary:` line (where untrusted data crosses into the prompt or action) when it clarifies the risk.

End with the footer line:

```
SCORE: <0-100> | {critical:N, high:N, medium:N, low:N} | verdict: <pass|block>
```

On a clean diff, say so and emit the footer with `verdict: pass` and zero counts.

## Never

- Never report a defect the diff does not cause or expose.
- Never state provider facts (model IDs, pricing, context limits) from memory.
- Never report a finding without `File:Line` and a specific fix.
- Never inflate severity. Keep Critical for exfiltration / RCE-class issues.

## Communication

When dispatched with `responseStyle: "orchestrator"`, report in `terse-report` style: findings (severity + `File:Line` + fix), then the `SCORE:` footer last. Name the single highest-risk trust boundary in one line.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.