准备并执行高质量 Git 提交。当用户要求提交代码、帮忙 commit、生成提交信息、拆分原子提交,或说 commit this / split commits / skip verify 时触发。先读仓库规范,按真实 diff 和暂存状态生成 Conventional Commit;emoji 默认关闭,仅 --emoji 时放在冒号后。不适用于创建 PR/MR(用…

Apache-2.0Auto-check: notesDevelopment

Install Git Commit

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill git-commit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins git-commit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/yyykf/spellbook-skills/skills/git-commit .claude/skills/git-commit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-commit
GitHub stars
1.2k
Token cost
~829 tokens
SKILL.md length
269 words
Files
2 (incl. references)
Skills in repo
686
Repo updated
First seen
Licence
Apache-2.0

At a glance

准备并执行高质量 Git 提交。当用户要求提交代码、帮忙 commit、生成提交信息、拆分原子提交,或说 commit this / split commits / skip verify 时触发。先读仓库规范,按真实 diff 和暂存状态生成 Conventional Commit;emoji 默认关闭,仅 --emoji 时放在冒号后。不适用于创建 PR/MR(用…

  • Works in 8 steps: 读取仓库提交规范(最高优先级) → 判定任务模式 → 检查仓库状态与 diff → …
  • Tasks that involve Commit messages
  • SKILL.md covers Overview, Prerequisites, Inputs and Workflow, plus 2 more sections
  • Calls git and mvn

What it does

Git Commit is an agent skill from hashgraph-online/awesome-codex-plugins. 准备并执行高质量 Git 提交。当用户要求提交代码、帮忙 commit、生成提交信息、拆分原子提交,或说 commit this / split commits / skip verify 时触发。先读仓库规范,按真实 diff 和暂存状态生成 Conventional Commit;emoji 默认关闭,仅 --emoji 时放在冒号后。不适用于创建 PR/MR(用 git-merge-request)或只推送。

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/commit-details.md`).

It sits in Development, covering Commit messages. It works with Git. The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Commit messages

Example prompts

  • “/git-commit”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. 读取仓库提交规范(最高优先级)
  2. 判定任务模式
  3. 检查仓库状态与 diff
  4. 判断提交边界
  5. 轻量校验(除非明确跳过)
  6. 生成符合规范的提交消息
  7. 执行提交(非交互)
  8. 如实报告

What it can do on your machine

Read from SKILL.md and the folder at commit 78497e5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • mvn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Commit loads about 829 tokens when it runs, and up to ~1.6k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 269 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~829
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:72
    暂存时排除敏感文件,例如 `.env`、`*.key`、`credentials*`。不要盲目 `git add -A`。

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hashgraph-online/awesome-codex-plugins at commit 78497e5, republished under its Apache-2.0 licence (© hashgraph-online). 269 words, ~829 tokens.

Download SKILL.mdSave it as .claude/skills/git-commit/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
git-commit
description
准备并执行高质量 Git 提交。当用户要求提交代码、帮忙 commit、生成提交信息、拆分原子提交,或说 commit this / split commits / skip verify 时触发。先读仓库规范,按真实 diff 和暂存状态生成 Conventional Commit;emoji 默认关闭,仅 `--emoji` 时放在冒号后。不适用于创建 PR/MR(用 git-merge-request)或只推送。

Git Commit

Overview

准备并执行高质量 Git 提交。目标不是写漂亮标题,而是产出忠于 diff、便于 review、符合仓库约定、且如实说明校验状态的提交。

Core principle: 仓库规则优先 → 读取真实状态与 diff → 判断提交边界 → 轻量校验 → 生成 Conventional Commit → 非交互提交 → 如实报告。

Announce at start: "正在使用 git-commit skill 帮你准备提交。"

Prerequisites

  • 当前目录为 git 仓库
  • 已识别用户意图:真正提交 / 仅草拟消息 / 先拆分 diff

Inputs

从用户输入中识别下列参数与意图,未指定时用默认值:

参数 / 意图默认说明
--emoji关闭启用 emoji,且置于 type(scope): 之后
--no-verify / "跳过校验" / "直接提交"否跳过轻量校验
"只要 commit message" / "先给我消息"执行提交只产出候选消息,不实际提交
"拆开提交" / "split"自动判断先给原子拆分方案,再按确认执行

Workflow

Phase 1: 读取仓库提交规范(最高优先级)

提交前先查本地约定,仓库规则永远优先于本 skill 的默认值。至少检查:

  • AGENTS.md / CLAUDE.md / CONTRIBUTING.md / README.md
  • 提交模板、项目文档、最近提交历史

提取提交语言、格式、emoji 要求、body/footer 标记、issue 引用和必须校验命令。仓库有明文要求时完全照其执行。

Phase 2: 判定任务模式

尽早区分三种情况,避免误操作:

  1. 执行提交:用户说"提交""commit""帮我交上去"时,默认真实提交
  2. 仅草拟:用户只要 commit message 时,只给候选消息,不提交
  3. 先拆分:diff 混杂或用户要求 split 时,先给拆分方案
Phase 3: 检查仓库状态与 diff
git status --short

判断是否已有暂存内容,再读对应 diff。消息必须基于真实 diff,不要只看文件名。

  • 已有暂存:读 git diff --cached --stat 和 git diff --cached;默认只提交已暂存内容
  • 无暂存:读 git diff --stat 和 git diff
  • 有 untracked 文件:用 git status --short 列出,并按文件内容判断是否纳入;不要因为 git diff 为空就忽略它们
Phase 4: 判断提交边界

只在变更形成一个连贯 review 单元时成组暂存并提交。出现以下信号时先停下来给拆分方案:

  • 功能开发混入重构或纯文档改动
  • 跨不相关模块的变更
  • 大面积格式 churn 混入行为变更
  • 暂存区和未暂存区表达的是不同主题

暂存时排除敏感文件,例如 .env、*.key、credentials*。不要盲目 git add -A。

Phase 5: 轻量校验(除非明确跳过)

除非用户明确要求跳过,运行能给出有意义信心的最轻校验:

  • 仓库文档声明的校验命令优先
  • Node 项目先看 package.json 脚本,再按 lockfile 选择包管理器
  • Maven 项目默认 mvn compile
  • 混合仓库只跑与改动区域相关的轻量校验

更细的默认策略见 commit-details.md。

校验失败时:

  • 清晰汇报失败内容
  • 绝不把提交说成"已验证"
  • 仅在用户明确接受「带着失败继续」时才提交
Phase 6: 生成符合规范的提交消息

仓库规则优先。仓库未明示时默认:

text
<type>(<scope>): <description>
  • 开头必须是 Conventional Commit type,例如 feat、fix、docs、refactor
  • 描述语言:仓库指定优先;仓库未指定时跟随用户语言
  • emoji 默认关闭;仅 --emoji 时写成 feat(x): ✨ 描述
  • emoji 绝不放在最前面,避免破坏 release-please / semantic-release / commitlint 这类按开头 type 解析的工具
  • 仓库要求的 body/footer 标记(issue ID、[#AI]、release notes 等)必须带上

需要类型表、emoji 表或示例时读取 commit-details.md。

Phase 7: 执行提交(非交互)

用非交互方式创建提交,避免进入交互式 git 流程。多个提交时按文件分组依次暂存、提交;body/footer 用多段 -m 或等价非交互方式写入。

Phase 8: 如实报告
  • 跑了哪些校验、或明确跳过了哪些
  • 每个提交的消息与生成的 commit SHA(如可得)
  • 是否还有未暂存 / 未提交的改动

Common Mistakes

  • 忽略已暂存内容:有 staged diff 时,默认只围绕 staged diff 提交,除非用户要求纳入更多改动
  • 遗漏 untracked 文件:git diff 不显示 untracked,必须结合 git status --short
  • emoji 放在最前面:✨ feat: ... 会破坏按 ^type 解析的自动化工具
  • 默认硬塞 emoji:本 skill 默认不带 emoji,只有显式 --emoji 才加;仓库禁止时即使传了也不加
  • 凭文件名写消息:必须读真实 diff,描述要匹配实际改动
  • 一锅烩提交:diff 明显含不相关改动时,不要塞进一个 catch-all 提交,除非用户明确接受这个取舍
  • 假装跑了校验:没跑就说没跑,失败就如实汇报
  • 误把"只要消息"当成提交:用户只要 message 时不要真的 git commit

References

  • commit-details.md — 类型表、emoji 规则、校验默认值和示例;当仓库没有明文规则或用户要求解释/示例时读取
  • 配套技能 git-merge-request — 提交后推送并创建 PR/MR,其提交环节复用本 skill

© hashgraph-online, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/yyykf/spellbook-skills/skills/git-commit of hashgraph-online/awesome-codex-plugins.

  • SKILL.md
  • references/commit-details.md

Open the folder on GitHubat commit 78497e5

Compare with similar skills

Git Commit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Commit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Commit this skillhashgraph-online/awesome-codex-plugins1.2k—~829Automated safety check: NotesApache-2.0
React Router Release Notes Prepremix-run/react-router57k—~1.1kAutomated safety check: PassMIT
ToolJet Multi-Repo CommitToolJet/ToolJet41k—~1.3kAutomated safety check: PassAGPL-3.0
Git Workflow and Versioningaddyosmani/agent-skills103k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT

Similar skills

  • React Router Release Notes Prep

    remix-run/react-router

    Polishes pending React Router change files before the versioning scripts run, and decides whether a long-form What's Changed section is warranted.

    57k GitHub stars~1.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Commits changes across ToolJet's root repo and its server/ee and frontend/ee submodules, writing messages from the diffs and updating submodule pointers in order.

    41k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    103k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from hashgraph-online/awesome-codex-plugins

All 686 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.2k GitHub stars~922 tokensUpdated today
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.2k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.2k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.2k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.2k GitHub stars~618 tokensUpdated today
    Auto-check passed
  • Manuscript Engagement Analytics

    hashgraph-online/awesome-codex-plugins

    Analyze nonfiction manuscripts for reader engagement signals, including heading-level word counts, slow starts, long slogs, weak takeaway titles, value pacing, beta-reader comment dropoff, and…

    1.2k GitHub stars~875 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Git Commit

What does Git Commit do?

准备并执行高质量 Git 提交。当用户要求提交代码、帮忙 commit、生成提交信息、拆分原子提交,或说 commit this / split commits / skip verify 时触发。先读仓库规范,按真实 diff 和暂存状态生成 Conventional Commit;emoji 默认关闭,仅 --emoji 时放在冒号后。不适用于创建 PR/MR(用…. Git Commit is an agent skill from hashgraph-online/awesome-codex-plugins.

When should I use Git Commit?

Git Commit fits situations like: tasks that involve Commit messages.

How do I install Git Commit in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill git-commit -a claude-code`. Or copy the skill folder (plugins/yyykf/spellbook-skills/skills/git-commit in hashgraph-online/awesome-codex-plugins) into .claude/skills/git-commit in your project. Claude Code loads it when a task matches its description.

How do I install Git Commit in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill git-commit -a codex`. Or copy the skill folder (plugins/yyykf/spellbook-skills/skills/git-commit in hashgraph-online/awesome-codex-plugins) into .agents/skills/git-commit in your project. Codex loads it when a task matches its description.

Can I use Git Commit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hashgraph-online/awesome-codex-plugins --skill git-commit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-commit, .gemini/skills/git-commit, .github/skills/git-commit and .opencode/skills/git-commit in your project.

What does Git Commit need to run?

Going by SKILL.md and its folder, Git Commit needs the command-line tools its instructions call (git and mvn).

Does Git Commit access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Commit safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Git Commit use?

Git Commit is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Commit use?

About 829 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 781 tokens, read only when the agent opens those files.

What are the alternatives to Git Commit?

Skills that share tags, products or a category with Git Commit: React Router Release Notes Prep (remix-run/react-router, 57k stars), ToolJet Multi-Repo Commit (ToolJet/ToolJet, 41k stars), Git Workflow and Versioning (addyosmani/agent-skills, 103k stars) and React Router Pull Request Creator (remix-run/react-router, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Commit?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,242 GitHub stars. The repository holds 686 skills in this directory. The repository was last updated on October 8, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.