Setup
Prorise-cool/Claude-Code-Multi-Agent
Complete guide to installing Git and performing basic configuration across all platforms (Windows, macOS, Linux, WSL).
将 monorepo 中的子目录通过 git subtree 推送到独立 GitHub 仓库。支持注册清单、变更自动检测、增量推送。本技能应在用户提交涉及已注册子项目的变更后,或手动请求推送到独立仓库时使用。不要用于初次创建 monorepo 或管理 git submodule。
$ npx skills add cat-xierluo/legal-skills --skill subtree-publish -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cat-xierluo/legal-skills subtree-publish --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/subtree-publish .claude/skills/subtree-publish && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "subtree-publish" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/subtree-publish into .claude/skills/subtree-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subtree-publish", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cat-xierluo/legal-skills/tree/main/skills/subtree-publishType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cat-xierluo/legal-skills --skill subtree-publish -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cat-xierluo/legal-skills subtree-publish --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/subtree-publish .agents/skills/subtree-publish && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "subtree-publish" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/subtree-publish into .agents/skills/subtree-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subtree-publish", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill subtree-publish -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cat-xierluo/legal-skills subtree-publish --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/subtree-publish .cursor/skills/subtree-publish && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "subtree-publish" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/subtree-publish into .cursor/skills/subtree-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subtree-publish", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cat-xierluo/legal-skills.git --path skills/subtree-publish--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cat-xierluo/legal-skills --skill subtree-publish -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cat-xierluo/legal-skills subtree-publish --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/subtree-publish .gemini/skills/subtree-publish && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "subtree-publish" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/subtree-publish into .gemini/skills/subtree-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subtree-publish", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cat-xierluo/legal-skills subtree-publishInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cat-xierluo/legal-skills --skill subtree-publish -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/subtree-publish .github/skills/subtree-publish && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "subtree-publish" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/subtree-publish into .github/skills/subtree-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subtree-publish", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill subtree-publish -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cat-xierluo/legal-skills subtree-publish --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/subtree-publish .opencode/skills/subtree-publish && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "subtree-publish" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/subtree-publish into .opencode/skills/subtree-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subtree-publish", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
subtree-publish将 monorepo 中的子目录通过 git subtree 推送到独立 GitHub 仓库。支持注册清单、变更自动检测、增量推送。本技能应在用户提交涉及已注册子项目的变更后,或手动请求推送到独立仓库时使用。不要用于初次创建 monorepo 或管理 git submodule。
Subtree Publish is an agent skill from cat-xierluo/legal-skills. 将 monorepo 中的子目录通过 git subtree 推送到独立 GitHub 仓库。支持注册清单、变更自动检测、增量推送。本技能应在用户提交涉及已注册子项目的变更后,或手动请求推送到独立仓库时使用。不要用于初次创建 monorepo 或管理 git submodule。
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts and reference files (for example `CHANGELOG.md`, `config/readme-profile.example.json` and `config/subtree-skills.example.json`).
It sits in Development, covering Monorepo tooling and Git workflow. It works with Git, GitHub and macOS. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
gitbashghbrewFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Subtree Publish loads about 1.8k tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 39 tokens; SKILL.md has 518 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
| `**/.env`、`**/.env.*` | 环境变量文件(含密钥风险) |Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from cat-xierluo/legal-skills at commit db2c58c, republished under its MIT licence (© cat-xierluo). 518 words, ~1,782 tokens.
.claude/skills/subtree-publish/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.将 monorepo 中指定子目录通过 git subtree push 推送到独立 GitHub 仓库。
文件只存一份(在 monorepo 中),一条命令同步到独立仓库。
<prefix>/<name>/| 依赖 | 用途 | 安装方式 |
|---|---|---|
| git(含 subtree) | 子目录拆分与推送 | macOS: 已预装 |
| gh | GitHub CLI,创建仓库和认证 | macOS: brew install gh |
| jq | JSON 配置解析 | macOS: brew install jq |
当用户完成一次 git commit 后,如果本次提交涉及清单中的子项目:
bash scripts/subtree-push.sh --auto脚本会检查最近一次 commit 涉及的文件,如果命中清单中的子目录,自动推送到对应独立仓库。
触发时机: 用户说"提交完了"、"帮我推到独立仓库"、"同步 subtree"时,先检查是否有清单中的子项目被修改。
当用户说"注册 subtree"、"新增独立仓库发布"时:
Step 1: 确认子目录存在
ls <prefix>/<name>/SKILL.mdStep 2: 前置校验 — 检查 README.md
在执行任何远程操作之前,必须先检查子目录中是否已存在 README.md:
ls <prefix>/<name>/README.mdreferences/readme-template.md 模板。README.md 是独立 GitHub 仓库的人类展示页,不是 skill runtime 文件。创建或重写时必须遵守:
SKILL.md frontmatter 和 LICENSE.txt 保持一致;CC BY-NC 类 skill 应提示商用授权联系方式以 LICENSE.txt 为准。如需统一作者信息、二维码、主仓库链接或相关项目推荐,先读取 config/readme-profile.json;该文件为本地个性化配置,默认不提交。没有本地配置时,参考 config/readme-profile.example.json 的字段结构,并用通用占位符生成 README。
写作前按复杂度选择 profile:
minimal:简单工具型 skill。保留“典型场景 / 能产出什么 / 安装方式 / 使用边界 / 许可证 / 作者 / 关联项目”。standard:大多数公开 skill。在 minimal 基础上增加“适合谁用 / 当前覆盖范围 / 常见用法”。showcase:重点推广、复杂法律或高风险 skill。在 standard 基础上增加“项目解决什么问题 / 核心设计 / 示例输出 / 质量支撑 / 关键文件”。发布前用以下检查清单复核 README:
Step 3: 创建独立 GitHub 仓库(如果需要首次设置)
gh repo create <org>/<repo-name> --public --description "<描述>"Step 4: 添加 remote
git remote add <name>-standalone https://github.com/<org>/<repo-name>.gitStep 5: 首次推送
git subtree push --prefix=<prefix>/<name> <name>-standalone mainStep 6: 注册到清单
将子项目信息加入 config/subtree-skills.json,并更新上面的清单表格。
Step 7: 创建首个 Release
首次推送后,运行脚本创建 GitHub Release:
bash scripts/create-release.sh <name>bash scripts/subtree-push.sh <name> [--setup] [--dry-run]--setup: 同时创建 GitHub 仓库和添加 remote--dry-run: 只显示将要执行的操作,不实际推送独立仓库的 remote 名称统一为 <name>-standalone。
每次 subtree push 后,自动检查是否需要创建 GitHub Release。
<prefix>/<name>/SKILL.md 中的 version 字段,获取当前版本号gh release list --repo <org>/<repo-name> --limit 1 检查最新 Release 的 tagv<version> tag 尚不存在,则创建 Releasebash scripts/create-release.sh <name> [--dry-run]脚本会自动完成:读取版本号 → 检查已有 Release → 提取 CHANGELOG → 打包(排除 README.md 和 .DS_Store)→ 创建 Release。
<prefix>/<name>/CHANGELOG.md 提取对应版本的变更记录"发布 v<version>"压缩包解压后得到 <name>/ 文件夹(如 code2patent/),用户直接放入 .claude/skills/ 即可使用。
排除规则(create-release.sh 中 zip -r 的 -x 参数):
| 排除模式 | 理由 |
|---|---|
*.DS_Store | macOS 系统文件 |
README.md | 面向独立仓库浏览者,不属于 skill 运行时文件 |
archive/、archive/** | 历史审核/处理记录,含用户真实数据 |
output/、output/** | 运行时输出产物 |
**/__pycache__、**/__pycache__/* | Python 编译缓存 |
**/*.pyc、**/*.log | Python 编译缓存、日志 |
**/*.tmp、**/*.bak | 临时/备份文件 |
**/.env、**/.env.* | 环境变量文件(含密钥风险) |
DECISIONS.md | 本地决策记录与工作日志,含内部细节,不对外发布 |
TASKS.md | 本地任务清单,不属于 skill 运行时文件 |
config/*.json | 本地个性化配置,仅保留 *.example.json |
排除规则的完整性通过比对 .gitignore 中 **/archive/*、**/output/*、**/__pycache__/、**/DECISIONS.md、**/TASKS.md 等规则保证。脚本不主动读 .gitignore,而是用显式 -x 模式覆盖常见场景。新增排除需求时同步更新此处表格。
支持非连续版本号(如 1.2.0 → 1.2.2,跳过 1.2.1)。每次只为当前推送的版本创建 Release,不会补建中间版本的 Release。
git subtree push 在大仓库上可能较慢,这是正常的.gitignore 控制.claude/skills/<name> 指向 skills/<name>(如 legal-skills),手动提交 skill 自身改动时 git add .claude/skills/<name>/... 会报“pathspec 位于符号链接中”;改用真实物理路径 git add skills/<name>/... 即可。本 skill 的推送和打包脚本内部已统一使用 skills/ 前缀,不受此 symlink 影响。实际配置文件位于 config/subtree-skills.json,用于 --auto 模式检测和仓库名映射。如需新建配置,可参考 config/subtree-skills.example.json。
字段说明:
prefix: 子目录前缀(相对于 monorepo 根目录)org: GitHub 组织/用户名skills: 子项目数组name: 子目录名称(必填)repo: 独立仓库名(可选,默认为 <name>.skill)version: 当前 SKILL.md 中的版本号(可选,用于核查是否需要发布新 Release)last_release: 最新已发布的 Release tag(可选,如 v1.0.0)last_updated: 最近一次 subtree push 或 Release 更新时间(可选,格式 YYYY-MM-DDTHH:MM:SS)本地 README 个性化配置。用于统一生成独立仓库 README 的作者入口、二维码、上游项目导流和相关项目推荐。该文件通常包含个人或项目特定信息,应保留在本地;发布包和版本库只保留 config/readme-profile.example.json。
读取优先级:
config/readme-profile.json(本地固定配置)config/readme-profile.example.json(字段结构示例)references/readme-template.md 中的通用占位符常用环境变量:
SUBTREE_README_UPSTREAM_NAMESUBTREE_README_UPSTREAM_URLSUBTREE_README_AUTHOR_DISPLAYSUBTREE_README_WECHAT_IDSUBTREE_README_QR_IMAGE_URLSUBTREE_README_CONTACT_DEFAULTSUBTREE_README_CONTACT_LEGALSUBTREE_README_CONTACT_TOOL推荐字段:
upstream: 上游项目或技能集合信息author: 作者展示名、联系方式、二维码图片 URLcontact_messages: 默认、法律业务类、工具类联系文案related_projects: 可推荐的相关项目池skill_overrides: 按 skill 名定制推荐项目、联系文案或 profile发布规则:
readme-profile.json 写入公开发布包scripts/create-release.sh 会排除非 example 的 config/*.json,保留 *.example.json独立仓库名默认在子目录名后追加 .skill 后缀。例如:
opc-legal-counsel → opc-legal-counsel.skillcode2patent → code2patent.skill用户可以在 config/subtree-skills.json 中通过 repo 字段显式指定不同的仓库名,但如果不指定则自动使用 <name>.skill。
自动化 subtree 推送流程,支持 --auto 变更检测和仓庝名映射。
自动化 GitHub Release 创建流程。用法:bash scripts/create-release.sh <name> [--dry-run]
脚本自动完成:读取 SKILL.md 版本号 → 检查已有 Release → 提取 CHANGELOG 作为 Release Notes → 打包(排除 README.md 和 .DS_Store,解压后得到 <name>/ 文件夹)→ 创建 Release 并附上压缩包。
© cat-xierluo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files (scripts, references) in skills/subtree-publish of cat-xierluo/legal-skills.
Open the folder on GitHubat commit db2c58c
Subtree Publish next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Subtree Publish this skillcat-xierluo/legal-skills | 720 | — | ~1.8k | Automated safety check: Notes | MIT | |
| SetupProrise-cool/Claude-Code-Multi-Agent | 306 | — | ~3k | Automated safety check: Notes | None | |
| Git ConfigProrise-cool/Claude-Code-Multi-Agent | 306 | — | ~4.4k | Automated safety check: Notes | None | |
| Gui ToolsProrise-cool/Claude-Code-Multi-Agent | 306 | — | ~2.4k | Automated safety check: Notes | None | |
| Line EndingsProrise-cool/Claude-Code-Multi-Agent | 306 | — | ~3.1k | Automated safety check: Notes | None | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT |
Prorise-cool/Claude-Code-Multi-Agent
Complete guide to installing Git and performing basic configuration across all platforms (Windows, macOS, Linux, WSL).
Prorise-cool/Claude-Code-Multi-Agent
Comprehensive Git configuration guide covering global settings, aliases, performance tuning, credential management, maintenance, .gitattributes, clone shortcuts, and troubleshooting.
Prorise-cool/Claude-Code-Multi-Agent
Provides guidance for installing, configuring, and choosing Git graphical interface clients (GitKraken, Sourcetree, GitHub Desktop) across platforms.
Prorise-cool/Claude-Code-Multi-Agent
Comprehensive guide to Git line ending configuration for cross-platform development teams.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
TryGhost/Ghost
Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.
cat-xierluo/legal-skills
Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.
cat-xierluo/legal-skills
Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.
cat-xierluo/legal-skills
Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.
cat-xierluo/legal-skills
Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.
cat-xierluo/legal-skills
Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.
cat-xierluo/legal-skills
Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.
Categories
将 monorepo 中的子目录通过 git subtree 推送到独立 GitHub 仓库。支持注册清单、变更自动检测、增量推送。本技能应在用户提交涉及已注册子项目的变更后,或手动请求推送到独立仓库时使用。不要用于初次创建 monorepo 或管理 git submodule。. Subtree Publish is an agent skill from cat-xierluo/legal-skills.
Subtree Publish fits situations like: tasks that involve Monorepo tooling; tasks that involve Git workflow.
Run `npx skills add cat-xierluo/legal-skills --skill subtree-publish -a claude-code`. Or copy the skill folder (skills/subtree-publish in cat-xierluo/legal-skills) into .claude/skills/subtree-publish in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cat-xierluo/legal-skills --skill subtree-publish -a codex`. Or copy the skill folder (skills/subtree-publish in cat-xierluo/legal-skills) into .agents/skills/subtree-publish in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill subtree-publish -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/subtree-publish, .gemini/skills/subtree-publish, .github/skills/subtree-publish and .opencode/skills/subtree-publish in your project.
Going by SKILL.md and its folder, Subtree Publish needs a shell for the scripts in its folder and the command-line tools its instructions call (git, bash, gh and brew). Our summary lists: Python 3; A Bash shell.
SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Subtree Publish is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Subtree Publish: Setup (Prorise-cool/Claude-Code-Multi-Agent, 306 stars), Git Config (Prorise-cool/Claude-Code-Multi-Agent, 306 stars), Gui Tools (Prorise-cool/Claude-Code-Multi-Agent, 306 stars) and Line Endings (Prorise-cool/Claude-Code-Multi-Agent, 306 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.
Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.