🔀
DevOpsPython

Git Workflow

by laolaoshiren

Git Workflow is a DevOps skill for Claude Code, published by laolaoshiren in claude-code-skills-zh.

786 stars84 forkson laolaoshiren/claude-code-skills-zhAdded 2026/08/23+1% in starsRepository updated 2026/08/23
ai-agentawesome-listclaude-codeclaude-skillsdeveloper-toolsprompt-engineeringskills
Install in seconds
Install Git Workflow
Copy Git Workflow into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/laolaoshiren/claude-code-skills-zh/tree/main/skills/git-workflow ~/.claude/skills/git-workflow

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/laolaoshiren/claude-code-skills-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/git-workflow/SKILL.md in laolaoshiren/claude-code-skills-zh
Installs to
~/.claude/skills/git-workflow
Collection
One of 20 skills cataloged from this repository
Category
DevOps798 skills

What Git Workflow does

Git Workflow 安全处理状态检查、提交、分支、push、PR 和 rebase。用于检查改动、生成或创建提交、管理分支、推送、发起 PR 或整理历史时,严格区分授权并保护无关修改。

Git Workflow is cataloged under DevOps on DirSkills. Git Workflow comes from a repository tagged ai-agent, awesome-list, claude-code, claude-skills and developer-tools.

Documentation

README

Git 工作流助手

核心原则

  • 只执行用户明确要求的 Git 动作。生成提交信息不等于暂存或提交;提交不等于推送;创建 PR 不等于合并 PR、关闭 Issue 或发布 Release。
  • 把工作树中已有、未跟踪和无关的修改视为用户资产,不覆盖、不回退、不混入本轮提交。
  • 优先使用非交互命令。涉及历史重写、冲突选择或远程覆盖时降低自动化程度。

工作流程

1. 读取仓库规则与状态

先阅读适用的 AGENTS.mdCONTRIBUTING.md、README、提交规范和 CI 说明,再检查:

git status --short --branch
git diff
git diff --cached
git log --oneline -10
git remote -v
git branch -vv

同时识别未跟踪文件、当前分支、upstream、远程差异和已有失败。不得只看 staged diff。

2. 明确动作与文件范围

把用户请求拆成独立授权:

动作 默认权限
分析状态、生成 commit message 或 PR 文案 只读
暂存、commit 仅用户要求后执行,只选本轮相关文件
创建或切换分支 仅用户明确要求时执行;实现流程需要但未获授权时,先说明原因并取得同意
fetch、push、创建 PR 分别确认在请求范围内,不互相推导
merge、关闭 Issue、发布 Release 必须有明确授权
rebase、修改已发布历史、强制更新远程 高风险,必须明确授权并满足额外条件

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Git Workflow

  • What else does laolaoshiren publish alongside Git Workflow?

    Git Workflow is one of 20 skills that DirSkills catalogs from laolaoshiren/claude-code-skills-zh, the repository it ships in. Its siblings there include API Tester, Changelog Generator and Chinese Code Reviewer. Each one is a separate skill with its own page in this directory, installs the same way Git Workflow does, and is maintained by laolaoshiren in that same repository. The rest of the collection is listed on the laolaoshiren/claude-code-skills-zh page.

  • How does Git Workflow compare to other DevOps skills?

    Git Workflow ranks #540 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Git Workflow against them. Open each page to compare what they document and how they install.

More from laolaoshiren/claude-code-skills-zh

Git Workflow is one of 20 skills cataloged on DirSkills from laolaoshiren/claude-code-skills-zh.

See all 20 skills