master-sanitize
Skill15 starsChanged 4 months agoMITView on GitHub
Review authorized local repos for public-release readiness and accidental private material before open-source publishing or public sharing. Use when the user asks for Master-Sanitize, master-sanitize, repo sanitization, open-source readiness, public repo review, private-to-public cleanup, confidential material review, denylist scan, sensitive file review, or safe export planning. Defaults to review/report only and writes findings outside the repo.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-copySkill
- auto-docSkill
- auto-manageSkill
- auto-pilotSkill
- auto-planSkill
- auto-qaSkill
- auto-reflectSkill
- auto-researchSkill
- master-docsSkill
- master-optimizeSkill
- master-qaSkill
- master-refactorSkill
- master-release-reviewSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Use this skill to review a repo, branch, or export candidate before public sharing, an open-source push, or a closed-source to open-source …
- Distinctive: line 12
Default to review/report only.
- Very specific: line 14
Write reports outside the repo under ~/.auto-master/artifacts/<project-slug>/sanitize/.
- Distinctive: line 15
Read private denylist entries only from outside repos.
- Distinctive: line 16
Never print secrets, tokens, private keys, certs, passwords, auth headers, cookies, signed URLs, or private environment values.
- Distinctive: line 20
Treat historical cleanup as opt-in and isolated in a mirror clone only.
- Distinctive: line 21
Never name generated files or doc content after AI models or providers.
- Distinctive: line 27
Read project instructions such as AGENTS.md if present.
- Distinctive: line 32
If requested, review branch/tag history in read-only mode.
- Distinctive: line 35
Stop before any cleanup action unless the user explicitly approves the action.
- Distinctive: line 39
Read these references as needed:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Master-Sanitize
Use this skill to review a repo, branch, or export candidate before public sharing, an open-source push, or a closed-source to open-source move.
Core Rules
- Default to review/report only. No file deletion, history editing, force-pushing, or publishing without explicit approval for that exact action.
- Review everything that would go public: for pre-push reviews, scan all outgoing refs (branches and tags), not just HEAD — a secret on a side branch leaks the moment it is pushed.
- Write reports outside the repo under
~/.auto-master/artifacts/<project-slug>/sanitize/. - Read private denylist entries only from outside repos. Never copy the denylist into a repo. Never print full denylist contents.
- Never print secrets, tokens, private keys, certs, passwords, auth headers, cookies, signed URLs, or private environment values.
- Report sensitive findings as masked, summarized, or SET/MISSING.
- A leaked live credential must be rotated — removing it from files or history does not un-leak it. Always say so in the report.
- For private-to-public transitions, recommend a clean fresh-history export by default.
- Treat historical cleanup as opt-in and isolated in a mirror clone only.
- Never name generated files or doc content after AI models or providers.
- Preserve unrelated user work.
Workflow
- Identify the active repo, project slug, branch, worktree state, and what is intended to go public.
- Read project instructions such as
AGENTS.mdif present. - Load the private denylist if present.
- Review the working tree, tracked files, and outgoing refs for public-readiness concerns.
- Review docs/comments/public text for internal-only wording, competitor mentions, and denylist hits.
- Review ignored-file rules and sensitive file patterns.
- If requested, review branch/tag history in read-only mode.
- Produce a masked findings report outside the repo.
- Recommend one of: READY, READY AFTER FIXES, CLEAN EXPORT RECOMMENDED, NOT READY, or BLOCKED.
- Stop before any cleanup action unless the user explicitly approves the action.
References
Read these references as needed:
references/workflow.mdfor the full public-readiness review process.references/working-tree-review.mdfor files/content checks.references/private-denylist.mdbefore loading private denylist terms.references/public-release-readiness.mdbefore recommending open-source/public release.references/history-cleanup-boundaries.mdbefore any history-related discussion.references/reporting.mdbefore writing the final report.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

