go-sdk: Skill for Claude Code

.agents/skills/git-commit/SKILL.md

git-commit is a skill for Claude Code from qiniu/go-sdk. It costs 53 tokens per session (1,310 once invoked), scanned A, original, MIT.

A procedure for creating and submitting Git commit messages in the Angular convention, such as `fix(scope): summary`. Git commits record a set of code changes.

In plain words
What is it for?
Use it when staging changes, writing a commit message, creating a commit, or pushing it to the remote repository.
Why use it?
It keeps commit history consistent and checks the intended files and message before committing or pushing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is qiniu/go-sdk's own configuration. It tells Claude Code how to work on go-sdk itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything go-sdk configures →

View source ↗ qiniu/go-sdk
Reuse

Borrowing it

Nothing to install: this file belongs to qiniu/go-sdk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/qiniu/go-sdk/master/.agents/skills/git-commit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/qiniu/go-sdk

Made for: Claude Code.

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-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/qiniu/go-sdk/git-commit/github.svg)](https://agentmods.dev/skills/qiniu/go-sdk/git-commit)
Your own site
<a href="https://agentmods.dev/skills/qiniu/go-sdk/git-commit"><img src="https://agentmods.dev/badge/skills/qiniu/go-sdk/git-commit/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-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/qiniu/go-sdk/git-commit"><img src="https://agentmods.dev/badge/skills/qiniu/go-sdk/git-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,310 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00053 $0.01310
Opus 5.5 $0.00021 $0.00524
Sonnet 5.5 $0.00011 $0.00262
Haiku 4.5 $0.00005 $0.00131

Measured 2mo ago against content hash e3da5b66fa9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-commit 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 2mo 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.

.agents/skills/git-commit/SKILL.md · 149 lines

How it starts

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

规范化提交

开始时声明:"我正在使用 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 有没有问题。"
  • "分析下这个报错根因。"

使用示例

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

# 提交并 push
git-commit push=true

预检查命令

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

输出模板

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

失败回退

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

验收标准(统一)

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

Read the full file on GitHub · 149 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. 2mo ago First seen · 149 lines · 53 tokens per session scan A e3da5b66fa9d

Subscribe to this mod's changes

git-commit is a skill published in the GitHub repository qiniu/go-sdk (158 stars, last pushed 3d ago), licensed MIT. It adds 53 tokens to every session and 1,310 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-08-30.

Related

git-commit compared with skills from other repositories

git-commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-commitqiniu/go-sdkSkill1583d agoMITA53Claude Code
create-prprisma/ormSkill48kyesterdayApache-2.0A48Claude Code, Codex
git-commitThinkInAIXYZ/deepchatSkill6.4kyesterdayApache-2.0A15Claude Code, Codex
repo-syncdavidondrej/skillsSkill4.3k3d agoMITA25Claude Code, Codex
engineer-bot-opsmakecindy/cindySkill9.3ktodayApache-2.0A57Claude Code, Codex
mcore-split-prNVIDIA/skillsSkill3.9kyesterdayApache-2.0A25Claude Code
git-commit-writermergisi/awesome-openclaw-agentsSkill4.1k2d agoMITA53Claude Code, Codex