
Detecting AI model prompt injection attacks
Detects prompt injection attacks targeting LLM-based applications using a multi-layered defense combining regex pattern matching for known a
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 72
- Last commit
- 18 days ago
- License
- Apache-2.0
- Listing updated
- today
When your agent uses it
Detects prompt injection attacks targeting LLM-based applications using a multi-layered defense combining regex pattern matching for known attack signatures, heuristic scoring for structural anomalies, and transformer-based classification with DeBERTa models. The detector analyzes user inputs before they reach the LLM, flagging direct injections (system prompt overrides, role-play escapes, instruction hijacking) and indirect injections (encoded payloads, multi-language obfuscation, delimiter-based escapes). Based on the OWASP LLM Top 10 (LLM01:2025 Prompt Injection) and Simon Willison's prompt injection taxonomy. Activates for requests involving prompt injection detection, LLM input sanitization, AI security scanning, or prompt attack classification.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (7 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Install
This skill ships in the asi plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add plurigrid/asi
/plugin install asi@asiOr copy only this skill to ~/.claude/skills/detecting-ai-model-prompt-injection-attacks:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/detecting-ai-model-prompt-injection-attacks &&
cp -R "$tmp/plugins/asi/skills/detecting-ai-model-prompt-injection-attacks" ~/.claude/skills/detecting-ai-model-prompt-injection-attacks &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/detecting-ai-model-prompt-injection-attacks inside it instead.
Copy the skill folder to ~/.agents/skills/detecting-ai-model-prompt-injection-attacks to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/detecting-ai-model-prompt-injection-attacks &&
cp -R "$tmp/plugins/asi/skills/detecting-ai-model-prompt-injection-attacks" ~/.agents/skills/detecting-ai-model-prompt-injection-attacks &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/detecting-ai-model-prompt-injection-attacks inside it instead.
Copy the skill folder to ~/.cursor/skills/detecting-ai-model-prompt-injection-attacks to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/detecting-ai-model-prompt-injection-attacks &&
cp -R "$tmp/plugins/asi/skills/detecting-ai-model-prompt-injection-attacks" ~/.cursor/skills/detecting-ai-model-prompt-injection-attacks &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/detecting-ai-model-prompt-injection-attacks inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/plurigrid/asi.git --path plugins/asi/skills/detecting-ai-model-prompt-injection-attacksOr copy the folder to ~/.gemini/skills/detecting-ai-model-prompt-injection-attacks yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/detecting-ai-model-prompt-injection-attacks:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/detecting-ai-model-prompt-injection-attacks &&
cp -R "$tmp/plugins/asi/skills/detecting-ai-model-prompt-injection-attacks" ~/.copilot/skills/detecting-ai-model-prompt-injection-attacks &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/detecting-ai-model-prompt-injection-attacks inside it instead.
Get the folder:
git clone --depth 1 https://github.com/plurigrid/asi.gitThen copy asi/plugins/asi/skills/detecting-ai-model-prompt-injection-attacks into your agent's skills folder as detecting-ai-model-prompt-injection-attacks. Agents that support SKILL.md read one folder per skill.
Detecting AI model prompt injection attacks FAQ
How do I install Detecting AI model prompt injection attacks in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/detecting-ai-model-prompt-injection-attacks to use it in all your projects, or to .claude/skills/detecting-ai-model-prompt-injection-attacks in one project. Or install the asi plugin, which includes it: /plugin marketplace add plurigrid/asi, then /plugin install asi@asi.
Does Detecting AI model prompt injection attacks run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Detecting AI model prompt injection attacks?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Detecting AI model prompt injection attacks?
The closest alternatives to Detecting AI model prompt injection attacks are Academy guide, MCP builder, Claude API, Nano banana pro openrouter and Generate image.
More from plurigrid/asi

Org-agenda-like transient views for ASI skill orchestration via nbb/squint + Emacs hydra
- Open source
- 72 GitHub stars

Connect and stream from OpenBCI Cyton/Daisy via USB dongle, including first-time radio channel pairing
- Open source
- 72 GitHub stars

Hypothesis-Test Loops via REPL for Exploratory Abductive Inference with Gay.jl colors
- Open source
- 72 GitHub stars

Layer 4 Learning and Pattern Extraction for Cognitive Surrogate Systems
- Open source
- 72 GitHub stars

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration
- Open source
- 72 GitHub stars

Automated code review for pull requests using specialized review patterns
- Open source
- 72 GitHub stars
- Developer tools
Alternatives to Detecting AI model prompt injection attacks

Academy guide
SkillStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching cour
- 196K GitHub stars
- AI models and LLM tooling

MCP builder
SkillGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-design
- 196K GitHub stars
- AI models and LLM tooling

Claude API
SkillReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model
- 196K GitHub stars
- AI models and LLM tooling

Generate or edit images via OpenRouter with the Gemini 3 Pro Image model
- Open source
- 41.3K GitHub stars
- Design and media


Phoenix evals
SkillBuild and run evaluators for AI/LLM applications using Phoenix.
- Open source
- 41.3K GitHub stars
- AI models and LLM tooling



