What problem does it solve?
Large, monolithic changesets in Jujutsu (jj) version control are hard to review and merge. This Skill guides an AI agent through safely splitting one big changeset into multiple focused, reviewable changesets without losing any changes or relying on interactive editor commands.
Core Features & Use Cases
- Safe Duplication-First Workflow: Always duplicates the original changeset before splitting, so the original remains untouched until the split is verified.
- File-Path and Hunk-Level Splitting: Supports both whole-file splits via
jj split -r <rev> <paths> and manual hunk-level splits using jj new, jj restore, and direct file writes — no interactive commands required.
- Verification and Cleanup: Verifies completeness with
jj interdiff, runs user-defined validation (builds, tests, lints), rebases dependents, and abandons the original only after confirmation.
- Use Case: You have a single jj changeset mixing a refactor, a new feature, and tests. The Skill inspects the diff, proposes logical groupings, splits them into three stacked changesets with proper descriptions, and verifies nothing was lost.
Quick Start
Ask the agent to split the jj changeset at revision abc123 into separate refactor, feature, and test changesets.