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
In this repository68 other files it gives its agents.
- adoptSkill
- architecture-decisionSkill
- architecture-reviewSkill
- art-bibleSkill
- asset-specSkill
- brainstormingSkill
- bug-reportSkill
- bug-triageSkill
- code-reviewSkill
- consistency-checkSkill
- content-auditSkill
- create-architectureSkill
- create-control-manifestSkill
- create-epicsSkill
- create-storiesSkill
- day-one-patchSkill
- design-reviewSkill
- design-systemSkill
- dev-storySkill
- dispatching-parallel-agentsSkill
- estimateSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- gate-checkSkill
- goal-add-minorSkill
- goal-checkSkill
- goal-setSkill
- godot-engineSkill
- helpSkill
- map-systemsSkill
- narrative-designerSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- qa-planSkill
- quick-designSkill
- red-flag-scanSkill
- regression-suiteSkill
- retrospectiveSkill
- review-all-gddsSkill
- scope-checkSkill
- security-auditSkill
- session-closeSkill
- setup-engineSkill
- sprint-planSkill
- startSkill
- story-doneSkill
- story-readinessSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- team-artSkill
- team-audioSkill
- team-combatSkill
- team-economySkill
- team-infraSkill
- team-levelSkill
- team-marketingSkill
- team-narrativeSkill
- team-polishSkill
- team-releaseSkill
- team-securitySkill
- The first 60 shown.
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
- Distinctive: line 33
Before risky operations (Godot version upgrade, OS reinstall, hardware change)
- Distinctive: line 34
Before stepping away from the machine for an extended period
- Distinctive: line 41
If git push is broken (network/auth issue) — fix that first
- Very specific: line 123
After firing, propose /update if the work is at a real checkpoint (not just disaster insurance).
- Very specific: line 124
Do NOT fire /safety-push automatically as part of any other skill's chain — it's designer-invoked only.
≈ “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.
Files
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-closealready 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 referenceStep 2: Classify files
Categorize each modified/untracked file:
| Skip if | Reason |
Path matches .env*, *credentials*, *secret*, *.key, *.pem, *_token* | Auth/secrets |
| File size > 100MB | Repo bloat (git LFS territory) |
Path matches .gitignore (sanity check — git won't add but verify) | Already excluded |
Path contains .pyc, __pycache__, node_modules, .tmp, ~ prefix | Build 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 -Aorgit add .without classification — risks committing.envfiles - ❌ 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-pushis NOT a substitute for/updateor/session-close. Those do docs sync + dev_diary + reflections./safety-pushjust gets bits to GitHub.- After firing, propose
/updateif the work is at a real checkpoint (not just disaster insurance). - Do NOT fire
/safety-pushautomatically 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
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.

