subtree-publish SKILL.md skillA
subtree-publish 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/subtree-publish@v1.7.1Pins v1.7.1 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/subtree-publish/SKILL.md- Versions recorded
- 5
- Latest version
- v1.7.1, committed Jun 22, 2026
- First version recorded
- Apr 20, 2026
- Size
- 12,068 bytes
- Repository stars
- 775
- License
- none declared
将 monorepo 中的子目录通过 git subtree 推送到独立 GitHub 仓库。支持注册清单、变更自动检测、增量推送。本技能应在用户提交涉及已注册子项目的变更后,或手动请求推送到独立仓库时使用。不要用于初次创建 monorepo 或管理 git submodule。.
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
# Subtree Publish 将 monorepo 中指定子目录通过 `git subtree push` 推送到独立 GitHub 仓库。 文件只存一份(在 monorepo 中),一条命令同步到独立仓库。 ## 前置条件 - 当前工作目录是 monorepo 根目录 - 子目录位于 `<prefix>/<name>/` - 已安装上述依赖(git subtree、gh、jq) ## 依赖 ### 系统依赖 | 依赖 | 用途 | 安装方式 | |------|------|----------| | git(含 subtree) | 子目录拆分与推送 | macOS: 已预装 | | gh | GitHub CLI,创建仓库和认证 | macOS: `brew install gh` | | jq | JSON 配置解析 | macOS: `brew install jq` | ## 使用方式 ### 1. 自动检测并推送(推荐) 当用户完成一次 git commit 后,如果本次提交涉及清单中的子项目: ```bash bash scripts/subtree-push.sh --auto ``` 脚本会检查最近一次 commit 涉及的文件,如果命中清单中的子目录,自动推送到对应独立仓库。 **触发时机:** 用户说"提交完了"、"帮我推到独立仓库"、"同步 subtree"时,先检查是否有清单中的子项目被修改。 ### 2. 首次注册新子项目 当用户说"注册 subtree"、"新增独立仓库发布"时: **Step 1: 确认子目录存在** ```bash ls <prefix>/<name>/SKILL.md ``` **Step 2: 前置校验 — 检查 README.md** 在执行任何远程操作之前,必须先检查子目录中是否已存在 `README.md`: ```bash ls <prefix>/<name>/README.md ``` - **如果不存在**:必须先创建 README.md,才能继续后续步骤。不得跳过。创建时参照 `references/readme-template.md` 模板。 - **如果已存在**:跳过创建,继续下一步。 README.md 是独立 GitHub 仓库的人类展示页,不是 skill runtime 文件。创建或重写时必须遵守: - **首屏讲清结果**:标题、首段和引用句必须让访客在 30 秒内知道“这个 skill 帮谁,在什么场景下,产出什么”。不要先讲 frontmatter、目录结构或内部实现。 - **真实提问开场**:在前半部分放一个真实用户提问和 AI 介入方式,优先展示“怎么用”,而不是罗列功能。 …
Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/subtree-publish@sha256:aba707bf8772fe9cThe line at the top of this page pins the label v1.7.1, 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_y56b3bepmtwivkxn)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Apr 20, 2026 and Jun 22, 2026, about one every 16 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.7.1 latest | 2026-06-22 | a72da9c | 12,068 B | A | view · diff |
| v1.7.1 | 2026-06-22 | 53dcd62 | 11,685 B | A | view · diff |
| v1.7.1 | 2026-06-04 | 35c4b56 | 11,488 B | A | view · diff |
| v1.7.0 | 2026-04-23 | 9d47e1e | 10,716 B | A | view · diff |
| v1.5.0 | 2026-04-20 | 9ec7e58 | 7,382 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 (12068 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_y56b3bepmtwivkxn GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/subtree-publish GET https://markdownregistry.com/api/v1/blob/aba707bf8772fe9cfb12862a1f9f26ae9c78697c47c5e65a39a1eb1ede828675
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.