Prompt guard

From ApiliumCode/mayros · View interactive version

Prompt guard is an AI agent skill from the GitHub repository ApiliumCode/mayros. Detects prompt injection patterns in graph content with risk classification

How to use this skill

Skill file

prompt-guard

Detects prompt injection patterns in graph content and classifies findings by risk level.

When to Use

Use this skill when:

Risk Classification

Each finding is classified into one of three levels:

The overall classification for a scanned item is dangerous if any dangerous finding exists, suspicious if only suspicious findings exist, and safe otherwise.

Instructions

  1. Store text content in the graph using skill_assert or skill_graph_query
  2. Query with predicate guard:scan-result to trigger the prompt-guard runtime
  3. The skill enriches each result with a classification field and a findings array
  4. Use guard:injection-detected (with proof) to record confirmed injection attempts
  5. Query guard:history to review past scan results for the current agent
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.