[Skill] /pii-check — pre-publish PII & secrets audit for repos that had an AI agent working in them #1295
Replies: 1 comment
-
|
The three finds you describe (a handoff.md in history, username-baked paths, a too-real fixture) match exactly what I hit publishing a redacted mirror of an agent workspace. The lesson that generalised: a pre-publish audit catches HEAD, but agent-worked repos keep regenerating leaks, so the point-in-time check wants two standing companions:
One failure mode worth a test case: the denylist leaking itself. Ours once described its own grep patterns in a public changelog line, which printed the private strings verbatim. The scanner needs to exclude its own rule file and any doc quoting it. Layered this way, your skill becomes the deep periodic audit and the hooks keep the interval between audits safe. Reference implementation (redaction_check.py + CI workflow): https://github.com/jimy-r/agent-workspace-architecture |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I built this skill after running
/pii-checkon my own repo before making it public and finding things that no traditional scanner would have caught — ahandoff.mdin git history from three commits ago, absolute paths with my username baked into a config file, and a fixture CSV that looked generated but wasn't.What it does
/pii-checkis a pre-publish audit for Claude Code. Run it beforegit push --mirroron a private repo, before open-sourcing a project, or before submitting code to a client.git filter-reporewrite with the working-tree-wipe warning most tutorials omithandoff.md, session notes, run logs, and.claude/directories; these files barely existed as a threat surface two years ago, which is why gitleaks and every other traditional scanner ignores themsk-,ghp_,AKIA), private keys, absolute user paths, credentials in URLs, partial masksHow it's different from the scanners you already know
The specific gap: if a repo started as a private AI-assisted workspace, the agentic workflow itself generates context files that contain PII with no credential pattern. No existing tool flags those.
Install
git clone https://github.com/clewisdev/skills.git cp -r skills/pii-check ~/.claude/skills/pii-checkThen
/pii-checkin any Claude Code session, or just ask "is it safe to make this public?"What it doesn't do
Repo
github.com/clewisdev/skills — MIT licensed.
Would love feedback on the output format and whether the agentic-artifact checks are catching things people actually hit in practice.
Beta Was this translation helpful? Give feedback.
All reactions