Skip to content
Development
Command

/rtk-no-history-rewrite

Refuse force-pushes / history rewrites unless the user explicitly asks.

From plugin
rtk
80k13 skills6 agents13 commands
Install
$ npx -y skills add rtk-ai/rtk --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/rtk-no-history-rewrite

Context preview

What this command does when you run it.

Refuse force-pushes / history rewrites unless the user explicitly asks.

Command definition

rtk-no-history-rewrite.md

Refuse force-pushes / history rewrites unless the user explicitly asks.

No history rewrite

Without an explicit user instruction, NEVER:

  • run `git push --force` / `--force-with-lease`
  • run `git rebase -i` on commits already pushed
  • amend a commit that exists on a remote branch
  • run `git filter-branch` / `git filter-repo`
  • delete a remote branch tip (`git push origin :branch`)

If the user asks for "clean up the history" or similar, propose the non-destructive alternatives FIRST (squash-on-merge, follow-up commit) and only proceed with rewrite after explicit confirmation including the branch name.

Ships withrtk

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

Get the whole plugin

Other commands on rtk.