prism-sanitize

Scan prompts for PII and semantic issues, returning JSON findings.

2|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/CraigHutchinson/Prism --skill prism-sanitize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prism-sanitize
Source: https://github.com/CraigHutchinson/Prism/tree/main/.claude/skills/prism-sanitize
Command: npx skills add https://github.com/CraigHutchinson/Prism --skill prism-sanitize

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, and includes scripts (resource) components.

What problem does it solve?

This Skill provides internal sanitization analysis to enhance prompt security and compliance, preventing data leaks and improving prompt quality.

Core Features & Use Cases

  • PII Scan: Detects Personally Identifiable Information (PII) in prompts.
  • Semantic Analysis: Checks for semantic issues like ambiguous authority statements and indirect injections.
  • Output Formatting: Returns findings in structured JSON format for further processing.

Quick Start

To begin sanitization analysis, execute the following commands: python scripts/pii_scan.py --json "<prompt>" and reference sanitization rules with cat .cursor/skills/prism/sanitization-rules.md.

Frequently Asked Questions about prism-sanitize

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

FAQPage Schema
How do I sanitize prompts to prevent PII data leaks before processing?

Prompt sanitization prevents PII data leaks by scanning prompts for personal information and semantic issues like indirect injections. This process uses Python scripts to detect security vulnerabilities and outputs findings in structured JSON format for compliance review.

What is PII detection in prompt engineering and how does semantic analysis work?

PII detection in prompt engineering identifies Personally Identifiable Information within text inputs. Semantic analysis enhances this by checking for ambiguous authority statements and indirect injections, ensuring comprehensive security and compliance before prompt execution.

Do I need a Python environment to run prompt sanitization and PII scanning scripts?

Yes, you need a Python environment to execute prompt sanitization and PII scanning scripts. The advanced analysis requires specific Python scripts to process prompts, detect personal information leaks, and generate structured JSON outputs for security compliance.

Can I detect indirect injections and ambiguous authority statements in AI prompts automatically?

Yes, you can detect indirect injections and ambiguous authority statements automatically through semantic analysis. The sanitization process evaluates prompt content for these semantic security issues alongside PII detection, returning all findings in structured JSON format.

What is the best way to format prompt security analysis results for downstream processing?

The best way to format prompt security analysis results is using structured JSON outputs. This format captures PII detection findings and semantic analysis results, enabling seamless downstream processing and integration with automated data leak prevention workflows.

Why does prompt sanitization output structured JSON instead of plain text reports?

Prompt sanitization outputs structured JSON to facilitate automated downstream processing of security findings. JSON formatting allows systems to programmatically parse detected PII, semantic issues, and security vulnerabilities, integrating smoothly into existing data leak prevention pipelines.