Skip to content
Agentmart
Submit a tool

prompt-guard

Detects prompt injection patterns in graph content with risk classification

Skill by ApiliumCode

IndexedMIT★ 13
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/apiliumcode-prompt-guard

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Detects prompt injection patterns in graph content with risk classification

Use cases: writing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/prompt-guard

What's inside

Skill name
prompt-guard
Description
Detects prompt injection patterns in graph content with risk classification
License
MIT
Instructions
31 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (10)

  • CHANGELOG.md
  • LICENSE
  • README.md
  • SKILL.md
  • SKILL.sig
  • package.json
  • skill.test.ts
  • skill.ts
  • tsconfig.json
  • types.ts

SKILL.md (first lines)

# 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

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

From ApiliumCode/mayros, MIT.

More from ApiliumCode/mayros

Signals

Stars
13
Forks
1
Open issues
0
Last commit (this folder)
Feb 26, 2026 (8 months ago)
Last release
Mar 30, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ApiliumCode

Cite this page

prompt-guard skill. Agent Mart. https://agentmart.dev/skills/apiliumcode-prompt-guard (last updated 2026-10-24)