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.
npx skills add chaunsin/agent-skills --skill git-stackgit clone --depth 1 https://github.com/chaunsin/agent-skillsWrote 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/skills/chaunsin/agent-skills/git-stack)<a href="https://agentmods.dev/skills/chaunsin/agent-skills/git-stack"><img src="https://agentmods.dev/badge/skills/chaunsin/agent-skills/git-stack/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/skills/chaunsin/agent-skills/git-stack"><img src="https://agentmods.dev/badge/skills/chaunsin/agent-skills/git-stack.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.00058 | $0.00933 |
| Opus 5.5 | $0.00023 | $0.00373 |
| Sonnet 5.5 | $0.00012 | $0.00187 |
| Haiku 4.5 | $0.00006 | $0.00093 |
Grade A, and why
git-stack 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 工作流
按照用户要求执行 Git 操作,并保留无关工作。开始前读取适用的仓库指令和提交规范。 用户指令优先于仓库约定和本技能;已经获得授权的操作,无需重复询问。
适用方式
- 本技能适用于不同 agent、编辑器、操作系统、Git 托管服务及项目技术栈。 根据当前能力选择 Git CLI、Git API 或宿主提供的等效工具,不以某个插件、终端或平台功能为前提。
- 命令展示需要确认的 Git 状态,不要求逐条照搬执行。优先利用已有结果,按任务范围读取差异;
路径、引用、引号和变量语法按实际 shell 或工具调整。
示例中的
<...>均需替换为实际值;选项不可用时使用兼容方式获取等效信息。 - 验证项目、工作区准备方式及提交粒度由用户目标和仓库规范决定。 本技能使用中文说明,不限定项目语言、提交信息语言、分支命名或固定提交格式。
快速参考
- 确认仓库、当前引用及操作目标,再检查任务需要的工作树状态。
可用
git rev-parse --git-dir识别仓库;工作树中的.git可能是文件。 裸仓库没有工作树,仍可执行适用的引用和推送操作;尚无首个提交的仓库也不属于异常。 仅在任务依赖的仓库或访问能力不可用时,报告相应阻塞项。 - 涉及工作树更改时,分别检查已暂存、未暂存和未跟踪的内容。保留无关工作,结合会话上下文确认范围, 仅在是否纳入某项更改尚不明确时询问用户。
- 运行检查前先盘点已有验证结果。复用仍适用的结果,仅预检待执行检查需要的环境, 并按照验证规则分类处理失败。仓库强制门禁和钩子仍然适用。
- 仅执行已授权的提交、推送、冲突处理或工作区操作,报告最终版本、目标位置和验证边界。
流程入口
只读取当前任务需要的流程。
| 操作 | 参考文档 |
|---|---|
| 提交、推送或交付已经验证的更改 | 提交与推送 |
| 合并或变基冲突 | 冲突处理 |
| 创建或复用隔离工作区 | 工作树 |
| 验证复用、环境预检及失败分类 | 验证规则 |
代码审查请求、问题跟踪和发布等操作,按实际托管服务选择可用的工具或 API。 用户仅要求提交时,不得据此推断其已授权创建远端审查请求、标签、发布版本或执行推送。
护栏
- 不将修改 Git 配置作为默认前置步骤;确需调整时,限定在已有授权和所需作用域内。 不丢弃无关更改,不在核对内容前暂存整个工作树。
- 丢弃更改、历史重写、强制推送及跳过钩子等操作需要明确授权,并遵守宿主安全限制和远端保护规则。
- 钩子失败时,先分类,再决定修改代码或重跑检查。检查 HEAD 和暂存区,确认是否已经生成提交; 不将修改已有提交作为自动恢复步骤。
- 未经用户明确授权,不直接读取或输出 SSH 私钥内容;正常 Git 认证使用既有认证机制。
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 Changed · +19 lines · +31 tokens per session 73daaf6fc69c
- 2mo ago Changed · -1 lines 5000f8f7957c
- 2mo ago Changed · -1 lines a231db2a4e6c
- 2mo ago First seen · 43 lines · 27 tokens per session scan A 00739a2c7876
git-stack is a skill published in the GitHub repository chaunsin/agent-skills (2 stars, last pushed 12d ago), licensed Apache-2.0. It adds 58 tokens to every session and 933 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-09-11.
git-stack compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-stackchaunsin/agent-skills | Skill | 2 | 12d ago | Apache-2.0 | A | 58 | Claude Code, Codex |
| git-workflow-and-versioningaddyosmani/agent-skills | Skill | 122k | 8d ago | MIT | A | 131 | Claude Code |
| kirocrew-prepare-prkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| commitclacky-ai/openclacky | Skill | 1.2k | today | MIT | A | 0 | Claude Code, Codex |
| comet-safe-deliveryrpamis/comet | Skill | 3.3k | today | MIT | A | 78 | Claude Code, Codex |
| devops-pipelineluongnv89/skills | Skill | 149 | today | MIT | A | 65 | Claude Code |
| github-pages-publishluongnv89/skills | Skill | 149 | today | MIT | A | 63 | Claude Code |