git-commit
SolidGenerate a commit message from staged changes
AI & Automation 148 stars
60 forks Updated today Apache-2.0
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Git Commit
Generate a well-structured conventional commit message from the currently staged changes.
## Instructions
1. Run `git diff --cached` to retrieve the staged changes. If nothing is staged, inform the user and stop.
2. Run `git diff --cached --stat` to get a summary of files changed, insertions, and deletions.
3. Analyze the changes to determine:
- **Type**: feat (new feature), fix (bug fix), refactor (restructuring), docs (documentation), chore (maintenance), test (adding/updating tests), style (formatting), perf (performance), ci (CI config).
- **Scope**: The module, component, or area affected (optional, use when it adds clarity).
- **Subject**: A concise imperative description of what changed (max 72 characters).
4. If the changes are significant or span multiple concerns, write a body paragraph explaining:
- Why the change was made
- Any notable decisions or trade-offs
- Breaking changes (prefix with BREAKING CHANGE:)
5. Format the message as:
```
type(scope): subject
Optional body explaining why, not what.
```
6. Check the project's recent `git log --oneline -10` to match existing commit style conventions.
7. Present the generated message to the user for approval before committing.
Details
- Author
- prapaa-ai
- Repository
- prapaa-ai/agav
- Created
- 1 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- Apache-2.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Listed
git-commit
Generates one conventional commit message from the staged changes and commits them exactly as staged, so a hunk-level selection survives. Use when asked to "commit this" or "commit the staged changes" and the staged set covers one concern, or whenever the selection was staged hunk by hand. Do NOT use when the staged changes span several concerns and need separate commits. That is `git-stage`.
2 Updated 2 weeks ago
erclx Code & Development Listed
git-commit-writer-free
Generate conventional commit messages from staged git changes. Use when the user asks to write commit message, generate commit, what should my commit say, or after the user runs git add and wants a commit message for staged files.
1 Updated 5 days ago
justhandledlabs