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.
git clone --depth 1 https://github.com/xiaobei930/cc-bestWrote 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.
[](https://agentmods.dev/commands/xiaobei930/cc-best/git-guide)<a href="https://agentmods.dev/commands/xiaobei930/cc-best/git-guide"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/git-guide/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.
<a href="https://agentmods.dev/commands/xiaobei930/cc-best/git-guide"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/git-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.00722 |
| Opus 5.5 | $0.00008 | $0.00289 |
| Sonnet 5.5 | $0.00004 | $0.00144 |
| Haiku 4.5 | $0.00002 | $0.00072 |
Grade A, and why
git-guide 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 1mo 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.
What it actually says
/git-guide - Git 提交规范
定义提交时机、频率和规范。
提交时机
必须提交
| 时机 | 理由 |
|---|---|
| 完成一个原子任务 | 保证可回滚 |
| 完成一个功能模块 | 里程碑记录 |
| 修复一个 bug | 问题追溯 |
| 重要配置变更 | 变更追踪 |
| 下班/长时间中断前 | 状态保存 |
不要提交
| 情况 | 原因 |
|---|---|
| 代码不可运行 | 破坏主分支 |
| 测试未通过 | 引入问题 |
| 有调试代码 | 不专业 |
| 包含敏感信息 | 安全风险 |
提交频率
| 任务类型 | 建议频率 |
|---|---|
| 新功能开发 | 每个函数/类完成后 |
| Bug 修复 | 每个 bug 修复后 |
| 重构 | 每个文件完成后 |
| 文档更新 | 批量更新后 |
| 配置变更 | 每次变更后 |
原则: 宁可提交多,不要提交少。小步提交便于回滚和追溯。
Commit Message 规范
格式
<type>(<scope>): <subject>
<body>
Type 类型
| type | 说明 | 示例 |
|---|---|---|
| feat | 新功能 | feat(auth): add login feature |
| fix | Bug 修复 | fix(api): correct validation |
| docs | 文档 | docs: update architecture |
| style | 格式 | style: format with prettier |
| refactor | 重构 | refactor(core): simplify logic |
| test | 测试 | test(api): add unit tests |
| chore | 构建/工具 | chore: update dependencies |
Subject 规则
- 动词开头:add, fix, update, remove, refactor
- 不超过 50 字符
- 不加句号
分支策略
main/master (受保护)
↑
develop (日常开发)
↑
feature/xxx (功能分支)
↑
fix/xxx (修复分支)
分支命名
feature/user-authfix/login-errorrefactor/api-structure
提交前检查
# 自动检查清单
- [ ] git status 确认变更范围
- [ ] git diff 检查具体修改
- [ ] 无调试代码 (print, console.log)
- [ ] 无敏感信息 (.env, secrets)
- [ ] 代码可运行
- [ ] 测试通过(如有)
记住: Git 操作不可逆,提交前三思:文件是否正确、信息是否清晰、分支是否对。
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.
- 1mo ago First seen · 103 lines · 21 tokens per session scan A 238d33057237
git-guide is a command published in the GitHub repository xiaobei930/cc-best (48 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 722 once invoked, about $0.0001 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.
Other commands, from other repositories
release
Release guide version (CHANGELOG + VERSION + README + landing sync + commit + push).
update-infos-release
Update Claude Code releases tracking (guide + landing + version bump).
worktree-status
Show status of all active worktrees.
worktree
Create a git worktree for isolated feature/fix work.
changelog
View recent CHANGELOG entries.
clean-worktrees
Automatically remove all merged worktrees (safe, no confirmation needed).