Agent skill

Git Commit

by qiniu in qiniu/go-sdk

遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。

MITAuto-check passedDevelopment

Install Git Commit

skills CLI
$ npx skills add qiniu/go-sdk --skill git-commit -a claude-code

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

GitHub CLI
$ gh skill install qiniu/go-sdk 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/qiniu/go-sdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/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
158
Token cost
~666 tokens
SKILL.md length
224 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。

  • Works in 4 steps: 查看 status/diff/log,确认提交范围与语言风格。 → 暂存目标文件并展示"将提交列表"。 → 生成符合 Angular 规范的 commit message。 → …
  • Tasks that involve Commit messages
  • SKILL.md covers 快速开始, 何时不要使用(Do NOT use), 触发样例与非样例 and 使用示例, plus 10 more sections
  • Calls git and make

What it does

Git Commit is an agent skill from qiniu/go-sdk. 遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。

Its SKILL.md is about 670 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Commit messages. It works with Angular and Git. The licence is MIT.

When your agent uses it

  • Tasks that involve Commit messages

Example prompts

  • “/git-commit”

Requirements

  • Pre-approved tools (allowed-tools): Bash(git add:*), Bash(git branch:*), Bash(git commit:*), Bash(git diff:*), Bash(git log:*), Bash(git status:*), Bash(git push:*)

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 查看 status/diff/log,确认提交范围与语言风格。
  2. 暂存目标文件并展示"将提交列表"。
  3. 生成符合 Angular 规范的 commit message。
  4. 提交后如有上游分支则 push。

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(git add:*)
    • Bash(git branch:*)
    • Bash(git commit:*)
    • Bash(git diff:*)
    • Bash(git log:*)
    • Bash(git status:*)
    • Bash(git push:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • make

    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 666 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 224 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~666

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 passed

The automated check found no risky patterns in SKILL.md.

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 qiniu/go-sdk at commit e1fe1ce, republished under its MIT licence (© qiniu). 224 words, ~666 tokens.

Download SKILL.mdSave it as .claude/skills/git-commit/SKILL.md (or your agent's skills folder).
name
git-commit
description
遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。
allowed-tools
Bash(git add:*), Bash(git branch:*), Bash(git commit:*), Bash(git diff:*), Bash(git log:*), Bash(git status:*), Bash(git push:*)
argument-hint
<附加上下文(可选)> [push=true]

规范化提交

开始时声明:"我正在使用 git-commit skill 生成并提交规范化 commit。"

快速开始

  1. 查看 status/diff/log,确认提交范围与语言风格。
  2. 暂存目标文件并展示"将提交列表"。
  3. 生成符合 Angular 规范的 commit message。
  4. 提交后如有上游分支则 push。

何时不要使用(Do NOT use)

  • 工作区无待提交变更。
  • 用户仅请求代码分析/评审,不需要提交。
  • 用户明确要求仅生成建议,不执行 git commit。

触发样例与非样例

  • 应触发:
  • "帮我按 Angular 规范提交这些改动。"
  • "写一个 commit message 并 push。"
  • 不应触发:
  • "review 这个 PR 有没有问题。"
  • "分析下这个报错根因。"

使用示例

bash
# 基本提交
git-commit 修复上传逻辑

# 提交并 push
git-commit push=true

预检查命令

bash
git status --short
git diff HEAD
git branch --show-current
git log --oneline -10

消息规范

Header:<type>(<scope>): <summary>

Type:

  • feat 新功能
  • fix 缺陷修复
  • docs 文档改动
  • refactor 重构
  • perf 性能优化
  • test 测试相关
  • chore 杂项维护
  • style 代码格式调整

Scope 建议值(本项目常用):

  • storage / storagev2 / auth / cdn / pili / rtc / sms / linking / qvs
  • iam / media / audit / sandbox
  • client / conf / reqid
  • internal / examples

Summary 规则:祈使句、现在时、首字母小写、不加句号。

Body 规则:

  • docs 可省略,其他类型建议必须有
  • 至少说明"为什么改"与"影响范围"
  • 非 docs 类型时,body 至少 20 个字符
  • 单段 body 不超过 3 行,保持简洁

Footer(按需):

  • BREAKING CHANGE: ...
  • Fixes #123 / Closes #456

语言规则

  • 参考最近 10 条提交语言。
  • 近期中文为主则用中文;近期英文为主则用英文。

执行流程

  1. 先确认提交文件列表。
  2. 执行 git add(按文件名添加,避免 git add -A)。
  3. 展示 commit message 草案并确认。
  4. 执行 git commit。
  5. 如有上游分支则 push:
    • git push
    • 或 git push -u origin <current-branch>

提交前检查提醒

提交代码前提醒用户确认已通过:

  • make unittest — 单元测试
  • make staticcheck — 静态检查
  • gofmt -s -w . — 代码格式化

如果是生成代码相关修改,还需确认已运行 make generate。

关键约束

  • 不要使用 emoji 在 commit message 中
  • 不要在 commit message 中包含 AI 辅助工具相关信息
  • 不要添加 "Generated with" 或 "Co-Authored-By: AI" 等内容
  • 不要使用 --no-verify 跳过 hooks

输出模板

text
已提交: <commit-hash>
标题: <type(scope): summary>
分支: <branch>
Push: 成功/失败/未执行

失败回退

  • 工作区无变更:输出 git status 结果,提示无可提交内容。
  • git commit 失败(hook 报错):输出完整报错,建议修复后重试,不跳过 hook。
  • git push 失败(远端冲突):输出报错,建议先 pull/rebase 再重试。

验收标准(统一)

  • 输入前提:参数与上下文可解析;缺省参数按 skill 默认值执行,并在输出中注明。
  • 产出要求:按 skill 约定的输出模板给出结果,并包含关键证据(命令、路径、链接或日志摘要)。
  • 通过判定:主流程步骤已完成且无阻塞;若有未完成项,必须明确标注影响范围与下一步。
  • 默认策略(非交互):需要确认但用户未及时响应时,采用"推荐默认值/最小风险项"继续;需要交互选择时优先推荐项。
  • 阻塞升级:遇到权限、凭证、外部依赖缺失时立即停止该步骤,输出"阻塞点 + 已尝试 + 需要用户提供的信息"。

系统规范(AGENTS.md)

执行本 skill 时同时遵守 AGENTS.md 中的系统规范;与本 skill 冲突时以本 skill 为准。

© qiniu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/git-commit of qiniu/go-sdk.

Open the folder on GitHubat commit e1fe1ce

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 skillqiniu/go-sdk158—~666Automated safety check: PassMIT
Git Committisfeng/Easydict15k—~535Automated safety check: PassGPL-3.0
Commit MsgNG-ZORRO/ng-zorro-antd9.2k—~367Automated safety check: PassMIT
Changelog Generatorespennilsen/pi122—~3.7kAutomated safety check: PassMIT
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

Similar skills

  • Git Commit

    tisfeng/Easydict

    起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

    15k GitHub stars~535 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commit Msg

    NG-ZORRO/ng-zorro-antd

    Generate a conventional commit message for staged NG-ZORRO changes.

    9.2k GitHub stars~367 tokensUpdated today
    DevelopmentAuto-check passed
  • Changelog Generator

    espennilsen/pi

    Parse git history and produce or update a CHANGELOG.md following the Keep a Changelog convention.

    122 GitHub stars~3.7k tokensUpdated 16 days ago
    DevelopmentAuto-check passed
  • 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 yesterday
    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

More from qiniu/go-sdk

  • CI Analyze

    qiniu/go-sdk

    分析 CI 失败原因并给出修复建议。在用户提到 CI 失败、pipeline 失败、构建失败、测试失败时使用。典型场景:PR 合前 CI 红、需要根因与修复建议时。

    158 GitHub stars~904 tokensUpdated 18 days ago
    Auto-check passed
  • Gh View

    qiniu/go-sdk

    分析 GitHub issues、PRs 与 discussions,提供见解或实施指导。在用户提供 GitHub URL、issue/PR 编号或询问仓库内容时使用。典型场景:看 issue/PR 状态、拉 diff 与 checks、要结论与建议下一步时。

    158 GitHub stars~627 tokensUpdated 18 days ago
    Auto-check passed
  • Release Check

    qiniu/go-sdk

    检查发布版本号是否在三处保持一致(conf/conf.go、CHANGELOG.md、README.md)。在准备发布新版本时使用。

    158 GitHub stars~195 tokensUpdated 18 days ago
    Auto-check passed
  • Check

    qiniu/go-sdk

    运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用. An agent skill from qiniu/go-sdk.

    158 GitHub stars~159 tokensUpdated 18 days ago
    Auto-check passed
  • Gen

    qiniu/go-sdk

    运行代码生成并检查变更。在修改 API 规范(api-specs/ YAML)或 sandbox OpenAPI/protobuf 后使用。

    158 GitHub stars~189 tokensUpdated 18 days ago
    Auto-check passed

Works with

Categories

Questions about Git Commit

What does Git Commit do?

遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。. Git Commit is an agent skill from qiniu/go-sdk.

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 qiniu/go-sdk --skill git-commit -a claude-code`. Or copy the skill folder (.agents/skills/git-commit in qiniu/go-sdk) 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 qiniu/go-sdk --skill git-commit -a codex`. Or copy the skill folder (.agents/skills/git-commit in qiniu/go-sdk) 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 qiniu/go-sdk --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 make). Its frontmatter pre-approves these tools: Bash(git add:*), Bash(git branch:*), Bash(git commit:*), Bash(git diff:*), Bash(git log:*), Bash(git status:*), Bash(git push:*).

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 no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Commit use?

Git Commit is published under the MIT 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 666 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Commit?

Skills that share tags, products or a category with Git Commit: Git Commit (tisfeng/Easydict, 15k stars), Commit Msg (NG-ZORRO/ng-zorro-antd, 9.2k stars), Changelog Generator (espennilsen/pi, 122 stars) and React Router Release Notes Prep (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?

qiniu (a GitHub organization) maintains it in qiniu/go-sdk, which has 158 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 20, 2026.

Source: qiniu/go-sdk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.