/preflight-check:preflight-checkfrom preflight-check
Anonymize and redact secrets, API keys, and personal data from text, code, or files before sharing externally. Use this skill whenever the user asks to scrub, anonymize, redact, or clean content for publication — including blog posts, LinkedIn posts, workshop materials, screenshots, or transcripts. Triggers include phrases like "anonymize", "redact", "scrub this", "remove secrets", "prepare for blog", "clean before sharing", "zanonimizuj", "usun sekrety", "wyczysc przed publikacja". Detects cloud API keys (AWS, GCP, Azure, OpenAI, Anthropic, GitHub, Slack), Polish PII (PESEL, NIP, REGON, IBAN PL — all checksum-validated), EU PII (emails, phones), and US PII (SSN, credit cards with Luhn validation).
Ships in preflight-check. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Post-hoc cleanup of text, code snippets, and files before external publication.
preflight-check scan --file path/to/file.txt
Output goes to stdout with findings summary on stderr. Redirect to create a redacted copy:
preflight-check scan --file notes.txt > notes.redacted.txt
echo "my PESEL is 99123175313" | preflight-check scan
pbpaste | preflight-check scan | pbcopy
preflight-check status
| Category | Examples | Validation |
|---|---|---|
| Cloud keys | AWS, GCP, Azure, OpenAI, Anthropic, GitHub, Slack | prefix + format |
| Polish PII | PESEL, NIP, REGON, IBAN PL | mod-11, mod-97 checksums |
| EU PII | Email, phone (E.164 + PL), generic IBAN | mod-97 for IBAN |
| US PII | SSN, credit cards | Luhn algorithm |
See core/catalog.yaml for the complete catalog.
This skill is for the publishing-side workflow. For prevention while working in Claude Code, install the hook layer instead — see repo README.
examples/blog_post_after.txt (opens in a new tab)examples/blog_post_before.txt (opens in a new tab)examples/terminal_session_after.txt (opens in a new tab)examples/terminal_session_before.txt (opens in a new tab)scripts/redact_clipboard.py (opens in a new tab)scripts/redact_file.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub konraddzbik/preflight-check-skill --plugin preflight-check