Create a git commit from already-staged files without changing the index. Use when the user wants to commit what is currently staged, especially when they ask to commit staged changes, create a commit message, or follow Angular commit conventions.
Create a commit from the current git index only. Do not stage, unstage, or modify files as part of this skill.
git diff --cached to inspect the staged changes.git branch --show-current to check whether the branch name contains a ticket identifier such as MP-1234.git commit -m using only the staged changes.If there are no staged changes, stop and tell the user that there is nothing to commit.
Write the commit message in Angular-style format.
feat, fix, docs, style, refactor, test, chorefeat(MP-1234):Co-Authored-ByChoose the type that best matches the staged diff.
feat for new user-facing behaviorfix for bug fixes or correctness changesdocs for documentation-only changesstyle for formatting-only changes with no behavior impactrefactor for structural changes without user-visible behavior changestest for test-only changeschore for maintenance work that does not fit the other typesPrefer a short subject that describes the primary change. Add a body only for non-obvious context such as why the change was needed, important constraints, or grouped changes that need one sentence of explanation.