git-workflow SKILL.md skillA
git-workflow from cat-xierluo/legal-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cat-xierluo/legal-skills/git-workflow@v1.25.0Pins v1.25.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cat-xierluo/legal-skills
- Path
skills/git-workflow/SKILL.md- Versions recorded
- 6
- Latest version
- v1.25.0, committed Nov 1, 2026
- First version recorded
- Oct 13, 2026
- Size
- 8,368 bytes
- Repository stars
- 775
- License
- none declared
Git 工作流安全助手。用于分支与 worktree 管理、主目录 main 防切换保护、Skill 稀疏检出、PR 创建/审查/合并,以及提交身份和隐私检查;也支持 CI 额度治理、敏感文件历史撤回与仓库瘦身。不要用于批量生成提交信息、项目任务分配或本地 Agent 会话编排。.
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 的范围、身份、候选和交付规则。先读取用户授权、项目规则与完整任务卡,确定仓库、允许路径、目标分支、预期身份和验收;只加载当前场景需要的参考文档。 ## 场景路由 在相应操作前读取该行的合同;跨场景任务按执行顺序读取,不一次性加载全部 references。 | 当前需求 | 读取与执行入口 | |---|---| | 本地隔离开发到交付、基准落后或共享主树被占用 | [本地 Worktree SOP](references/local-worktree-sop.md) | | 新建或限缩 Skill/套件工作树、跨目录占用审计 | [稀疏工作树](references/sparse-worktree.md);创建用 `scoped-worktree.py`,完整登记只读审计用 `sparse-worktree-audit.py` | | 提交身份、Co-authored-by 污染、已合历史回执、完整 PR 范围推送 | [身份与推送](references/identity-and-push.md),再按内容读取[隐私预检](references/privacy-preflight.md) | | PR 创建/审查/合并、CI 未知、冲突或更新 base | [PR 流程](references/pr-workflow.md);文本与完整历史核验读取[隐私预检](references/privacy-preflight.md) | | 主目录固定 main、具名集成前保全工作区、审查隔离 | [主目录分支保护](references/main-directory-protection.md);先用 `main-directory-snapshot.py` 保存并复验恢复点,再用 `main-git-gate.py` 执行已核采用;快照与门禁均不代表运行时已强制接入 | | Monorepo 窄采用、cherry-pick 与冲突 | [改动集成](references/change-integration.md) | | 误 amend / stash / 删分支 / reset 的事故恢复 | [事故恢复](references/accident-recovery.md);先定位证据,再按授权恢复 | | Skill 连续迭代、候选观察、长期功能线或里程碑 | [长期集成分支](references/long-lived-integration-branch.md) | …
Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/git-workflow@sha256:5b74d3c076186e2dThe line at the top of this page pins the label v1.25.0, 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_nhkbfdehfk5wroi3)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Oct 13, 2026 and Nov 1, 2026, about one every 4 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.25.0 latest | 2026-11-01 | c8f02a5 | 8,368 B | A | view · diff |
| v1.24.2 | 2026-10-21 | a9c146c | 8,234 B | A | view · diff |
| v1.24.1 | 2026-10-21 | dd42866 | 8,234 B | A | view · diff |
| v1.24.0 | 2026-10-18 | ec2572b | 8,234 B | A | view · diff |
| v1.23.2 | 2026-10-15 | 5173907 | 8,234 B | A | view · diff |
| v1.23.2 | 2026-10-13 | 397b93d | 8,243 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 (8368 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
cat-xierluo/legal-skills · 775 stars · license none declared · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_nhkbfdehfk5wroi3 GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/git-workflow GET https://markdownregistry.com/api/v1/blob/5b74d3c076186e2d5595ee9191a90f9cab85505e030511464374930e2cb31b03
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 cat-xierluo/legal-skills
Every file in cat-xierluo/legal-skills