rfxn/rdf/r-util-rel-squash
Claude Code and agent skill by rfxn/rdf
- community
Checking that the SKILL.md file is still in the repository.
Generate a squash plan for the current release branch by grouping
Install
npx vskill@latest install rfxn/rdf/r-util-rel-squashSKILL.md
The same SKILL.md was published earlier as rfxn/rdf/r-util-rel-squash.
/rdf:r-util-rel-squash — Release Branch Squash
Generate a squash plan for the current release branch by grouping commits into logical buckets aligned with CHANGELOG.RELEASE entries. Default: plan summary only. Pass --apply to execute after review.
Arguments
$ARGUMENTS — optional flags:
- No args: plan summary only (dry-run)
--apply: present plan, then execute after explicit user confirmation
Protocol
1. Safety Pre-flight
Run all checks in a single Bash call:
Abort if:
- Dirty working tree (uncommitted changes)
- Merge commits present in range (rebase cannot squash through merges)
- No commits in range (nothing to squash)
Detect: If branch has a remote tracking ref, note that execution will require git push --force-with-lease.
2. Determine Scope
Store the full commit list. Reverse internally to oldest-first order for grouping (oldest commit is the group anchor/pick).
3. Read CHANGELOG.RELEASE
Extract the ordered list of changelog entries as target buckets. Each distinct entry becomes one squash target bucket (B01, B02, ...).
If CHANGELOG.RELEASE is missing: fall back to topic-grouping heuristics — bucket labels come from commit subject prefixes.
4. Generate Squash Plan
Map every commit (oldest-first) to a bucket using sequential neighbor grouping. Target: one squash group per CHANGELOG entry.
Grouping rules (priority order):
- Phase prefix match — commits sharing
Phase NorP<N>cluster - CHANGELOG entry alignment — keyword match between commit subject
and changelog description (function names, feature names, flags)
- Fix-up absorption — commits starting with fix/fixup/follow-up,
or containing "review fix", "QA fix", "address" → absorb into preceding non-fixup bucket
- Sequential topic runs — consecutive commits on the same topic
with no CHANGELOG alignment form their own group. Topics inferred from keywords (alert, packaging, test, events, report, etc.)
- Natural boundaries — start new bucket on phase/feature boundary
or abrupt topic change
- Orphan assignment — unmatched commits go to nearest preceding
bucket, or to [misc] if isolated
Bucket structure:
- Bucket number (sequential)
- CHANGELOG ref (B-label or
[misc]/[tests]) - Commit count
- Anchor commit (oldest =
pick) - Fixup commits (all others =
fixup) - Proposed squash message (from anchor subject or CHANGELOG entry,
using project commit format)
5. Validate Totals
Before presenting:
- Sum of bucket commit counts == total commits in range
- No hash appears in more than one bucket
- No hash is missing from all buckets
If validation fails, report discrepancy and stop.
6. Present Plan
If remote tracking exists, warn about force-push requirement.
If no --apply: stop here with Plan complete. To execute: --apply
If --apply: pause and require user to type "yes, squash" before proceeding to execution.
7. Execute (only after explicit user approval)
- Build rebase sequence:
pickfor anchor,fixupfor rest - Write temporary GIT_SEQUENCE_EDITOR script
- Run:
GIT_SEQUENCE_EDITOR="<script>" git rebase -i "<merge_base>" - Clean up temp script
- Report before/after commit counts, show new log
Rules
- Never execute without explicit user approval — dry-run is default
- Never use interactive `git rebase -i` — always use
GIT_SEQUENCE_EDITOR with pre-computed script
- Never squash across merge commits — detect and abort early
- Never lose commits — validate totals before and after
- Always warn about force-push when remote tracking ref exists
- Use
fixupnotsquash— discard intermediate messages - Proposed messages use the project's detected commit format
- Do not modify CHANGELOG, source files, or any tracked file
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingadapters/claude-plugin/output/skills/r-util-rel-squash/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rfxn/rdf/r-util-rel-squash)