All docs

Prompt injection in agent skills

Last updated 7 November 2026

An agent skill is a folder with a SKILL.md file that tells a model how to do a job. The model reads that file as instructions, which is the point of a skill and also its risk. Prompt injection in a skill is text in the skill that steers the model against what the user wants. Below are the attack, the Spellwarden scanner rules that detect it, and what they do not detect.