Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By konraddzbikv1.2.0MITIn 1 marketplace
Detect and redact secrets, API keys, and PII from Claude Code conversations. Prevents accidental leakage of Polish PII (PESEL, NIP, REGON, IBAN), cloud credentials (AWS, GCP, Azure, OpenAI, Anthropic), and other sensitive data.
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Defensive toolkit for Claude Code: stop secrets, API keys, and personal data from leaving your machine — and clean transcripts before you publish.
Usage in a nutshell: run ./install.sh once. From then on the hooks run
automatically — every prompt and tool call is scanned, and secrets/PII are
redacted or blocked before they leave your machine. To scrub text by hand
before publishing, invoke the skill (/preflight-check) or pipe through the CLI:
pbpaste | preflight-check scan | pbcopy # clean whatever's on your clipboard
Two layers, one detection engine:
UserPromptSubmit
and PreToolUse hook. For prompts: warns or blocks when secrets are detected.
For tool inputs (Bash, Edit, Write): redacts secrets in place before execution.Both layers share the same detection core: gitleaks for cloud secrets + custom validated patterns for PII (Polish, EU, US).
One detection core, three entry points. A prompt or tool call hits the hook;
text you want to publish goes through the skill/CLI — both call the same
detection core (validated regex + gitleaks in parallel), map findings to
stable [REDACTED_X_NNN] placeholders, and log offsets only (never the values).
The mode decides the final action: redact, block, or warn.

The diagram is interactive — open
docs/architecture.htmlin a browser to click through each flow step by step and toggle the default / strict / warn-only modes. Full walkthrough indocs/architecture.md.
| Category | Examples | Validation |
|---|---|---|
| Cloud keys | AWS, GCP, Azure, OpenAI, Anthropic, GitHub, Slack, JWT | prefix + format |
| Polish PII | PESEL, NIP, REGON, IBAN PL, dowod osobisty | 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 |
| Unknown secrets | High-entropy strings (>=4.5 bits, >=32 chars) | planned, not yet implemented |
Checksum validation is the difference between useful detection and noise. A random 11-digit order number won't be flagged as a PESEL.
git clone https://github.com/konraddzbik/preflight-check-skill.git
cd preflight-check-skill
./install.sh
The installer will:
pyyaml)gitleaks (and offer to install it)~/.claude/settings.json~/.claude/skills/preflight-check/# Requires the preflight-check CLI to be installed on PATH first
# (run ./install.sh, or `pip install preflight-check-skill`)
claude plugin marketplace add https://github.com/konraddzbik/preflight-check-skill
claude plugin install preflight-check@preflight-check
This uses the Claude Code plugin system to auto-register the hooks. The plugin
bundles the skill and the hook definitions; the redaction engine itself is the
preflight-check CLI (pip install preflight-check-skill ships that CLI only —
the skill and plugin manifest come from the marketplace/repo).
Test it:
echo "My AWS key is [REDACTED:AWS Access Key]" | preflight-check
# Output: My AWS key is [REDACTED_AWS_ACCESS_KEY_001]
$ echo "PESEL 99123175313, email [email protected], key [REDACTED:AWS Access Key]" | preflight-check scan
PESEL [REDACTED_PESEL_001], email [REDACTED_EMAIL_001], key [REDACTED_AWS_ACCESS_KEY_001]
$ # Hook on PreToolUse — redacts tool input in place:
$ echo '{"hook_event_name":"PreToolUse","tool_name":"Bash","tool_input":{"command":"echo [REDACTED:AWS Access Key]"}}' \
| preflight-check hook
{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"allow","updatedInput":{"command":"echo [REDACTED_AWS_ACCESS_KEY_001]"}}}
Plugins from other owners that cover similar ground
npx claudepluginhub konraddzbik/preflight-check-skill --plugin preflight-checkBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.