Loading...
Loading...
Commit Message Specification. Generate commit messages compliant with Conventional Commits based on staged changes, support Chinese descriptions, and automatically handle types, scopes, and breaking changes. Use to write standardized commit messages from staged git changes.
npx skill4agent add laffey-82/cn-agent-skills commit-message-writergit status
git diff --cached --stat # Overview of staged changes
git diff --cached # Detailed changesgit add| Type | Meaning |
|---|---|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation |
| style | Formatting (no impact on logic) |
| refactor | Refactoring (no change in behavior) |
| perf | Performance optimization |
| test | Testing |
| build | Build/dependencies |
| chore | Chores |
| revert | Revert |
feat(auth): add login interface<type>(<scope>): <subject>
<body(optional)>
<footer(optional, such as BREAKING CHANGE)>BREAKING CHANGE:git commit -m "<subject>" -m "<body>"git add src/login.py tests/test_login.pyfeat(auth): add username-password login interface
- Use bcrypt to verify passwords
- Return JWT on successful login, 401 on failure
- Add unit tests for login interfacefix(cart): fix incorrect calculation of cart discount amount
The discount was overcalculated by 1 cent after rounding. Changed to calculate first then round.feat(api): remove v1 login interface
BREAKING CHANGE: v1 /login interface has been removed, please migrate to v2 /login.git add -A
python scripts/commit_message_gen.pygit commit<type>: <subject>git diff