agentleFS
GucixdevGucixdev/claude-skills/skills/publish-anything/SKILL.md

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

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
  1. Very specific:

    Test fixtures that need a fixed user (a VM image, a fake PAM) get a made-up name such as demo, not his login.

    line 40
  2. Very specific:

    No banners, no section art, no step numbering of obvious code, no history in comments (git has it), no TODO: improve.

    line 50
  3. Very specific:

    Commit messages: Conventional Commits, one line of substance, no filler (conventions (commits)).

    line 56

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

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

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 ofWrite
/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 diska path relative to the script: $(dirname "$(readlink -f "$0")"), or an overridable variable with a default
his name or e-mailGucixdev 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 (autodemo records 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

  1. publish-check -H . - fix everything it prints, run it again until clean.
  2. The tests and ./check still pass after the edits (code (done)).
  3. git fetch and look at whether the remote has something newer before pushing (rules (discipline)).
  4. Push only with his go-ahead for that repo; then ship-anything for the release.

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.