trae-community/trae-skills/git-commit-generator
Claude Code and agent skill by trae-community/trae-skills
- community
Checking that the SKILL.md file is still in the repository.
Generate clear, standardized git commit messages based on code changes (diffs), following Conventional Commits specification.
Install
npx vskill@latest install trae-community/trae-skills/git-commit-generatorSKILL.md
The same SKILL.md was published earlier as trae-community/trae-skills/git-commit-generator.
Git Commit Generator
Description
This skill analyzes code changes (git diffs) and generates semantic, structured commit messages. It ensures that commit messages are concise, descriptive, and follow the Conventional Commits standard (e.g., feat:, fix:, docs:).
Usage Scenario
Trigger this skill when:
- The user asks to "write a commit message" or "generate a commit".
- The user asks "what did I change?" and expects a summary suitable for a commit.
- You need to propose a commit message for a set of changes you just made.
Instructions
- Analyze the Changes:
- Read the provided
git diffor the changes in the current context. - Identify the scope of changes (e.g., specific component, file, or module).
- Determine the type of change: Refer to
resources/conventional-commits-types.mdfor the strict definition of types (feat, fix, docs, etc.).
- Formulate the Commit Message:
- Follow the structure defined in
templates/commit-message.txt. - Subject Line:
- Format:
<type>(<scope>): <subject> - Use imperative mood ("add" not "added", "change" not "changes").
- No period at the end.
- Keep it under 50 characters if possible.
- Body (Optional but recommended for non-trivial changes):
- Separate from subject with a blank line.
- Explain what and why vs. how.
- Use bullet points for multiple changes.
- Output Format:
- Provide the commit message in a code block.
- If there are multiple logical changes, suggest splitting them into multiple commits or provide alternative messages.
Examples
Example 1: Simple Documentation Update
Input: User: "Write a commit message for these changes." Diff:
Output:
Example 2: Feature with multiple files
Input: User: "Commit these changes for the login button." Diff shows changes in src/components/Button.tsx (added isLoading prop) and src/views/Login.tsx (passed loading state).
Output:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-commit-generator/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/trae-community/trae-skills/git-commit-generator)