Squash all commits in a feature branch into a single commit with an AI-generated summary message. Use when the user wants to clean up their git history before merging, combine multiple commits, or create a single commit from a feature branch.
Squash all commits in a feature branch into a single commit with an AI-generated summary message. Use when the user wants to clean up their git history before merging, combine multiple commits, or create a single commit from a feature branch.
/plugin marketplace add mixomat/claude-plugins/plugin install git-workflow@mixomat-claude-pluginsThis skill is limited to using the following tools:
Squash all commits in a feature branch into a single commit with a well-structured, AI-generated commit message.
First, perform these safety checks:
Check for uncommitted changes:
git status
Get current branch name:
git branch --show-current
Create backup branch:
git branch backup/<current-branch-name>-$(date +%Y%m%d-%H%M%S)
Auto-detect the base branch by checking which exists (in priority order):
mainmasterdevelopCheck each with:
git rev-parse --verify <branch-name> 2>/dev/null
If none exist, ask the user to specify the base branch.
Parse the current branch name to determine the commit type prefix:
Priority 1: JIRA Ticket Pattern
<prefix>/<TICKET-NUMBER> or <prefix>/<TICKET-NUMBER>-descriptionfeature/TVFUS-12345, fix/JIRA-999-bug-fix^(feature|chore|fix)/([A-Z]+-\d+)TVFUS-12345:)Priority 2: Branch Prefix Mapping
feature/ → feat:chore/ → chore:fix/ → fix:Fallback:
Gather comprehensive information about all changes:
Get commit history:
git log <base-branch>..HEAD --oneline
git log <base-branch>..HEAD --format="%B"
Get code changes:
git diff <base-branch>...HEAD --stat
git diff <base-branch>...HEAD
Analyze the changes:
Create a commit message in this exact format:
<commit-type>: A brief summary line of the change
- functional change 1
- functional change 2
- functional change 3
Guidelines:
First line (summary):
Blank line: Required separator between summary and body
Body (bullet points):
Example:
feat: Add user profile management
- Add user profile page with editable fields
- Implement avatar upload functionality
- Add email verification workflow
- Include profile deletion with confirmation dialog
Example with JIRA ticket:
TVFUS-12345: Implement shopping cart feature
- Add cart UI with item list and quantity controls
- Implement cart persistence across sessions
- Add checkout button with price calculation
- Include empty cart state with call-to-action
Show the user:
Use the AskUserQuestion tool to present choices to proceed:
Question: Proceed with this commit message?
DO NOT proceed without the confirmation by the user.
Once the user approves the commit message:
Perform the squash:
git reset --soft <base-branch>
git commit -m "<approved-message>"
Note: Use a heredoc for multi-line messages:
git commit -m "$(cat <<'EOF'
<approved-message>
EOF
)"
Verify success:
git log --oneline -5
Inform the user:
If any command fails:
Branch: feature/TVFUS-12345-user-auth
Base: main
Commits: 8
Generated message:
TVFUS-12345: Add user authentication system
- Add login and registration forms
- Implement JWT-based authentication
- Add password reset functionality
- Include session management with auto-refresh
Branch: fix/navbar-mobile
Base: main
Commits: 3
Generated message:
fix: Resolve navigation menu issues on mobile
- Fix hamburger menu not closing after selection
- Correct menu positioning on small screens
- Add smooth scroll behavior to anchor links
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.