技能 编程开发 生成规范式提交信息

生成规范式提交信息

v20260730
commit
本工具用于为已暂存的更改生成符合规范的提交信息。它指导用户遵循“规范式提交”(Conventional Commits)的最佳实践,涵盖了功能类型、范围、主体、正文和页脚等所有要素,确保项目历史记录清晰、可追溯和高度可维护。
获取技能
404 次下载
概览

Conventional Commit

Generate a conventional commit message for staged changes.

Instructions

  1. Run git diff --cached to see staged changes
  2. Analyze the nature of changes
  3. Generate a commit message following the format below

Commit Format

<type>(<scope>): <subject>

[optional body]

[optional footer]

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation only
  • style: Formatting, missing semicolons, etc.
  • refactor: Code change that neither fixes nor adds feature
  • perf: Performance improvement
  • test: Adding missing tests
  • chore: Maintenance tasks

Rules

  • Subject: imperative mood, no period, max 50 chars
  • Body: explain WHAT and WHY, not HOW
  • Footer: breaking changes, issue references

Examples

feat(auth): add password reset functionality

Implement password reset flow with email verification.
Users can now request a reset link and set new password.

Closes #123
fix(api): prevent race condition in order processing

Add mutex lock to ensure orders are processed sequentially.
This fixes duplicate charge issues reported by users.

Fixes #456
refactor(cart): extract pricing logic to separate module

No functional changes. Improves testability and
separates concerns for future discount feature.

Execution

After analyzing staged changes, suggest a commit message. Ask for confirmation before executing git commit -m "...".

$ARGUMENTS

信息
Category 编程开发
Name commit
版本 v20260730
大小 1.68KB
更新时间 2026-08-04
语言