Prompt injection risk linter
Skill sisodiabhumca/agent-skills/skills/prompt-injection-risk-linter
Vendor-neutral skill to lint agent prompts and untrusted retrieved content for prompt-injection risk patterns and missing safety boundaries.From its SKILL.md
npx -y skills add sisodiabhumca/agent-skills --skill prompt-injection-risk-linterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 231 tokens by cl100k_base, as published. Nobody here has run it
When to invoke
- You are building an agent that reads untrusted content (web pages, emails, tickets) and you want a pre-flight safety lint.
- You want to add an automated check to prompt templates before deployment.
Inputs needed
--promptpath to a text file containing a system/developer prompt, or combined prompt template.- Optional:
--retrievedpath to a text file with representative untrusted content.
Workflow
- Detect common prompt-injection markers ("ignore previous instructions", requests to reveal hidden prompts, tool/credential exfiltration).
- Check for missing boundaries (no explicit statement that retrieved content is untrusted; no tool-use constraints).
- Emit a JSON report with severity, evidence snippets, and recommended mitigations.
Output format
- JSON report written to
--output.
Guardrails
- Heuristics only: do not claim the prompt is safe/unsafe with certainty.
- Avoid printing full prompt contents to stdout.
Reference code
prompt_injection_risk_linter.pyimplements a vendor-neutral lint with stdlib regex.
What ships with it: 2 files
3.9 KB alongside SKILL.md, 1 of them executable
- prompt_injection_risk_linter.pyruns3.4 KB
- README.md515 B