Git commit formatter

From einverne/dotfiles · View interactive version

Git commit formatter is an AI agent skill from the GitHub repository einverne/dotfiles. 生成符合 Conventional Commits 规范的 Git 提交信息。当用户要求生成提交、创建 commit 或写提交信息时使用

How to use this skill

Skill file

Git 提交信息格式化器

任务说明

分析暂存区的代码变更,生成符合 Conventional Commits 规范的提交信息。

规范说明

提交信息格式:<type>(<scope>): <subject>

类型定义:

执行步骤

  1. 运行 git diff --cached 查看暂存的变更
  2. 分析文件变更,识别主要修改类型
  3. 确定影响范围(scope)
  4. 生成简洁的主题(subject),限制在 50 字符内
  5. 如有重大变更,添加 BREAKING CHANGE 说明

质量标准

必须遵守:

示例输出

feat(auth): 实现 JWT 令牌认证

- 添加 JWT 生成和验证逻辑
- 实现令牌刷新机制
- 添加相关单元测试
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.