git-stack

git-stack is a skill for Claude Code, Codex from chaunsin/agent-skills. It costs 58 tokens per session (933 once invoked), scanned A, original, Apache-2.0.

A Git workflow helper for committing and pushing code, resolving merge conflicts, and creating Git worktrees. A worktree is a separate working directory linked to the same Git repository.

In plain words
What is it for?
Use it to create commits, push changes, resolve conflicts, create worktrees, combine commit history, and create release tags.
Why use it?
It gives common Git tasks a defined process and checks that the folder is a Git repository with the Git command-line tool installed. It also avoids destructive actions unless you explicitly request them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create commits, push changes, resolve conflicts, create worktrees, combine commit history, and create release tags.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chaunsin/agent-skills/git-stack
Install

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.

Any agent
npx skills add chaunsin/agent-skills --skill git-stack
Clone the repo
git clone --depth 1 https://github.com/chaunsin/agent-skills

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/chaunsin/agent-skills/git-stack/github.svg)](https://agentmods.dev/skills/chaunsin/agent-skills/git-stack)
Your own site
<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.

agentmods 80×15 button for git-stack

Your own site · 80×15
<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>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 933 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.
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.00058 $0.00933
Opus 5.5 $0.00023 $0.00373
Sonnet 5.5 $0.00012 $0.00187
Haiku 4.5 $0.00006 $0.00093

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

Security

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.

skills/git-stack/SKILL.md · 60 lines

What it actually says

Git 工作流

按照用户要求执行 Git 操作,并保留无关工作。开始前读取适用的仓库指令和提交规范。 用户指令优先于仓库约定和本技能;已经获得授权的操作,无需重复询问。

适用方式

  • 本技能适用于不同 agent、编辑器、操作系统、Git 托管服务及项目技术栈。 根据当前能力选择 Git CLI、Git API 或宿主提供的等效工具,不以某个插件、终端或平台功能为前提。
  • 命令展示需要确认的 Git 状态,不要求逐条照搬执行。优先利用已有结果,按任务范围读取差异; 路径、引用、引号和变量语法按实际 shell 或工具调整。 示例中的 <...> 均需替换为实际值;选项不可用时使用兼容方式获取等效信息。
  • 验证项目、工作区准备方式及提交粒度由用户目标和仓库规范决定。 本技能使用中文说明,不限定项目语言、提交信息语言、分支命名或固定提交格式。

快速参考

  1. 确认仓库、当前引用及操作目标,再检查任务需要的工作树状态。 可用 git rev-parse --git-dir 识别仓库;工作树中的 .git 可能是文件。 裸仓库没有工作树,仍可执行适用的引用和推送操作;尚无首个提交的仓库也不属于异常。 仅在任务依赖的仓库或访问能力不可用时,报告相应阻塞项。
  2. 涉及工作树更改时,分别检查已暂存、未暂存和未跟踪的内容。保留无关工作,结合会话上下文确认范围, 仅在是否纳入某项更改尚不明确时询问用户。
  3. 运行检查前先盘点已有验证结果。复用仍适用的结果,仅预检待执行检查需要的环境, 并按照验证规则分类处理失败。仓库强制门禁和钩子仍然适用。
  4. 仅执行已授权的提交、推送、冲突处理或工作区操作,报告最终版本、目标位置和验证边界。

流程入口

只读取当前任务需要的流程。

操作 参考文档
提交、推送或交付已经验证的更改 提交与推送
合并或变基冲突 冲突处理
创建或复用隔离工作区 工作树
验证复用、环境预检及失败分类 验证规则

代码审查请求、问题跟踪和发布等操作,按实际托管服务选择可用的工具或 API。 用户仅要求提交时,不得据此推断其已授权创建远端审查请求、标签、发布版本或执行推送。

护栏

  • 不将修改 Git 配置作为默认前置步骤;确需调整时,限定在已有授权和所需作用域内。 不丢弃无关更改,不在核对内容前暂存整个工作树。
  • 丢弃更改、历史重写、强制推送及跳过钩子等操作需要明确授权,并遵守宿主安全限制和远端保护规则。
  • 钩子失败时,先分类,再决定修改代码或重跑检查。检查 HEAD 和暂存区,确认是否已经生成提交; 不将修改已有提交作为自动恢复步骤。
  • 未经用户明确授权,不直接读取或输出 SSH 私钥内容;正常 Git 认证使用既有认证机制。
Files

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.

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. 1mo ago Changed · +19 lines · +31 tokens per session 73daaf6fc69c
  2. 2mo ago Changed · -1 lines 5000f8f7957c
  3. 2mo ago Changed · -1 lines a231db2a4e6c
  4. 2mo ago First seen · 43 lines · 27 tokens per session scan A 00739a2c7876

Subscribe to this mod's changes

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.

Related

git-stack compared with skills from other repositories

git-stack next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-stackchaunsin/agent-skillsSkill212d agoApache-2.0A58Claude Code, Codex
git-workflow-and-versioningaddyosmani/agent-skillsSkill122k8d agoMITA131Claude Code
kirocrew-prepare-prkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A85Claude Code, Codex
commitclacky-ai/openclackySkill1.2ktodayMITA0Claude Code, Codex
comet-safe-deliveryrpamis/cometSkill3.3ktodayMITA78Claude Code, Codex
devops-pipelineluongnv89/skillsSkill149todayMITA65Claude Code
github-pages-publishluongnv89/skillsSkill149todayMITA63Claude Code