rollback
Skill1 starsChanged 30 days agoMITView on GitHub
Safely roll back recent changes — uncommitted edits, last commit, range of commits, or back to a specific commit. Always uses `git revert` (preserves history) and `git stash` (preserves work). Never `git reset --hard`.
- Deletes or force-pushes
10 other projects use a version of this.
Adopted by
Most recently taken up by
- synaptiai/agent-capability-standardtheir own version, first seen Nov 1, 2026
- harshanandak/forge-legacytheir own version, first seen Oct 17, 2026
- tejastn10/workbenchtheir own version, first seen Oct 13, 2026
- purpleeddy/claddingtheir own version, first seen Oct 11, 2026
- popup-studio-ai/bkit-claude-codetheir own version, first seen Oct 8, 2026
- kapadias/nonnatheir own version, first seen Oct 1, 2026
Used with
Projects with it also use plan, ship and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 4 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- suboss87/FDEOps★ 940same name
- popup-studio-ai/bkit-claude-code★ 605same name
- ww-w-ai/bkit-claude-code★ 605same name
- ww-w-ai/bkit-gemini★ 66same name
- nahid-sparktales/agent-dispatcher★ 59same name
- purpleeddy/cladding★ 16same name
- synaptiai/agent-capability-standard★ 6same name
- harshanandak/forge-legacy★ 4same name
- tejastn10/workbench★ 1same name
- kapadias/nonna★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-projectSkill
- cleanupSkill
- create-skillSkill
- dailySkill
- dependency-checkSkill
- documentSkill
- execute-prpSkill
- ez-project-workflowSkill
- fix-issueSkill
- generate-prpSkill
- housekeepingSkill
- kickoffSkill
- monitor-setupSkill
- nextSkill
- performanceSkill
- pipelineSkill
- refactorSkill
- retrospectiveSkill
- review-codeSkill
- security-scanSkill
- statusSkill
- tddSkill
- upgrade-statusSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 57
NEVER use git reset --hard — always git revert
- Distinctive: line 59
Always show the user what will be affected before acting
- Distinctive: line 60
Always require confirmation before any destructive action
- Distinctive: line 61
If tests fail after rollback, warn the user immediately
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rollback
Phase 1: Assess
git status
git log --oneline -10
git diff --statShow: branch, last 10 commits, uncommitted state, files modified.
Phase 2: Identify the target
Ask the user: "Qu'est-ce que tu veux rollback?
- Les changements non-commités (stash)
- Le dernier commit (revert)
- Les X derniers commits (revert range)
- Revenir à un commit spécifique (revert chain)"
Phase 3: Execute the chosen option (always confirm first)
Option 1 — Uncommitted changes
Show git diff and git diff --cached. Confirm with the user, then:
git stash save "rollback-backup-<timestamp>"Tell the user: "Recoverable via git stash pop."
Option 2 — Last commit
Show git log -1 --stat. Confirm. Then:
git revert HEAD --no-editOption 3 — Last X commits
Show git log --oneline -X. Confirm. Then:
git revert HEAD~X..HEAD --no-editOption 4 — Specific commit
Show git log --oneline -20. Ask for the hash. Then revert all commits after that one.
Phase 4: Verify
git log --oneline -5
git status
pytest tests/ -v --tb=shortReport: what was rolled back, current state, whether tests pass.
Rules
- NEVER use
git reset --hard— alwaysgit revert - NEVER use
git checkout .— alwaysgit stash - Always show the user what will be affected before acting
- Always require confirmation before any destructive action
- If tests fail after rollback, warn the user immediately
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.

