publish-anything
Skill0 starsChanged 9 days agoMITView on GitHub
Make anything safe and clean to put on GitHub or anywhere public - secrets scan, identity and machine paths out of files, comments and commits ($USER, $HOME), READMEs that read like a person wrote them. Runs scripts/publish-check. Use before every push of a public repo, release, paste, demo or post, and on publish, public, secrets, slop, hejt.
- Reads credentials
In this repository37 other files it gives its agents.
- skills/model-surgery/references/agents.mdAGENTS.md
- alienspaceSkill
- announce-anythingSkill
- ask-older-brotherSkill
- audit-everythingSkill
- automate-everythingSkill
- bash-everythingSkill
- claudeSkill
- cleandocsSkill
- cli-everythingSkill
- codeSkill
- conventionsSkill
- cppSkill
- day-traderSkill
- decideSkill
- distribute-everythingSkill
- economistSkill
- evolveSkill
- founderSkill
- godotSkill
- hardware-anythingSkill
- karpathySkill
- model-surgerySkill
- nonconformistSkill
- orchestratorSkill
- paying-demandSkill
- reaSkill
- rulesSkill
- scrape-everythingSkill
- seedSkill
- ship-anythingSkill
- skill-everythingSkill
- teardownSkill
- uiSkill
- which-licenseSkill
- whiteboard-programmingSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Test fixtures that need a fixed user (a VM image, a fake PAM) get a made-up name such as demo, not his login.
- Very specific: line 50
No banners, no section art, no step numbering of obvious code, no history in comments (git has it), no TODO: improve.
- Very specific: line 56
Commit messages: Conventional Commits, one line of substance, no filler (conventions (commits)).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
publish-anything
Nothing goes public before scripts/publish-check is clean. It reads the repo, changes nothing, prints file:line.
publish-check [-H] [REPO] # -H: also the unpushed commits (author e-mails, names, messages)It looks for four things; each has a fix.
Secrets
gitleaks when installed, else token shapes and password/token/secret/api_key = value lines; values are masked in
the report. Fix: the value comes from the environment or ~/.secrets (mode 600), the repo ships .env.example with
empty values. A secret already committed is a leaked secret: revoke it at the provider first, then remove it from
history before anything is pushed. History rewriting is only for commits that were never pushed, and only with his
go-ahead (rules (discipline)).
His identity and paths
The login name, the home directory and the git name and e-mail are read at run time from this machine, so nothing personal is written into the check. In files, comments and docs:
| Instead of | Write |
/home/<login>/x | $HOME/x, ~/x, ${XDG_CONFIG_HOME:-$HOME/.config}/x |
| the login name as a user | $USER, $(id -un), or a neutral alice / user in examples |
/data/dev/..., a mount of his disk | a path relative to the script: $(dirname "$(readlink -f "$0")"), or an overridable variable with a default |
| his name or e-mail | Gucixdev and the noreply address (rules (identity)) |
Test fixtures that need a fixed user (a VM image, a fake PAM) get a made-up name such as demo, not his login.
In comments the same rule holds: "run as the user", not "run as" plus the login.
Comments that do not read as generated
The tells people mock, and the check flags: emoji in comments, "Let's", "Certainly", "robust", "seamless", "comprehensive", "leverage", "delve", "It's important to", "Note that", "blazing", "production-ready", and the self-justifying lines ("not theater", "honest gap", "documented, not hidden"). Beyond the list:
- A comment says why, or what is not obvious; it never repeats the line under it (
i++ // increment i). - No banners, no section art, no step numbering of obvious code, no history in comments (git has it), no
TODO: improve. - One header comment per file: what it is, how it is used, the gotcha. Plain sentences, the tone of a man's notes to himself, not a sales page.
- The README opens with what the tool does and one real command with its real output (
autodemorecords it). Claims need the number next to them or they go (conventions (docs),audit-everything). - Commit messages: Conventional Commits, one line of substance, no filler (
conventions (commits)).
A deliberate mention (this skill's own examples) carries publish-check: ok on the line and is skipped.
Order
publish-check -H .- fix everything it prints, run it again untilclean.- The tests and
./checkstill pass after the edits (code (done)). git fetchand look at whether the remote has something newer before pushing (rules (discipline)).- Push only with his go-ahead for that repo; then
ship-anythingfor the release.
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.

