/publish-check:publish-checkfrom publish-check
Read-only scan of a git repository's working tree and full history for leaks before publishing. Detects Claude conversation links, local machine paths, email addresses, and internal names. Does not scan for secrets.
Ships in publish-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.
This skill scans the working tree and the whole git history for what should not become public:
claude.ai/code/session..., /chat/..., /share/...)./Users/<name>, /home/<name>, C:\Users\<name>).The scan is read-only: it never changes the repository and never rewrites history. It needs python3 (stdlib only) and git.
It does not look for secrets (keys, tokens). For secrets, use a secret scanner such as gitleaks. Tell the user this when you present the results.
Reply to the user in the user's language. The script's report is in English: explain its content to the user in the user's language.
Use it before something becomes public: creating a public repository, opening a PR to a public repository or pushing to a public remote.
Offer to run the scan. Never block: the decision to publish belongs to the user.
If the repository is private and will not be published, do not offer.
The script ships with this skill: ${CLAUDE_SKILL_DIR}/scripts/publish_check.py. Run it directly, always with python3 -I.
test -f "${CLAUDE_SKILL_DIR}/scripts/publish_check.py" && echo OK || echo FALTA
FALTA means "missing".
If ${CLAUDE_SKILL_DIR} appears unexpanded, use the path shown as "Base directory for this skill" when the skill was loaded. Write that path out in full in every command.
If it is not clear, ask the user. Do not assume.
If gh is installed, gh repo view --json visibility -q .visibility shows the visibility of a repository that is already on GitHub.
python3 -I "${CLAUDE_SKILL_DIR}/scripts/publish_check.py" <repository>
Useful options:
--json: print the script's report as JSON.--since <date>: scan only commits newer than the date (any date git accepts).--max-commits N: scan only the newest N commits (for large repositories).--denylist <file>: internal names, one per line. Keep this file outside the repository.--config <file>: use this config file.If .publish-check.json exists at the repository root, the script reads it by itself. Its keys:
denylist: internal names.allow: fingerprints of accepted findings.Exit code:
0: clean.1: findings.2: error (not a git repository, invalid config, git missing).Show the findings grouped by category, as the script prints them (keep the masked values and fingerprints exactly as printed; write your explanations in the user's language). The values are already partly masked (j***@domain.dev, /Users/***). Do not reproduce the full value anywhere else.
Say how many files and commits were scanned.
For each category, explain to the user what to do. Do not execute any of it yourself.
docs/remediation.md (inside the plugin).skipped (binary, unreadable or too large files), those files were not checked. Tell the user.accepted by the allow list, tell the user how many findings were accepted and by whom (the allow key of .publish-check.json).history limited (from --since / --max-commits) or no commits were scanned, the scan was partial.
partial clone, the script never fetches blobs that are not stored locally and stops with an error if it needs one. If you see this warning together with an error, tell the user the scan could not complete.shallow clone, the result is partial (only part of the history was scanned).
git fetch --unshallow before trusting "clean".fingerprint to the allow key of .publish-check.json. Edit that file only with the user's approval.Summarise: clean, or N findings in M categories and what the user decided. The decision to publish stays with the user.
filter-branch, filter-repo). Never force-push to the remote.denylist) is sensitive. If the repository is public, keep the list in a file outside it (--denylist), or in a .publish-check.json that git ignores (.gitignore or .git/info/exclude). A .publish-check.json with denylist committed in a public repository leaks the list itself, and the tool will report that.git is not on the PATH, tell the user. Do not try another way.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dvwinck/capybara-toolbox --plugin publish-checkOther plugins' skills for the same job