agentleFS
ImNotTheWolfOfficialImNotTheWolfOfficial/auto-master-skills/skills/master-sanitize/SKILL.md

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.

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
  1. Distinctive:

    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 …

    line 8
  2. Distinctive:

    Default to review/report only.

    line 12
  3. Very specific:

    Write reports outside the repo under ~/.auto-master/artifacts/<project-slug>/sanitize/.

    line 14
  4. Distinctive:

    Read private denylist entries only from outside repos.

    line 15
  5. Distinctive:

    Never print secrets, tokens, private keys, certs, passwords, auth headers, cookies, signed URLs, or private environment values.

    line 16
  6. Distinctive:

    Treat historical cleanup as opt-in and isolated in a mirror clone only.

    line 20
  7. Distinctive:

    Never name generated files or doc content after AI models or providers.

    line 21
  8. Distinctive:

    Read project instructions such as AGENTS.md if present.

    line 27
  9. Distinctive:

    If requested, review branch/tag history in read-only mode.

    line 32
  10. Distinctive:

    Stop before any cleanup action unless the user explicitly approves the action.

    line 35
  11. Distinctive:

    Read these references as needed:

    line 39

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Identify the active repo, project slug, branch, worktree state, and what is intended to go public.
  2. Read project instructions such as AGENTS.md if present.
  3. Load the private denylist if present.
  4. Review the working tree, tracked files, and outgoing refs for public-readiness concerns.
  5. Review docs/comments/public text for internal-only wording, competitor mentions, and denylist hits.
  6. Review ignored-file rules and sensitive file patterns.
  7. If requested, review branch/tag history in read-only mode.
  8. Produce a masked findings report outside the repo.
  9. Recommend one of: READY, READY AFTER FIXES, CLEAN EXPORT RECOMMENDED, NOT READY, or BLOCKED.
  10. Stop before any cleanup action unless the user explicitly approves the action.

References

Read these references as needed:

  • references/workflow.md for the full public-readiness review process.
  • references/working-tree-review.md for files/content checks.
  • references/private-denylist.md before loading private denylist terms.
  • references/public-release-readiness.md before recommending open-source/public release.
  • references/history-cleanup-boundaries.md before any history-related discussion.
  • references/reporting.md before writing the final report.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.