Skip to content

fix(git-history-rewrite): enter plan mode after backup in step 4 - #15

Merged
Jack-Waller merged 3 commits into
mainfrom
worktree-fix-git-history-rewrite-plan-mode
Jun 29, 2026
Merged

Jack-Waller merged 3 commits into
mainfrom
worktree-fix-git-history-rewrite-plan-mode

Conversation

@Jack-Waller

Copy link
Copy Markdown
Owner

What

Corrects the git-history-rewrite skill to use EnterPlanMode at the right point in the flow — after the backup branch is created, not before.

Why

The skill previously called Enter plan mode. as freestanding prose mid-skill, with no enforcement that the backup existed first. This meant:

  • Plan mode could be entered before any safety net was in place
  • The instruction was easy to overlook or misinterpret as optional prose
  • Examples did not show the approval gate clearly

Changes

  • SKILL.md: moved EnterPlanMode call to after the backup step (Step 3); added two Important Notes entries — one enforcing backup-before-plan-mode order, one making EnterPlanMode tool usage mandatory
  • examples/wip-commits-rewrite.md: Step 4 now shows plan mode being entered after the backup, with an explicit approval gate before execution proceeds
  • examples/clean-history-no-review-guide.md: clarified that backup and plan mode are both skipped when history is already good

- Move EnterPlanMode call to after the backup branch is created
- Add Important Notes entries enforcing backup-before-plan-mode order
  and mandatory use of the EnterPlanMode tool
- wip-commits-rewrite: show plan mode entered after backup, with
  approval gate before execution proceeds
- clean-history-no-review-guide: clarify backup and plan mode are
  also skipped when history is already good
@Jack-Waller
Jack-Waller marked this pull request as ready for review June 29, 2026 00:55
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Jack-Waller
Jack-Waller merged commit b2c0fd0 into main Jun 29, 2026
1 check passed
@Jack-Waller
Jack-Waller deleted the worktree-fix-git-history-rewrite-plan-mode branch June 29, 2026 01:02
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.

1 participant