sanitize

Strip PII and security issues from Claude Code skills for shareable exports.

3|1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/epologee/leclause-skills --skill sanitize-epologee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sanitize
Source: https://github.com/epologee/leclause-skills/tree/main/packages/export-skill/skills/sanitize
Command: npx skills add https://github.com/epologee/leclause-skills --skill sanitize-epologee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps data teams and developers protect sensitive information by removing PII and security issues from Claude Code skills, producing a sanitized version suitable for external sharing.

Core Features & Use Cases

  • Strips personal data such as home directories, names, internal URLs, emails, and credentials from skill files.
  • Preserves the original structure and logic, while writing sanitized output to a dedicated temporary directory for export.
  • Useful when sharing skills with colleagues or publishing to marketplaces, ensuring compliance with privacy policies.

Quick Start

Run the export-skill sanitize command on the target skill to generate a clean, PII-free export.

Frequently Asked Questions about sanitize

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

FAQPage Schema
How do I remove PII from Claude Code skills before sharing them externally?

To remove PII from Claude Code skills, run the export-skill sanitize command on the source skill directory. It strips personal data like home directories, names, internal URLs, and credentials, writing sanitized output to /tmp/skill-exports.

How do I strip credentials and internal URLs from skill files for marketplace publishing?

Stripping credentials and internal URLs from skill files is done by running the sanitize command on the target skill directory. It enforces a consistent replacement policy to redact security issues and produces a shareable artifact suitable for marketplaces.

What is the best way to redact personal data from code without using regex?

Redacting personal data from code without regex is achieved by using a consistent replacement policy rather than pattern matching. This approach avoids regex-based redaction errors while effectively removing home directories, names, and credentials from the skill files.

Does the sanitization process preserve the original directory structure and skill logic?

Yes, the sanitization process preserves the original directory structure and skill logic. It operates on the source skill directory and reports findings per file, ensuring the exported artifact remains functional while being free of security issues and PII.

Where are the sanitized skill files stored after running the export command?

Sanitized skill files are stored under the /tmp/skill-exports directory after running the export command. This dedicated temporary directory ensures the clean, PII-free output is isolated from the original source files for safe external sharing.