Skip to content
Agentmart
Submit a tool

commit

Generate conventional commit messages following git-cz style by default (emoji between type and subject).

Skill by zkl2333

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/zkl2333-commit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate conventional commit messages following git-cz style by default (emoji between type and subject). Automatically detects project configuration when present. Use when creating git commit messages with Conventional Commits specification. See references/config-detection.md for supported configurations.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/commit

What's inside

Skill name
commit
Description
Generate conventional commit messages following git-cz style by default (emoji between type and subject). Automatically detects project configuration when present. Use when creating git commit messages with Conventional Commits specification. See references/config-detection.md for supported configurations.
License
MIT
Instructions
105 lines in SKILL.md · view on GitHub

Files (10)

  • LICENSE.txt
  • SKILL.md
  • config-detection.md · references/
  • examples.md · references/
  • spec.md · references/
  • README.md · references/variants/
  • cz-git-emoji.md · references/variants/
  • cz-git-no-emoji.md · references/variants/
  • git-cz-default.md · references/variants/
  • plain.md · references/variants/

SKILL.md (first lines)

# Commit

生成符合 Conventional Commits 规范的提交信息。

## 默认格式

```
<type>[(<scope>)]: <emoji> <subject>
```

**示例**:
```
feat: 🎸 添加用户注册功能
fix(api): 🐛 修复查询参数解析错误
docs: ✏️ 更新 README 安装说明
```

## Commit Type

根据更改内容选择:

- **feat** 🎸: 新功能
- **fix** 🐛: Bug 修复
- **docs** ✏️: 文档更新
- **style** 💄: 代码格式调整(不影响功能)
- **refactor** 💡: 代码重构(不是新功能也不是修复)
- **perf** ⚡️: 性能优化
- **test** 💍: 添加或修改测试
- **chore** 🤖: 构建过程或辅助工具的变更
- **ci** 🎡: CI 配置变更
- **release** 🏹: 创建发布提交

## Scope(可选)

标识 commit 影响的范围,例如:`api`、`auth`、`database`、`ui`

如果 scope 不明显或涉及多个范围,可以省略。

## Description(必填)

- 使用祈使句、现在时态:"添加"不是"添加了"
- 首字母小写
- 不要以句号结尾
- 限制在 50 个字符以内

## Body(可选)

详细描述 what 和 why(不是 how):
- 每行限制在 72 个字符以内
- 使用中文

## Footer(可选)

- 关联 issue: `Closes #123`, `Fixes #456`
- Breaking changes: `BREAKING CHANGE: API endpoint changed`

## 工作流程

1. **检测配置**:查找项目配置文件(见下方)
2. **分析变更**:使用 `git status` 和 `git diff` 查看更改
3. **确定 type**:根据变更性质选择合适的 type
4. **确定 scope**(可选):识别影响范围
5. **编写 description**:简洁描述做了什么
6. **生成 message**:组合成完整的 commit message

## 配置检测

自动检测项目配置以确定正确的格式和 emoji 位置。

### 检测优先级

按顺序查找以下配置文件:

1. **cz-git 配置**:
   - `.commitlintrc.*` / `commitlint.config.*`
   - `.czrc` / `cz.config.*`
   - 读取 `useEmoji` 和 `types`

2. **git-cz 配置**:
   - `changelog.config.js` / `.git-cz.json`
   - 读取 `disableEmoji` 和 `types`

3. **无配置**:使用默认 git-cz 风格

### 格式差异

| 配置 | 格式 | 示例 |
|------|------|------|
| 无配置(默认) | `type: emoji subject` | `feat: 🎸 新功能` |
| cz-git (useEmoji: true) | `emoji type: subject` | `✨ feat: 新功能` |
| cz-git (useEmoji: false) | `type: subject` | `feat: 新功能` |

**详细说明**:[references/config-detection.md](references/config-detection.md)

## 参考资源

- **完整规范**:[references/spec.md](references/spec.md)
- **更多示例**:[references/examples.md](references/examples.md)
- **格式变体**:[references/variants/](references/variants/)
  - [快速对比](references/variants/README.md)
  - [默认格式](references/variants/git-cz-default.md)
  - [cz-git 格式](references/variants/cz-git-emoji.md)
  - [纯文本格式](references/variants/plain.md)

From zkl2333/skills, MIT.

More from zkl2333/skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Jan 14, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from zkl2333

Cite this page

commit skill. Agent Mart. https://agentmart.dev/skills/zkl2333-commit (last updated 2026-10-24)