git-commit
Used when committing staged changes. Generates appropriate commit messages and confirms changes before creating commits.
When & Why to Use This Skill
The git-commit skill is an essential utility for developers that automates the version control workflow. By analyzing staged changes and repository history, it generates professional, context-aware commit messages following the Conventional Commits standard. This skill streamlines the development process by handling status verification, diff analysis, and multilingual message generation, ensuring a clean and standardized project history with minimal manual effort.
Use Cases
- Automated Commit Message Generation: Automatically creates descriptive and standardized commit messages (feat, fix, docs, refactor) based on actual code changes, reducing the cognitive load on developers.
- Maintaining Repository Standards: Ensures all team members follow the Conventional Commits format, which facilitates easier debugging, automated changelog generation, and better project maintainability.
- Multilingual Development Support: Intelligently detects the preferred language (such as English or Japanese) from the recent git log to maintain consistency in localized or international project environments.
- Streamlined CLI Workflow: Simplifies the 'git status -> git diff -> git commit' cycle into a single agent-led action, verifying changes before and after the commit to prevent errors.
| name | git-commit |
|---|---|
| description | Used when committing staged changes. Generates appropriate commit messages and confirms changes before creating commits. |
Git Commit
Commit staged changes with appropriate commit messages.
Steps
- Run
git status,git diff --staged, andgit log -5 --oneline - Generate single-line commit message using conventional commit format (feat:, fix:, docs:, refactor:, test:, chore:, etc.)
- Match language (English/Japanese) from recent commit history
- Execute
git commit -m "message" - Verify with
git status