Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/yangsonhung/awesome-agent-skills/git-commit-only-cnnpx skills add YangsonHung/awesome-agent-skills --skill git-commit-only-cngit clone --depth 1 https://github.com/YangsonHung/awesome-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-commit-only-cn)<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-commit-only-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-commit-only-cn.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00091 | $0.01461 |
| Opus 5 | $0.00046 | $0.00731 |
| Sonnet 5 | $0.00018 | $0.00292 |
| Haiku 4.5 | $0.00009 | $0.00146 |
Grade A, and why
git-commit-only-cn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git 仅提交
Overview
从当前仓库已暂存或用户要求的改动中,创建一个聚焦的本地 Conventional Commit,不推送到任何远端。
默认结果是在当前分支上生成一个提交。需要分析实际 diff,暂存用户要求的改动范围,根据改动内容生成提交信息;对于非简单改动,需要写分段提交正文,让评审者能按主题快速理解改动内容。
这个流程只处理本地提交请求;不推送、不合并分支、不改写历史、不创建 PR、不发布改动。
Conventional Commit 规则
基础格式:
<type>[可选 scope]: <description>
[正文:仅简单改动可省略;非简单改动必须写分段正文]
[footer:破坏性变更必须填写;相关 issue 引用可按需填写]
在本技能中,正文只对简单提交可选。非简单改动必须写分段正文;如果运行了测试、校验、hook 或手动验证,必须包含“测试:”或“验证:”等价分段。
类型:
| Type | 用途 |
|---|---|
feat |
新增用户可见或产品能力 |
fix |
修复 bug |
docs |
仅文档变更 |
style |
不影响逻辑的格式或样式变更 |
refactor |
不新增功能、不修 bug 的代码重构 |
perf |
性能优化 |
test |
测试或覆盖率变更 |
build |
构建系统、依赖或打包变更 |
ci |
CI 或自动化配置变更 |
chore |
维护或杂项变更 |
revert |
回滚历史提交 |
破坏性变更:
- 在 type 或 scope 后使用
!,例如feat(api)!: 移除旧字段。 - 行为契约发生变化时,在 footer 中加入
BREAKING CHANGE:。
提交信息风格:
- 使用仓库既有的提交语言。
- 标题使用现在时和祈使语气,例如
fix login redirect或修复登录跳转。 - 标题尽量控制在 72 个字符以内。
- 相关时在正文或 footer 中引用 issue,例如
Closes #123或Refs #456。
何时使用
当用户要求执行以下操作时使用本技能:
- 只提交当前工作,不推送。
- 将 staged 和 unstaged 改动整理为一个本地提交。
- 用 Conventional Commit 信息把当前工作保存到本地。
- 提交正文需要按功能区、界面区、测试、文档或校验结果分段说明。
不要使用
以下场景不要使用本技能:
- 提交并推送请求;请使用
git-pushing-fast。 - 需要将工作分支合并到主分支的双分支流程。
- 强制推送、rebase、squash、amend 或改写历史。
- 创建 Pull Request、发布说明、周报或 changelog 生成。
git reset --hard、git checkout -- <file>等破坏性命令。
使用说明
按以下流程顺序执行。目标仓库或用户要求的提交范围不明确时,停止并说明阻塞原因,不要猜测执行。
-
检查仓库状态。
- 运行
git status --short和git branch --show-current。 - 先看暂存区统计和实际内容:
git diff --cached --stat与git diff --cached;如果没有暂存改动,再看git diff --stat与git diff。 - 需要脚本友好地解析状态时,使用
git status --porcelain。 - 不得丢弃或回滚用户改动。
- 运行
-
暂存改动。
- 用户要求提交全部改动时,执行
git add -A。 - 用户指定更小范围时,只暂存指定范围。
- 仅当用户要求的范围需要逻辑分组时,使用指定文件、路径模式或
git add -p。 - 重新运行
git status --short,确认目标文件已经暂存。 - 禁止让已知密钥文件留在待提交暂存区,包括
.env、凭证文件、私钥或 token。
- 用户要求提交全部改动时,执行
-
生成提交信息。
- 使用 Conventional Commits:
type(scope): 中文摘要。 - 根据实际 diff 选择 type 和 scope,不得只根据文件名判断。
- 对非简单改动,提交正文必须包含 2-5 个简短分段。
- 分段标题命名受影响区域,下面用列表说明具体变化。
- 如果运行了测试、校验、hook 或手动验证,需要加入“测试:”或“验证:”分段。
- 使用 Conventional Commits:
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 132 lines · 91 tokens per session scan A b5b03a3a7bdb
git-commit-only-cn is a skill published in the GitHub repository YangsonHung/awesome-agent-skills (18 stars, last pushed 28d ago), licensed MIT. It adds 91 tokens to every session and 1,461 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
ship
Commit, push, and optionally create or update a PR for the current staged changes. Use when the user asks to "ship", "ship it", "ship changes", "commit push and PR", or "ship this".
branch-and-worktree-workflow
Isolates feature work in its own branch or worktree and integrates it cleanly when done. Use this when starting work that should not disturb the current workspace, when several efforts must proceed in parallel on one repository, or when implementation is finished and the change needs merging, rebasing, or splitting…
stage
Stage implementation changes for commit with precise file selection. Use when the user asks to "stage changes", "stage files", "add files to staging", or "prepare changes for commit".
vastai-sdk
Vast.ai Python SDK — high-level API for GPU instances, volumes, serverless endpoints, and billing.
semantic-szz-analyzer
Identify bug-introducing commits using semantic analysis that extends traditional SZZ algorithm. Distinguishes semantic changes from refactorings or code movements using control-flow and data-flow similarity analysis. Use when analyzing bug-fix commits to trace back to bug-introducing changes, investigating software…
szz-bug-introducing-commit-identifier
Identifies bug-introducing commits using SZZ-style analysis based on bug-fixing commits, commit history, and code blame information. Use this skill when you need to trace bugs back to their origin, identify which commits introduced bugs, analyze bug-fix commits to find root causes, perform software repository mining…