agentleFS
naman10parikhnaman10parikh/fleet-audit/skills/scrub-before-public/SKILL.md

scrub-before-public

Skill0 starsChanged 12 days agoMITView on GitHub

Scrub a repository before it goes public, over the tree, the whole history, the commit messages and secrets, with a patterns file kept outside every repository; triage each hit and plan any history rewrite in a scratch mirror. Use before a repository's visibility changes to public, before the first push of a repository carved out of a private one, or when a confidential name, a personal detail or a key may be in it.

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

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

    Before a repository is made public (going public publishes every commit), before pushing a repository carved out of a private one, or when …

    line 10
  2. Very specific:

    History: when the history or the messages still match, plan the rewrite: fleet-audit history <owner/name> --patterns <file> --facts-dir …

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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

Scrub before going public

When to use

Before a repository is made public (going public publishes every commit), before pushing a repository carved out of a private one, or when a leak is suspected.

Steps

  1. Write your patterns in a file outside every repository. Copy scrub-patterns.example.txt: one regex per line, CS in front for case-sensitive, ==>text at the end for the history replacement. Test each new pattern on a known hit before you trust a zero.
  2. Scrub: fleet-audit scrub <path> --patterns <file> checks the tree, the history, the commit messages and, with gitleaks installed, secrets. Before a push, --head --tree checks the committed tree in seconds.
  3. Triage by pattern number. A tree hit: remove it in a new commit. A secret: rotate it at the provider first, then remove it. A test fixture shaped like a secret: assemble it at run time, or allowlist it in .gitleaks.toml by path or regex.
  4. History: when the history or the messages still match, plan the rewrite: fleet-audit history <owner/name> --patterns <file> --facts-dir <folder> --out <scratch>. It rewrites a scratch mirror, drops the facts file's internal_files, and scrubs the result. It pushes nothing.
  5. Stop for the owner. Pushing a rewritten history is a force-push, and going public changes visibility. Both wait for the owner's explicit yes.

Output

The scrub line (CLEAN, or DIRTY with counts per pattern number), the triage list (pattern, file, action) and, when needed, the history plan's result: commits before and after, notes dropped, clean or not.

Anti-patterns

  • Pasting matched text into a report or an issue. Name the pattern number and the file.
  • Keeping the patterns file inside the repository you are about to publish.
  • Removing a live key without rotating it first.

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.

Reviews can't be read right now.

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.