prompt-guard
Detects prompt injection patterns in graph content and classifies findings by risk level.
When to Use
Use this skill when:
- Inspecting user-submitted text stored in the knowledge graph for injection attempts
- Auditing graph content before it reaches downstream agents or tools
- Monitoring for adversarial inputs such as role overrides, encoding evasion, or jailbreak prompts
Risk Classification
Each finding is classified into one of three levels:
- dangerous -- Active injection attempts (role overrides, system overrides, jailbreak, shell commands)
- suspicious -- Evasion techniques or anomalies (zero-width characters, homoglyphs, encoding tricks, template injection)
- safe -- No injection patterns detected
The overall classification for a scanned item is dangerous if any dangerous finding exists, suspicious if only suspicious findings exist, and safe otherwise.
Instructions
- Store text content in the graph using
skill_assertorskill_graph_query - Query with predicate
guard:scan-resultto trigger the prompt-guard runtime - The skill enriches each result with a
classificationfield and afindingsarray - Use
guard:injection-detected(with proof) to record confirmed injection attempts - Query
guard:historyto review past scan results for the current agent