git-workflow SKILL.md skillA
git-workflow from laolaoshiren/claude-code-skills-zh is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add laolaoshiren/claude-code-skills-zh/git-workflow@git:20260715.81812dcPins git:20260715.81812dc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- laolaoshiren/claude-code-skills-zh
- Path
skills/git-workflow/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260715.81812dc, committed Jul 15, 2026
- First version recorded
- Apr 14, 2026
- Size
- 4,069 bytes
- Repository stars
- 869
- License
- MIT
安全处理 Git 状态检查、提交信息、commit、分支、push、PR 和 rebase。用于用户要求检查改动、生成或创建提交、管理分支、推送、发起 PR 或整理历史时;严格区分每个动作的授权,并保护工作树中已有和无关的修改。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Git 工作流助手 ## 核心原则 - 只执行用户明确要求的 Git 动作。生成提交信息不等于暂存或提交;提交不等于推送;创建 PR 不等于合并 PR、关闭 Issue 或发布 Release。 - 把工作树中已有、未跟踪和无关的修改视为用户资产,不覆盖、不回退、不混入本轮提交。 - 优先使用非交互命令。涉及历史重写、冲突选择或远程覆盖时降低自动化程度。 ## 工作流程 ### 1. 读取仓库规则与状态 先阅读适用的 `AGENTS.md`、`CONTRIBUTING.md`、README、提交规范和 CI 说明,再检查: ```bash 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、修改已发布历史、强制更新远程 | 高风险,必须明确授权并满足额外条件 | 存在无关改动时不得使用 `git add .` 或 `git add -A`。逐个暂存目标文件,并用 `git diff --cached` 复核。 ### 3. 规划原子提交 - 根据真实 diff 判断 `feat`、`fix`、`docs`、`refactor`、`test`、`perf` 或 `chore`。 - 沿用仓库近期提交的语言、scope 和格式。 - 一个提交只表达一项可独立理解和验证的改动。 - `Closes #123` 仅在对应 Issue 确实应由该提交自动关闭时使用。 提交信息遵循: ```text <type>(<scope>): <简短描述> <必要时说明原因、关键实现和兼容性> <关联 Issue 或 Breaking Change> ``` ### 4. 验证后执行 …
Read the whole file at its exact version.
How to install
mdr add laolaoshiren/claude-code-skills-zh/git-workflow@sha256:9e5f270012457e43The line at the top of this page pins the label git:20260715.81812dc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_lzcitigigsym33g5)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Apr 14, 2026 and Jul 15, 2026, about one every 46 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260715.81812dc latest | 2026-07-15 | 81812dc | 4,069 B | A | view · diff |
| git:20260617.b8acb5f | 2026-06-17 | b8acb5f | 2,700 B | A | view · diff |
| git:20260414.3583839 | 2026-04-14 | 3583839 | 925 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4069 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
laolaoshiren/claude-code-skills-zh · 869 stars · license MIT · pushed 2026-09-22 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_lzcitigigsym33g5 GET https://markdownregistry.com/api/v1/resolve?ref=laolaoshiren/claude-code-skills-zh/git-workflow GET https://markdownregistry.com/api/v1/blob/9e5f270012457e43670891fc8512b4a16ade9e8f332e4a4f7d94ffb048b6bc55
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from laolaoshiren/claude-code-skills-zh
Every file in laolaoshiren/claude-code-skills-zh