velesnitski

Rtk No History Rewrite — Development skill for Claude Code

Development community

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

How to install Rtk No History Rewrite

Installs to ~/.claude/commands/velesnitski-rtk-rtk-no-history-rewrite.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/velesnitski/rtk/HEAD/.claude/commands/rtk-no-history-rewrite.md -o ~/.claude/commands/velesnitski-rtk-rtk-no-history-rewrite.md

Restart Claude Code, or start a new session, for it to be picked up.

What Rtk No History Rewrite does

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-

Alternatives in Development

  • Claude API — Build apps with the Claude API or Anthropic SDK 94.1k ★
  • /diagnose — Vérifie l'état de l'environnement RTK et suggère des corrections 25.5k ★
  • Claude Integration Guide — FOR CLAUDE CODE: When a user asks you to integrate components from this showcase repository into their project 9.3k ★

Full documentation available on GitHub

View Source Repository