Commit
Inspect and commit pending repository work, including changes made by another agent, using a precise message derived from the final diff and the user's intent. Use when the user says commit, `$commit`, `/commit`, asks to commit uncommitted changes, or provides commit-message guidance; detect GitButler workspaces and route changes to the correct virtual branch, asking for clarification when branch ownership is ambiguous.From its SKILL.md
npx -y skills add kamaal111/kamaal-super-mind --skill commitAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.1 KB, as published. Nobody here has run it
Commit Pending Work
Commit the requested work after inspecting the actual diff. Do not push, publish, or include unrelated changes.
Workflow
-
Read repository instructions. Inspect:
git status --short --branch,git diff,git diff --cached, recent commits, and untracked files. -
Detect GitButler without invoking
but: check for the local branchgitbutler/workspacewithgit show-ref --verify --quiet refs/heads/gitbutler/workspace. If it is absent, use plain Git. Do not runbut status,but setup, or another setup-triggering command just to detect GitButler.- Plain Git: commit all pending work by default. If the user names files or a subset, commit only that scope. Stop if the scope contains credentials, private keys, generated secrets, or unrelated work.
- GitButler: after the marker check succeeds, load
gitbutler-cliandgitbutler-session-commit. Usebut branch listto resolve the target. Follow an explicitly named branch or commit. Otherwise, use the latest real commit on the only applied branch. If multiple branches or possible targets remain, ask the user which one to use. Keep unassigned changes out unless the user clearly includes them.
-
Understand the resolved final diff. Check that it is one coherent change and that the tests or checks relevant to it are known. Do not rewrite or discard unrelated work to make a commit possible.
-
Load
git-commit-message. Give it the final diff, the user's intent, and any requested wording. Use its resulting title, body, trailer, and line length rules. -
Run the narrowest relevant checks when practical. Stage only the resolved scope, then inspect the staged diff and status again.
-
Commit through the repository's mode:
- Plain Git: use
git addandgit commit. - GitButler: use
but stageandbut commit <branch> --only.
In GitButler, never use plain-Git commit, rebase, checkout, reset, or history-rewrite commands.
- Plain Git: use
-
Verify the created commit and confirm no requested changes remain. Report the commit, branch, scope, message summary, and checks performed.
Boundaries
- A commit request authorizes creating the commit only. Do not push, open a pull request, land a branch, delete work, or rewrite other history.
- Preserve changes you did not make unless the user explicitly includes them.
- If the target, scope, ownership, or repository state is ambiguous, ask before mutating anything.
- If a commit fails or conflicts, preserve the state and report the exact condition; do not improvise a reset.
- After an explicitly requested commit succeeds, the final response must contain only the exact commit title and description used.