Skip to content

Prohibit git reset --hard in todo-handler skill - #8

Merged
aphelps-claude-bot merged 1 commit into
mainfrom
skill-no-hard-reset
Apr 18, 2026
Merged

aphelps-claude-bot merged 1 commit into
mainfrom
skill-no-hard-reset

Conversation

@aphelps-claude-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Documents that git reset --hard (and git checkout -- . / git restore .) silently destroys gitignored files like todo.md, todo.log, and todo_plans/
  • Prescribes safe alternatives: git reset --soft to squash commits, git checkout -b <name> <ref> to branch from a remote ref
  • Discovered when a git reset --hard origin/main on the sparkle-smooth-fade branch wiped the local todo.md

Test plan

  • Review SKILL.md General Guidelines section for accuracy

🤖 Generated with Claude Code

- Never use git reset --hard (or checkout --/restore .): destroys
  gitignored files like todo.md/log/todo_plans/. Use git reset --soft
  to squash, git checkout -b to branch from a remote ref safely.
- PR Handling: check all submodule PRs alongside the base repo PR in
  the same pass; never handle the base repo PR in isolation.
- PR Handling: after addressing a review comment mark the conversation
  resolved. If a comment needs clarification, reply and ask the user
  in-session if present.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants