How this skill is triggered — by the user, by Claude, or both
Slash command
/mella:commitThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create git commits with optional intelligent grouping of changes.
Create git commits with optional intelligent grouping of changes.
/mella:commit - Standard commit (like /commit-commands:commit)/mella:commit group - Analyze and group changes into logical commits/mella:commit pr - Commit and use existing PR (or ask to create one)/mella:commit push - Commit and push to current branch/mella:commit push origin/feature-branch - Commit and push to specific branch/mella:commit group pr push - Combine all optionsWhen this command is executed, follow these steps based on the arguments:
Check $ARGUMENTS for the following flags:
group - Enable intelligent grouping of commitspr - Handle pull request (check if exists, or ask to create)push - Push commits after creating them (optionally to a specific branch)Parse the branch name for push by extracting any argument that comes after the word "push" in $ARGUMENTS.
If no arguments provided, execute the standard commit workflow:
git status to see all untracked filesgit diff to see staged and unstaged changesgit log -5 --oneline to understand commit message stylegit addgit status after commit to verifyIf group argument is provided, execute the intelligent grouping workflow:
Analyze all changes:
git status to see all files (staged and unstaged)git diff HEAD to see all changes from HEADCategorize and group files:
For each group, create a separate commit:
git add <files>After all groups are committed:
git log --oneline -n <number> to show all commits createdgit status to verify all changes were committedIf pr argument is provided:
Check current branch:
git rev-parse --abbrev-ref HEAD to get the current branch nameCheck if PR exists:
gh pr view --json number,title,url for the current branchIf no PR exists:
AskUserQuestion to ask the user: "No PR found for this branch. Do you want to create one?"PR Creation (if requested):
gh pr create --fill to create the PRIf push argument is provided:
Determine target branch:
$ARGUMENTSgit push origin HEAD:<specified-branch>git pushPush after commits:
Handle push errors:
git push -u origin <branch> for new branches)--amend, --force, or other destructive operationsgroup, pr, and push can be used together in any combinationGiven these changes:
package.json (added new dependency)composer.json (updated PHP packages)src/Controllers/UserController.php (added authentication)src/Middleware/AuthMiddleware.php (new file)tests/AuthTest.php (new tests)Group them as:
package.json, composer.json -> "Update dependencies"src/Controllers/UserController.php, src/Middleware/AuthMiddleware.php -> "Add authentication middleware"tests/AuthTest.php -> "Add authentication tests"group when you have mixed changes that would benefit from separate commitspr to automatically handle PR creation after committingpush to push commits immediately after creating them/mella:commit group pr pushnpx claudepluginhub cjmellor/mella-marketplace --plugin mellaGroups related file changes, auto-generates branch names and commits, then offers streamlined push and PR creation.
Groups unstaged git changes into atomic commits by logical concern, one per type (feature, test, config, formatting, docs), then pushes.
Organizes git workspace changes into clean, atomic commits following conventional formats. Activates after features, refactors, or explicit commit requests.