Awesome-omni-skill commit
Use when the user wants to commit, save changes, create a conventional commit, amend a commit, make a fixup commit, or squash commits.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/commit-luan" ~/.claude/skills/diegosouzapw-awesome-omni-skill-commit-2fb4b1 && rm -rf "$T"
manifest:
skills/tools/commit-luan/SKILL.mdsource content
Commit
Create conventional commits explaining WHY changes were made.
Context
Status: !
git status -sb 2>/dev/null
Staged diff: !git diff --cached --stat 2>/dev/null
Recent commits: !git log --oneline -5 2>/dev/null
Main thread / foreground only. Workers never commit — they lack full-branch context to write meaningful messages.
Steps
-
Analyze: review context above. If nothing staged, read full
. If staged, readgit diff
for details.git diff --cached -
Message: conventional commit format —
, max 72 chars, lowercase, no period, imperative mood. Types: feat|fix|perf|docs|test|style|build|ci|chore|revert. Scope: primary area or omit if global. Multi-line: blank line then body wrapping at 72 chars explaining motivation not mechanics. If task active (TaskList, filter by project + status=in_progress), append ID:type(scope): descriptionfix(auth): handle token expiry (task-<id>) -
Execute using HEREDOC for clean formatting:
git commit -m "$(cat <<'EOF' type(scope): description EOF )"
Post-commit
- Plan archive: after successful commit, archive active plans.
returns array ofct plan list --json
— iterate and archive each:{name, path}
Skip silently if no active plans or ct not available.ct plan list --json # For each entry: ct plan archive <path>
If gt plugin is loaded → suggest
/gt:submit. Otherwise → suggest git push.
Hook Failures
Two scenarios require different recovery:
- Hooks modify files (formatters, auto-fixers): stage changes and amend —
. Safe because the commit already landed; amend just includes the formatter's tweaks.git add -u && git commit --amend --no-edit - Hooks reject the commit (lint errors, test failures): show the error, explain the issue, suggest a fix. Do NOT retry automatically — let user decide. After fix, create a NEW commit (don't amend — the original commit never landed, so amend would modify the wrong commit).
Special Ops
- Amend (
): analyze previous commit + new changes, update message if scope changed. Use--amend
only when new changes don't alter the commit's purpose.--no-edit - Fixup (
): correction targeting a specific earlier commit. User must rebase to squash later.--fixup=<SHA> - Squash: combine multiple commits — unify message around primary purpose, not a laundry list.
Edge Cases
- Nothing staged → ask "Stage all changes?" (all vs tracked vs select)
- Multiple unrelated changes → use
to separate/split-commit - Clean tree → "No changes to commit"