Prompt Injection Guard

Keep prompt injection out of a model by making the untrusted-vs-instruction boundary structural and unescapable, not by regex. Enforce that untrusted content (web, inbox, tool output) is delimited as data, and — the load-bearing check — that it can't escape the boundary by containing its own delimiter; markers must be an unpredictable per-item nonce. Injection signatures are flagged too, but as a bypassable second wall behind delimiting, isolation, and message-trust. Use when an agent ingests content an attacker could author. Inspects content, not a provider format.

sharp-skills Updated

File contents

sharp-skills/skills/tree/main/skills/prompt-injection-guard commit b3a2924e4f

Frequently asked questions

npx skillmds@latest add sharp-skills/prompt-injection-guard