What problem does it solve?
Many commit messages are written from memory or guesswork and do not reflect the actual staged changes; this leads to unclear history and lowers code review quality. This Skill enforces a repeatable checklist that reads git config and staged diffs, determines type and scope, composes a formatted message, and requires explicit user confirmation before committing.
Core Features & Use Cases
- Diff-first commit generation: Mandatory inspection of git diff --staged to derive the commit title, type, and scope.
- Five-step guarded workflow: Automatic checks for Author info, staged content, type/scope analysis, user confirmation, and safe commit execution via HEREDOC.
- Conventional format & team rules: Produces a standardized commit header, a Chinese explanatory body, and an Author line while forbidding AI signatures or appended metadata.
- Use Case: Prepare a release or bugfix commit where accuracy and auditability of the commit message are required for code review and changelogs.
Quick Start
Use the git-commit-standards skill to read the staged diff, generate a formatted commit message based on the changes, and request your confirmation before executing the commit.