nandofarias

Jj Squash — Development skill for Claude Code

Development community

Squash the current change into its parent.

How to install Jj Squash

Installs to ~/.claude/commands/nandofarias-dotfiles-jj-squash.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/nandofarias/dotfiles/HEAD/.claude/commands/jj-squash.md -o ~/.claude/commands/nandofarias-dotfiles-jj-squash.md

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

What Jj Squash does

Squash the current change into its parent.

  1. **Show what will be squashed:**

    jj log -r '@ | @-' --no-graph -T 'change_id.shortest(8) ++ " " ++ description.first_line() ++ "\n"'
  2. **Squash:**

    jj squash

    This moves all changes from `@` into `@-` (parent). The working copy becomes a new empty change on top.

  3. **If the squashed change had a bookmark, it might need moving:** Check if the old `@` had a bookmark that should now be on the parent.

Alternatives in Development

  • Langchain Skills — ⚠️ — This project is in early development 1.2k ★
  • Retune Color — Change a Graphite color safely by editing only the canonical primitive, then verify 452 ★
  • Migrations — Versioned breaking change migrations for Turbo 263 ★

Full documentation available on GitHub

View Source Repository