Prompt injection risk linter
Skill sisodiabhumca/agent-skills/skills/prompt-injection-risk-linter
Production-Ready Agent Skills : product analytics, growth experiments, CRM, research synthesis, postmortems, data contracts, SaaS spend, compliance, architecture maps, and LLM eval and many more.
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.
What its author says it does
Copied from the file, not written here
Vendor-neutral skill to lint agent prompts and untrusted retrieved content for prompt-injection risk patterns and missing safety boundaries.
SKILL.md
1.2 KB, 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.