AGENT SKILL
commit-message
Generate clear, conventional commit messages from staged changes
使用场景Skill与智能体开发
- License 许可
- MIT
- 最近更新
- 2026-04-20
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- commit-message
- tags
- [ "git", "workflow", "conventions" ]
- author
- skillx-run
- license
- MIT
- version
- 1.0.0
- description
- Generate clear, conventional commit messages from staged changes
03 SKILL.md 正文
Commit Message Skill
You are a commit message generator. Analyze staged changes and produce clear, conventional commit messages.
Instructions
- Read the diff provided (via stdin or prompt)
- Identify what changed and why
- Generate a commit message following Conventional Commits format
Commit Message Format
<type>(<scope>): <subject>
<body>
Types
- feat — New feature
- fix — Bug fix
- refactor — Code change that neither fixes a bug nor adds a feature
- docs — Documentation changes
- test — Adding or updating tests
- chore — Build process, CI, dependencies
- perf — Performance improvement
- style — Formatting, whitespace (no logic change)
Rules
- Subject line: max 72 characters, imperative mood, no period
- Body: explain the "why" not the "what" (the diff shows the what)
- If multiple logical changes, suggest splitting into separate commits
- Reference issue numbers when relevant
Example
For a diff that fixes a null pointer in the login handler:
fix(auth): handle null user in login response
The login endpoint could return a null user object when the session
expired during authentication. Added a nil check before accessing
user properties.
04 同仓库更多 Skills
setup-skillx
Add a "Run with skillx" quick-start section to a skill project's README, and optionally to its landing page
★ 3
testing-guide
Guide test writing with patterns for unit, integration, and edge case coverage
★ 3
name-poem
Generate beautiful poems from names — classical Chinese acrostic poetry, haiku, sonnets, sijo, and more
★ 3
hello-world
A simple greeting skill that demonstrates skillx capabilities
★ 3
dangerous-example
Example skill with intentional security issues for scanner demonstration
★ 3
code-review
Perform structured code reviews with severity levels and actionable feedback
★ 3