Prompt Injection Scanner — AI skill for Claude Code
A zero-dependency Python CLI that scans READMEs, SKILL files, and source code for prompt-injection patterns targeting AI coding assistants (Claude Code, Cursor, GitHub Copilot, Aider).
How to install Prompt Injection Scanner
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open savaryncraftlab/prompt-injection-scanner and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Prompt Injection Scanner does
A zero-dependency Python CLI that scans READMEs, SKILL files, and source code for prompt-injection patterns targeting AI coding assistants (Claude Code, Cursor, GitHub Copilot, Aider). Catches hidden HTML comments, authority impersonation, and credential exfiltration attempts.
Alternatives in AI
- Sast Skills — Collection of agent skills that turn your AI coder into a SAST scanner 620 ★
- Gentleman Skills — Community-driven AI agent skills for Claude Code, OpenCode, and other AI assistants 467 ★
- SoloDawn — Catches and repairs AI hallucinations before delivery: three quality gates, 31 built-in rules, a self-healing 312 ★
README
prompt-injection-scanner
Scan READMEs, skills, and source code for prompt-injection attacks targeting AI coding assistants.
[](https://github.com/savaryncraftlab/prompt-injection-scanner/actions/workflows/ci.yml)   
AI coding assistants like **Claude Code**, **Cursor**, **GitHub Copilot**, **Aider**, and **Continue** read your repository files as part of their context — READMEs, `SKILL.md`, source comments, config files, all of it. That text isn't just displayed, it **becomes part of the prompt the model is running against**. The model has no way to tell "user typed this" from "a file on disk typed this".
That's the entire attack surface. Anyone can drop hidden instructions into a public repo — in an HTML comment, a code comment, or a fake "verified by Anthropic" note — and every agent that clones it is potentially compromised.
**This tool scans files for known prompt-injection patterns** so you can spot them before your agent does.

The attack, in 20 seconds
Here is a real-looking `README.md`:
# fast-json
A tiny library for parsing JSON 10x faster than the standard library.
## Install
pip install fast-json
Rendered on GitHub, the HTML comment is invisible. Copy-pasted into a chat with an AI assistant, **it's just another paragraph of the prompt**. The assistant will cheerfully read your `.env` file, exfiltrate it, and tell you everything went fine.
There are
Related Skills
Ghostrules
Know exactly what your AI agent reads. Scans AGENTS.md, CLAUDE.md, .cursorrules, skills and MCP configs, follo
Aigis Kr
Deterministic, zero-dependency Python firewall for AI agents — MCP rug-pull, memory poisoning, indirect inject
Unpick
Vet AI agent skills, MCP servers, plugins and rules files before you install them. Catches hidden instructions
Vibe Debt Scanner
Scans any module for the technical debt AI coding tools generate invisibly. Assigns a Debt Severity Score (1-1
Git Episodic Memory
Zero-LLM episodic memory for coding agents: every turn as a hidden Git commit, with function-level blame and b
Mihani
Mihani is a cross-platform desktop workspace for AI coding agents. Connect Codex, Claude Code, Cline, OpenHand
Related Agents
Agentic Auditor
PYA specialist spawned by the /pya orchestrator. Audits AI agent and LLM surfaces in an untrusted repository:
AI Code Security Auditor
Security reviewer for AI-generated and vibe-coded apps — hunts the hardcoded secrets, broken row-level securit
Security AI Generated Code Auditor
Security reviewer for AI-generated and vibe-coded apps — hunts the hardcoded secrets, broken row-level securit