git-stack

git-stack is a skill for Claude Code from chaunsin/agent-skills. It costs 27 tokens per session (466 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 Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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.

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 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 466 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.00027 $0.00466
Opus 5.5 $0.00011 $0.00186
Sonnet 5.5 $0.00005 $0.00093
Haiku 4.5 $0.00003 $0.00047

Measured 23d ago against content hash 5000f8f7957c, 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 23d 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 · 41 lines

What it actually says

git stack

解决代码提交,推送,合并冲突操作。

注意 : 在开始之前需读取项目中得AGENTS.md,CLAUDE.md,README.md中得提交规范。如存在则规则优先级为: 用户提示词 > AGENTS.md > 本技能

使用场景

  1. 用户说:提交代码,推送代码,push代码。
  2. 解决代码合并冲突问题。
  3. 创建工作树worktree

门禁

  1. 相关git操作必须在有.git/ 管理的目录下操作,否则退出并引导用户创建工作区或切换到对应工作区目录。
  2. 宿主机需要提前安装好git CLI,否则退出并引导用户安装git CLI 以及授权等.

功能列表

功能 链接 说明
代码提交 ./commit 代码提交
代码合并冲突 ./conflict 代码冲突解决。
工作区worktree ./worktree 工作区,worktree创建
PR、Issues、github相关操作 优先使用gh操作相关技能,没有则直接使用gh命令

危险操作

  • 永远不要更新 Git 配置
  • 未经明确请求,切勿运行破坏性命令(例如 --force、硬重置)。
  • 除非用户要求,否则绝不跳过钩子(--no-verify)。
  • 切勿强行推送至主目录/主分支
  • 如果由于钩子导致提交失败,请修复并创建新的提交(不要修改现有提交)。
  • 不经请示申请,私自读取用户私钥内容如 ~/.ssh/*、/root/.ssh/*、%USERPROFILE%\\.ssh、C:\\Users\\{用户名}\\.ssh\\ 等
Files

What ships with it

3 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. 23d ago Changed · -1 lines 5000f8f7957c
  2. 1mo ago Changed · -1 lines a231db2a4e6c
  3. 1mo 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 24d ago), licensed Apache-2.0. It adds 27 tokens to every session and 466 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-09-11.

Related

Other skills, from other repositories

git-workflow-and-versioning

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple…

addyosmani/agent-skills · 89 tokens

commit

Skill "commit" from clacky-ai/openclacky, covering smart commit skill, critical requirement: single-line commits only, core philosophy, usage and process steps.

clacky-ai/openclacky · 0 tokens

comet-safe-delivery

A Chinese-language procedure for safely delivering specified Comet changes through Git. It covers checking worktrees and unrelated edits, staging exact files, validating hooks, and authorized commits or pushes.

rpamis/comet · 78 tokens

devops-pipeline

Configure pre-commit hooks and lean GitHub Actions for shift-left quality assurance. Use when adding or auditing CI/CD to maximize local test coverage and minimize CI cost. Skip for Terraform/K8s, deployment pipelines, or non-GitHub CI providers.

luongnv89/skills · 56 tokens

github-pages-publish

Publish or update a static site (gh-pages) on GitHub Pages via GitHub Actions in any repo: text or pre-built HTML in, workflow set up, live URL verified. Don't use for CI test pipelines, framework/SSG builds, or Netlify/Vercel hosting.

luongnv89/skills · 63 tokens

ship

Run a release end to end, autonomous by default: version bump everywhere, changelog, docs, landing page, tag, push, GitHub release, PyPI/npm. Use to ship, cut, or tag a release. Don't use for routine commits, pull requests, or marketplace publishing.

luongnv89/skills · 61 tokens