@adonis0123/commit 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# @adonis0123/commit
|
|
2
|
+
|
|
3
|
+
Claude Code 技能 - 根据暂存的代码变更自动生成符合 Conventional Commits 规范的提交信息。
|
|
4
|
+
|
|
5
|
+
## 功能特性
|
|
6
|
+
|
|
7
|
+
- 自动分析 `git diff --cached` 内容
|
|
8
|
+
- 生成符合 Conventional Commits 规范的提交信息
|
|
9
|
+
- 自动添加对应的 emoji 前缀
|
|
10
|
+
- 支持中英文触发命令
|
|
11
|
+
|
|
12
|
+
## 安装
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install -g @adonis0123/commit
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
安装后自动部署到 `~/.claude/skills/commit/`。
|
|
19
|
+
|
|
20
|
+
## 使用方法
|
|
21
|
+
|
|
22
|
+
在 Claude Code 中:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
/commit
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
或直接说:
|
|
29
|
+
- "帮我生成提交信息"
|
|
30
|
+
- "提交代码"
|
|
31
|
+
- "generate commit message"
|
|
32
|
+
|
|
33
|
+
## 提交类型
|
|
34
|
+
|
|
35
|
+
| 类型 | Emoji | 说明 |
|
|
36
|
+
|------|-------|------|
|
|
37
|
+
| feat | ✨ | 新功能 |
|
|
38
|
+
| fix | 🐛 | Bug 修复 |
|
|
39
|
+
| docs | 📝 | 文档变更 |
|
|
40
|
+
| style | 🎨 | 代码风格 |
|
|
41
|
+
| refactor | ♻️ | 代码重构 |
|
|
42
|
+
| perf | ⚡️ | 性能优化 |
|
|
43
|
+
| test | ✅ | 测试相关 |
|
|
44
|
+
| build | 🏗️ | 构建系统 |
|
|
45
|
+
| ci | 👷 | CI 配置 |
|
|
46
|
+
| chore | 🔧 | 其他变更 |
|
|
47
|
+
|
|
48
|
+
## 示例输出
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
✨ feat(auth): add user login feature
|
|
52
|
+
🐛 fix(api): resolve timeout issue in payment endpoint
|
|
53
|
+
📝 docs: update README with installation guide
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 更多技能
|
|
57
|
+
|
|
58
|
+
- [@adonis0123/weekly-report](https://www.npmjs.com/package/@adonis0123/weekly-report) - 周报生成
|
|
59
|
+
- [@adonis0123/agent-browser](https://www.npmjs.com/package/@adonis0123/agent-browser) - 浏览器自动化
|
|
60
|
+
- [@adonis0123/react-best-practices](https://www.npmjs.com/package/@adonis0123/react-best-practices) - React 最佳实践
|
|
61
|
+
- [@adonis0123/skill-development](https://www.npmjs.com/package/@adonis0123/skill-development) - 技能开发指南
|
|
62
|
+
- [@adonis0123/staged-changes-review](https://www.npmjs.com/package/@adonis0123/staged-changes-review) - 代码审查
|
|
63
|
+
- [@adonis0123/create-skill](https://www.npmjs.com/package/@adonis0123/create-skill) - 创建新技能包
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
MIT
|