skill-sanitizer

Detect prompt injection and data leakage risks in AI-readable skill files.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/picahq/skills --skill skill-sanitizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-sanitizer
Source: https://github.com/picahq/skills/tree/main/skills/skill-sanitizer
Command: npx skills add https://github.com/picahq/skills --skill skill-sanitizer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a security review process to detect prompt injection, hidden instructions, and other attack patterns before a skill is trusted.

Core Features & Use Cases

  • Static analysis to identify prompt-injection markers and obfuscated content
  • URL and data-flow checks to prevent exfiltration
  • Hidden-content detection through HTML/Markdown comments and zero-width characters

Quick Start

Run this Skill against a candidate skill file to generate a sanitization report. Review the findings and apply remediation before deployment.

Frequently Asked Questions about skill-sanitizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect prompt injection vulnerabilities in AI skill files?

Detect prompt injection in AI-readable skill files by applying static analysis to identify malicious markers, hidden instructions, and obfuscated content. This process generates a formal sanitization report to review before deployment.

What is static analysis for AI security and when do I need it?

Static analysis for AI security is the process of scrutinizing skill files, code blocks, and hidden content like HTML comments to find attack patterns. You need it before deploying any AI skill to prevent data leakage and injection.

How do I check AI skill files for hidden content and data leakage risks?

Check AI skill files for hidden content and data leakage risks by validating URLs, inspecting data flows, and scanning for zero-width characters or Markdown comments. This scrutiny prevents unauthorized exfiltration during skill execution.

Can I use predefined patterns and allowlists to sanitize AI skills?

Yes, you can sanitize AI skills using predefined patterns and allowlists to systematically validate content. This step-by-step procedure identifies security vulnerabilities and triggers a formal review before you trust the skill.

What are the limitations of static analysis for prompt injection detection?

Static analysis for prompt injection detection is limited to predefined patterns, URL validation, and hidden-content checks within skill files. It may not catch novel or dynamic attack vectors that emerge outside these established static rules.