git-stepwise-commit-cn

git-stepwise-commit-cn is a skill for Claude Code, Codex from YangsonHung/awesome-agent-skills. It costs 47 tokens per session (2,452 once invoked), scanned A, original, MIT.

A Git workflow for organizing authorized changes into several focused commits, with rules for grouping related files and keeping commit titles consistent.

In plain words
What is it for?
Use it when planning or making split commits by technical boundary, service, module, or purpose, including requests to commit and push. It is not for push-only work, history rewriting, or an explicitly single commit.
Why use it?
It makes a large or mixed change easier to review, undo, and understand than one commit containing unrelated work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when planning or making split commits by technical boundary, service, module, or purpose, including requests to commit and push. It is not for push-only work, history rewriting, or an explicitly single commit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yangsonhung/awesome-agent-skills/git-stepwise-commit-cn
Install

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.

Any agent
npx skills add YangsonHung/awesome-agent-skills --skill git-stepwise-commit-cn
Clone the repo
git clone --depth 1 https://github.com/YangsonHung/awesome-agent-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for git-stepwise-commit-cn

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-stepwise-commit-cn/github.svg)](https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-stepwise-commit-cn)
Your own site
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-stepwise-commit-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-stepwise-commit-cn/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-stepwise-commit-cn

Your own site · 80×15
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-stepwise-commit-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-stepwise-commit-cn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02452
Opus 5.5 $0.00019 $0.00981
Sonnet 5.5 $0.00009 $0.00490
Haiku 4.5 $0.00005 $0.00245

Measured 22d ago against content hash 259c0af0ff3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-stepwise-commit-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 22d 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.

skills/zh-cn/git-stepwise-commit-cn/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

分步提交

Overview

将已授权的改动组织成粒度适中、依赖明确的提交序列。先分技术边界,再按业务模块与变更目的细分;每笔表达一个完整意图。

一次分步提交请求是一个批次。提交内容可以按模块拆开,整批标题中的简短主题必须固定,不能随模块变化。

何时使用

  • 用户要求提交当前改动、按模块或前后端分批提交,或提交并推送。
  • 用户仅要求拆分建议时,输出计划而不提交。

不要使用

仅推送已有提交、改写历史或明确要求单笔提交时,不使用本技能。

适用边界

  • 提交请求应完成分析和逐笔提交;仅请求拆分建议时只输出计划。展示计划后,不仅为分组再次要求确认。
  • 默认只做本地提交;用户已要求推送时,在提交链检查完成后推送。不附带分支创建、合并、PR、发布或历史改写。
  • 用户指定的范围、分组和顺序优先;若实际只有一个完整单元,允许只产生一笔,不凑提交数量。
  • 与其他提交技能同时使用时,本技能负责分组、顺序和固定批次主题的系列标题;复用适用的检查与交付要求,不沿用其默认单笔提交行为。

拆分标准

技术边界是起点,业务意图与依赖决定最终分组:

边界 默认分组依据
数据库 按业务域组织结构、迁移及对应 schema 映射
后端 按服务、业务模块或独立用例拆分
前端 按应用、业务模块或独立交互拆分
配置与工程 按构建、依赖、部署或 CI 的独立目的拆分
公共包及其他技术栈 按包、消费者和职责拆分
独立文档 按主题拆分;实现说明通常随实现提交

前后端默认分开,同一端的无关模块也分开;文件后缀不能替代职责判断。每笔应能用一句具体说明概括,具有完整行为或结构意义,在前置提交存在时可以构建和验证,并有明确的回滚边界。

  • 过大则拆: 混合多个无关目标、业务模块,或可独立交付的重构与功能。
  • 过小则并: 按文件拆出无独立意义的样式、导入、类型或测试。独立的一行修复仍可成一笔。
  • 不以文件数、行数或固定提交数量作硬门槛;大量机械生成文件也可能属于一个单元。

保留必要的原子组合:

  • 实现、对应行为测试和必要说明;依赖声明与锁文件;实现运行所必需的最小配置。
  • 同次数据库结构变更的基准、增量迁移、纯 schema 映射与迁移测试;独立后端用例另行提交。
  • 必须同步的生成输入与输出。生成代码按实际服务或消费端归属,不制造过期合同。
  • 同文件的独立改动可按 hunk 拆;共享类型、重命名或跨文件依赖无法分离时,合并最小必要范围并说明原因。

标题格式

标题格式:type(scope): [序号]批次主题:具体说明,例如 feat(database): [1]订单支付:增加支付状态字段及迁移。

  • 标准前缀: 优先遵循项目要求;无要求时使用 Conventional Commits。type 按改动选择,scope 表达技术边界或模块,二者可以逐笔变化;不得以批次主题与序号替代标准前缀,也不为统一系列而把所有改动强行标成同一种 type。
  • 固定主题: 规划时从完整交付目标选择简短的业务名,记为本批次唯一的 batch_topic。整批所有标题逐字复用它,跨前后端、数据库、配置或多个业务模块也不变。各笔模块名与功能差异写在 scope 或具体说明中,不能重新充当批次主题。
  • 序号: 使用 [1]、[2]、[3],放在标准前缀之后、固定主题之前,按整批实际提交顺序从 1 连续编号;不能因模块变化重置。失败重试不占号;续接同一批次时,从已成功标题恢复原主题与下一个序号。只有用户明确要求另建独立批次时,才另定主题并重新编号,不改写已有历史。
  • 标点与空格: 标准前缀后使用半角 : 和一个空格,固定主题后紧接中文 :。项目明确要求不同的标题格式时,遵循项目要求。

例如,同一批次包含首页发送与思考状态两个模块,先确定 batch_topic = 对话体验:

fix(commercial): [1]对话体验:支持首页一次发送并防止重复提交
feat(commercial): [2]对话体验:接入思考球体并收敛流式反馈

[1]首页对话:…、[2]思考状态:… 在同一批次中不合格:编号连续,但主题已变化。默认格式下应检查 [序号]固定主题: 这一部分;项目要求其他格式时,检查其中对应的部分,不能仅检查序号或 Conventional Commits 格式。

使用说明

1. 确定范围

读取仓库及受影响目录的 AGENTS.md、交付规则与必要的子模块规则。检查当前分支和操作状态,读取 git status --short、暂存与未暂存的完整 diff,以及 git ls-files --others --exclude-standard 列出的待纳入文件。

Read the full file on GitHub · 114 lines

Changes

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.

  1. 22d ago First seen · 114 lines · 47 tokens per session scan A 259c0af0ff3e

Subscribe to this mod's changes

git-stepwise-commit-cn is a skill published in the GitHub repository YangsonHung/awesome-agent-skills (18 stars, last pushed 23d ago), licensed MIT. It adds 47 tokens to every session and 2,452 once invoked, about $0.0002 per session on Opus 5.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-11-08.

Related

git-stepwise-commit-cn compared with skills from other repositories

git-stepwise-commit-cn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-stepwise-commit-cnYangsonHung/awesome-agent-skillsSkill1823d agoMITA47Claude Code, Codex
pr-squash-messagescenario-labs/skillsSkill4.4kyesterdayMITA73Codex
branch-and-worktree-workflowcbrock84/headcountSkill2.6ktodayMITA70Claude Code
phx-pr-reviewoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA61Claude Code, Codex
gitcode-yeongyu/oh-my-openagentSkill71ktodaynoneA109Codex
ship-togethertobihagemann/turboSkill428todayMITA37Claude Code
recall-sessiontobihagemann/turboSkill428todayMITA45Claude Code