Repository navigation
fix(#85): Add safeguards against losing unpushed work on main - #98
Merged
admarble merged 1 commit intoJan 16, 2026
Merged
Conversation
- Add hard reset protection to pre-tool.sh hooks that blocks `git reset --hard` when unpushed commits exist on main/master - Update /exec skill to enforce worktree usage before implementation - Add Safety Safeguards documentation section to worktree-isolation.md Closes #85 Co-Authored-By: Claude Opus 4.5 <[email protected]>
5 tasks
admarble
deleted the
feature/85-fix-add-safeguards-against-losing-unpushed-work
branch
January 16, 2026 04:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
git reset --hardwhen unpushed commits exist on main/master/execskill to enforce worktree usage before implementationdocs/concepts/worktree-isolation.mdChanges
.claude/hooks/pre-tool.shtemplates/hooks/pre-tool.sh.claude/skills/exec/SKILL.mddocs/concepts/worktree-isolation.mdAcceptance Criteria
git reset --hard origin/mainis blocked when unpushed commits exist on main/execskill refuses to implement on main without worktreeTest plan
npm test- 363 tests passnpm run build- TypeScript compiles successfullygit reset --hard origin/mainis blockedCloses #85
🤖 Generated with Claude Code