agentleFS
ShiningPlagueShiningPlague/shiningplague-studio/skills/safety-push/SKILL.md

safety-push

Skill0 starsChanged 4 months agoMITView on GitHub

Use when designer says 'safety push', 'back up to git', 'commit and push everything safe', or expresses concern about machine failure / disk loss / disaster. Quick scan + commit + push of safe modified files. One-shot disaster insurance.

  • Reads credentials
  • Commits and pushes

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before risky operations (Godot version upgrade, OS reinstall, hardware change)

    line 33
  2. Distinctive:

    Before stepping away from the machine for an extended period

    line 34
  3. Distinctive:

    If git push is broken (network/auth issue) — fix that first

    line 41
  4. Very specific:

    After firing, propose /update if the work is at a real checkpoint (not just disaster insurance).

    line 123
  5. Very specific:

    Do NOT fire /safety-push automatically as part of any other skill's chain — it's designer-invoked only.

    line 124

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

Safety Push — Disaster Insurance Commit

🌱 ShiningPlague-authored. No upstream version exists. One-shot disaster-insurance backup that gets local work to GitHub before machine failure / disk loss / OS reinstall.

One-shot: scan git status, commit safe files, push to remote. Skips secrets, large binaries, gitignored files. Pre-disaster backup that gets the local work to GitHub before the machine can die.

If an artifact named here is absent: say so plainly in one line, skip that step, and continue. Never invent the file to satisfy a checklist, and never fail a close because an optional artifact was never created.

When to fire

  • Designer says: "safety push", "back up", "commit and push everything", "in case my machine dies", "disaster", "what if I lose this"
  • Long work session with uncommitted changes accumulating
  • Before risky operations (Godot version upgrade, OS reinstall, hardware change)
  • Before stepping away from the machine for an extended period

When NOT to fire

  • Mid-brainstorm with WIP files not ready for any commit
  • Right after /session-close already pushed
  • Detached HEAD state / wrong branch
  • If git push is broken (network/auth issue) — fix that first

Procedure

Step 1: Scan git state

cd "<project-root>"
git status --short
git rev-parse --abbrev-ref HEAD       # Verify on master (or expected branch)
git log --oneline -1                   # Last commit reference

Step 2: Classify files

Categorize each modified/untracked file:

Skip ifReason
Path matches .env*, *credentials*, *secret*, *.key, *.pem, *_token*Auth/secrets
File size > 100MBRepo bloat (git LFS territory)
Path matches .gitignore (sanity check — git won't add but verify)Already excluded
Path contains .pyc, __pycache__, node_modules, .tmp, ~ prefixBuild artifacts / temp files

Everything else: INCLUDE.

Step 3: Stage + commit

git add <safe-file-1> <safe-file-2> ...
git commit -m "$(cat <<'EOF'
chore: SAFETY-COMMIT — pre-disaster backup

Files committed:
- <list of files>

Triggered by designer safety-push request. Not all files may be in
shipped/reviewed state; this is disaster insurance, not a feature commit.

Co-Authored-By: Claude <current model> <noreply@anthropic.com>
EOF
)"

Step 4: Push

git push origin <current-branch>

Step 5: Report

Tell designer:

  • Commit hash + message
  • Files included
  • Files skipped (with reasons)
  • Push destination (origin URL)

Common mistakes

  • ❌ Using git add -A or git add . without classification — risks committing .env files
  • ❌ Pushing on a feature branch without confirming branch — could surprise the designer
  • ❌ Skipping the file classification "because it's a quick safety thing" — sensitive files leak via this exact rationalization
  • ❌ Auto-firing without designer request — they decide when disaster insurance is needed
  • ❌ Committing files mid-edit (file is being saved as you read it) — wait 5 seconds after designer signals end of editing

Recovery scenario

Designer's disk dies after /safety-push fires. On new machine:

git clone https://github.com/<owner>/<repo>.git
cd <repo>
# All work up to last safety-push commit is here.
# Open Claude Code — session-start hook reads active.md + workstream states, designer is caught up.

That's the value. Cheap. Fast. One command.

Cross-skill awareness

  • /safety-push is NOT a substitute for /update or /session-close. Those do docs sync + dev_diary + reflections. /safety-push just gets bits to GitHub.
  • After firing, propose /update if the work is at a real checkpoint (not just disaster insurance).
  • Do NOT fire /safety-push automatically as part of any other skill's chain — it's designer-invoked only.

Reference files

  • production/session-state/active.md — read briefly to know what designer was working on (for commit message context)
  • Project's .gitignore — sanity check that skip patterns align

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.