prompt-injection-defense
Installation
SKILL.md
Prompt Injection Defense
Workflow
- Map trusted instructions, untrusted data, model output and tool/action boundaries.
- Keep retrieved/user content classified as data; never let it redefine trusted policy.
- Limit tool permissions and enforce authorization outside the model.
- Validate tool arguments and sensitive outputs at execution boundaries.
- Add confirmation/policy gates for high-impact ambiguous actions.
- Test direct, indirect, encoded, persistent and tool-mediated injection.
Conditional references
- Trust boundaries →
references/trust-boundaries.md. - Tool safety →
references/tool-safety.md.
Asset
Use assets/agent-threat-model.md for a concrete workflow.