AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Git Commit Cn

skill-nanami7777777-chinese-fullstack-skills-git-commit-cn · by nanami7777777

Use this skill when writing git commit messages or generating changelogs. It enforces Conventional Commits format with Chinese scope descriptions, provides templates for common commit types, and generates structured commit messages from code diffs. Triggers on git commit, changelog generation, or version release tasks.

No reviews yet
0 installs
20 views
0.0% view→install

Install

$ agentstack add skill-nanami7777777-chinese-fullstack-skills-git-commit-cn

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-nanami7777777-chinese-fullstack-skills-git-commit-cn)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Git Commit Cn? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Git 提交信息规范

核心规则

每次提交必须遵循 Conventional Commits 格式:

(): 

type 必须是以下之一

| type | 含义 | 示例 | |------|------|------| | feat | 新功能 | feat(用户): 添加手机号登录 | | fix | 修复 bug | fix(订单): 修复金额计算精度丢失 | | docs | 文档变更 | docs: 更新 API 接口文档 | | style | 代码格式(不影响逻辑) | style: 统一缩进为 2 空格 | | refactor | 重构(不是新功能也不是修 bug) | refactor(支付): 抽取公共支付逻辑 | | perf | 性能优化 | perf(列表): 虚拟滚动优化长列表渲染 | | test | 测试相关 | test(用户): 补充注册接口单元测试 | | chore | 构建/工具/依赖变更 | chore: 升级 vite 到 5.x | | ci | CI/CD 配置 | ci: 添加 GitHub Actions 自动部署 | | revert | 回滚 | revert: 回滚 feat(用户): 添加手机号登录 |

scope 用中文业务域

scope 描述影响范围,用中文业务域名称,不用文件名:

✓ feat(用户): 添加头像上传功能
✓ fix(订单): 修复取消订单后库存未恢复
✓ feat(权限): 支持按钮级别权限控制
✗ feat(src/views/user): 添加头像上传功能    ← 不要用文件路径
✗ feat(UserAvatar.vue): 添加头像上传功能    ← 不要用文件名

常见 scope:用户订单支付商品权限通知搜索报表设置

无明确业务域时可省略 scope:docs: 更新部署文档

subject 规则

  • 用中文,不超过 50 个字符
  • 不加句号
  • 用祈使语气:"添加"而非"添加了"
  • 说清楚做了什么,不要写"修改代码"、"更新文件"这种废话
✓ feat(购物车): 支持批量删除商品
✓ fix(登录): 修复验证码倒计时结束后按钮未恢复
✗ fix(登录): 修复了一个 bug          ← 没说修了什么
✗ feat: 更新代码                     ← 废话
✗ fix: 改了点东西                    ← 废话

body 什么时候写

以下情况必须写 body:

  1. 破坏性变更 — 说明什么变了、为什么变、怎么迁移
  2. 复杂修复 — 说明根因是什么、为什么这样修
  3. 重要决策 — 说明为什么选择这个方案而不是其他方案
fix(订单): 修复并发下单时库存扣减不一致

根因:多个请求同时读取库存后各自扣减,导致超卖。
方案:改用数据库乐观锁(version 字段),扣减时检查版本号。
放弃方案:Redis 分布式锁(引入额外依赖,且单点故障风险)。

影响范围:order_service.go 的 CreateOrder 方法。

footer 什么时候写

# 关联 issue
fix(支付): 修复微信支付回调签名验证失败

Closes #142

# 破坏性变更
feat(API): 用户列表接口返回格式变更

BREAKING CHANGE: GET /api/users 返回格式从数组改为分页对象
迁移方式:将 response.data 改为 response.data.list

从 diff 生成 commit message 的决策逻辑

当需要根据代码变更生成 commit message 时,按以下步骤判断:

  1. 判断 type
  • 新增了用户可感知的功能 → feat
  • 修复了已有功能的问题 → fix
  • 只改了代码结构没改行为 → refactor
  • 只改了测试 → test
  • 只改了文档 → docs
  • 只改了构建/依赖 → chore
  1. 判断 scope
  • 看改动涉及哪个业务模块
  • 如果跨多个模块,用最主要的那个
  • 如果是基础设施变更,省略 scope
  1. 写 subject
  • 从用户/调用方的角度描述变更效果
  • 不要描述实现细节(那是 body 的事)
  1. 判断是否需要 body
  • 改动超过 100 行 → 写
  • 修复了一个不明显的 bug → 写根因
  • 有多种方案可选 → 写为什么选这个

不要做的事

  • 不要一个 commit 里混多种不相关的改动
  • 不要把 console.log 调试代码提交上去
  • 不要提交 .env 文件或任何密钥
  • 不要用 git add . 然后盲目提交,先 git diff --staged 看一眼
  • 不要写英文 commit message 然后用翻译工具翻成中文(语感不对)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.