git-commit SKILL.md skillA
git-commit from huangwb8/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add huangwb8/skills/git-commit@git:20260905.a346b91Pins git:20260905.a346b91 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- huangwb8/skills
- Path
skills/alpha/git-commit/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260905.a346b91, committed Sep 5, 2026
- First version recorded
- Aug 25, 2026
- Size
- 15,576 bytes
- Repository stars
- 50
- License
- MIT
当用户明确要求"提交 Git 改动"、"生成 commit 信息"或"创建 git commit"时使用。仅用 Git 分析改动并自动生成 conventional commit 信息(可选 emoji);必要时建议拆分提交,默认运行本地 Git 钩子(可 --no-verify 跳过),提交后默认自动 push(可 --no-push 跳过)。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Git Commit
## 目标
当用户明确要求"提交 Git 改动"、"生成 commit 信息"或"创建 git commit"时使用。仅用 Git 分析改动并自动生成 conventional commit 信息(可选 emoji);必要时建议拆分提交,默认运行本地 Git 钩子(可 --no-verify 跳过),提交后默认自动 push(可 --no-push 跳过)。
## 流程
### 输入
#### 触发场景
- 用户要提交代码改动
- 需要生成符合规范的提交信息
- 需要判断是否应该拆分提交
- 需要包含 emoji 的提交信息
### 执行步骤
#### 工作模式
本技能支持两种工作模式:
| 模式 | 触发方式 | 行为特征 |
|------|----------|----------|
| **自动模式** | 默认(无参数) | AI 自主决策所有步骤:自动暂存、自动拆分、直接提交 |
| **审核模式** | `--review` 参数 | 在关键决策点暂停,等待用户确认暂存方式、拆分建议、提交信息 |
**默认使用自动模式**,因为大多数情况下 commit 的顺利提交比内容本身更重要;如不满意可直接回退。
#### 工作流程
##### 1. 仓库/分支校验
- 通过 `git rev-parse --is-inside-work-tree` 判断是否位于 Git 仓库
- **如不在 Git 仓库**:提示 `git init` 初始化仓库后继续
- 读取当前分支/HEAD 状态:
- **如处于 detached HEAD 状态**:提示风险并确认是否继续
- 检测方法:`git rev-parse --symbolic-full-name HEAD` 返回 `HEAD`
- 提示内容:"⚠️ 当前处于 detached HEAD 状态,提交将不属于任何分支。建议先创建分支(`git switch -c <branch-name>`)或切换到现有分支(`git switch <branch-name>`)"
- **如处于 rebase/merge 冲突状态**:给出明确指导
- **检测到 Git 冲突**:当前处于 rebase/merge 冲突状态,请先处理冲突:
1. 查看冲突文件:`git status`
2. 解决冲突(编辑标记为 `<<<<<<<` 的文件)
3. 标记冲突已解决:`git add <冲突文件>`
4. 继续 rebase/merge:`git rebase --continue` 或 `git merge --continue`
…Read the whole file at its exact version.
How to install
mdr add huangwb8/skills/git-commit@sha256:f62b2469167301adThe line at the top of this page pins the label git:20260905.a346b91, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_5lffpuznc5lgzwtg)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 25, 2026 and Sep 5, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260905.a346b91 latest | 2026-09-05 | a346b91 | 15,576 B | A | view · diff |
| git:20260905.7c0ea7c | 2026-09-05 | 7c0ea7c | 15,537 B | A | view · diff |
| git:20260905.8faacfe | 2026-09-05 | 8faacfe | 15,043 B | A | view · diff |
| git:20260905.a39953d | 2026-09-05 | a39953d | 14,143 B | A | view · diff |
| git:20260825.4f192d9 | 2026-08-25 | 4f192d9 | 13,126 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (15576 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
huangwb8/skills · 50 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_5lffpuznc5lgzwtg GET https://markdownregistry.com/api/v1/resolve?ref=huangwb8/skills/git-commit GET https://markdownregistry.com/api/v1/blob/f62b2469167301ad62ac023741326adeaf041d05dea508a57cda5fb92c2101d2
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.