home / skills / protagonistss / ithinku-plugins / commit
This skill analyzes code changes and generates conventional commit messages, performs quality checks, and creates clean, standardized commits.
npx playbooks add skill protagonistss/ithinku-plugins --skill commitReview the files below or copy the command above to add this skill to your agents.
---
name: commit
description: 智能代码提交技能 - 分析变更并生成规范提交信息。用于分析代码变更、生成符合规范的提交信息、执行质量检查或创建提交。
disable-model-invocation: false
argument-hint: [analyze|check|create]
---
# Skill: Commit
智能代码提交技能 - 分析变更并生成规范提交信息。用于分析代码变更、生成符合规范的提交信息、执行质量检查或创建提交。
## 核心功能
- 📊 **变更分析** - 识别文件类型和影响范围
- 🏷️ **类型检测** - 自动识别 feat/fix/docs 等类型
- 📍 **Scope识别** - 自动确定变更模块
- 📝 **信息生成** - 生成符合规范的提交信息
- ✅ **质量检查** - 检查敏感信息、TODO等
- 🚫 **纯净提交** - 绝不添加 AI 工具标识,保持提交历史专业
## 快速使用
```bash
# 分析并生成提交信息
/ct analyze
# 执行质量检查
/ct check
# 一键提交
/ct create
```
## 配置
```json
{
"commit": {
"messageFormat": "conventional",
"qualityChecks": true,
"autoScope": true
}
}
```
## 详细信息
- 🔗 [提交类型配置](../../references/config/commit-types.md)
- 🔗 [Git 工具函数](../../references/utils/git-helpers.md)
- 🔗 [错误处理](../../references/errors/error-types.md)This skill analyzes code changes and generates clean, conventional commit messages. It identifies change types and scopes, runs quality checks for sensitive content and TODOs, and can create commits without adding AI tool signatures to history. The goal is reliable, professional commit messages that fit team rules.
The skill scans the diff to detect changed files, file types, and affected modules to infer scope. It classifies the change as feat/fix/docs/etc., composes a conventional-format message, and optionally runs configured quality checks. When requested, it can execute a commit using the generated message while ensuring no AI footprint is inserted.
Which commit message formats are supported?
Conventional format is supported by default; configuration allows other formats via messageFormat.
Will the skill add AI tool identifiers to commit history?
No. The skill is designed to never inject AI tool signatures or metadata into commits.