用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/qiniu/go-sdk --skill git-commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | git-commit |
| description | 遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。 |
| argument-hint | <附加上下文(可选)> [push=true] |
| allowed-tools | ["Bash(git add:*)","Bash(git branch:*)","Bash(git commit:*)","Bash(git diff:*)","Bash(git log:*)","Bash(git status:*)","Bash(git push:*)"] |
开始时声明:"我正在使用 git-commit skill 生成并提交规范化 commit。"
status/diff/log,确认提交范围与语言风格。git commit。# 基本提交
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 / qvsiam / media / audit / sandboxclient / conf / reqidinternal / examplesSummary 规则:祈使句、现在时、首字母小写、不加句号。
Body 规则:
docs 可省略,其他类型建议必须有docs 类型时,body 至少 20 个字符Footer(按需):
BREAKING CHANGE: ...Fixes #123 / Closes #456git add(按文件名添加,避免 git add -A)。git commit。git pushgit push -u origin <current-branch>提交代码前提醒用户确认已通过:
make unittest — 单元测试make staticcheck — 静态检查gofmt -s -w . — 代码格式化如果是生成代码相关修改,还需确认已运行 make generate。
--no-verify 跳过 hooks已提交: <commit-hash>
标题: <type(scope): summary>
分支: <branch>
Push: 成功/失败/未执行
git status 结果,提示无可提交内容。git commit 失败(hook 报错):输出完整报错,建议修复后重试,不跳过 hook。git push 失败(远端冲突):输出报错,建议先 pull/rebase 再重试。执行本 skill 时同时遵守 AGENTS.md 中的系统规范;与本 skill 冲突时以本 skill 为准。