一键导入
gh-subtrees
Subtree publishing and project graduation. Publish monorepo changes to standalone GitHub repos, graduate projects from lab to production.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Subtree publishing and project graduation. Publish monorepo changes to standalone GitHub repos, graduate projects from lab to production.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Issue-driven development with worktree isolation. 5-stage pipeline (new, plan, work, review, merge) with human gates between stages. Use when creating tasks, planning, implementing, reviewing, or merging.
Start or join an inter-agent chat session. Two Claude Code sessions communicate via a shared markdown file in tmp/. Use when the user says "ai-chat", "start a chat", "agent chat", or provides a chat slug to join.
View and manage configurations and skills for AI agent CLI tools (Claude Code, Opencode). Use when checking config files, listing or managing skills, viewing model settings, comparing configs across tools, or performing common config operations.
Orchestrate external AI agent instances (Claude Code, Opencode, Gemini CLI) via SDK or CLI. This skill NEVER does work itself — it always delegates to an external agent.
Parse Word documents (.docx) into repository-friendly markdown artifacts. Use when users need to extract content from Word files, convert to markdown, or batch process document directories.
Parse Power BI files (.pbix) into repository-friendly JSON and CSV artifacts. Use when users need to extract metadata, measures, or data model structure from Power BI files.
| name | gh-subtrees |
| description | Subtree publishing and project graduation. Publish monorepo changes to standalone GitHub repos, graduate projects from lab to production. |
The monorepo uses git-sync to auto-commit and sync main every 2 minutes across machines (see your git-sync or auto-commit configuration). This means the commit history on main is not meaningful -- it's full of auto-commits like "vault backup: 2024-06-06 09:03:02".
This skill syncs monorepo subtrees with standalone GitHub repos using clean, rewritten commit history. The sync process uses rsync to copy the monorepo subtree into a worktree checked out from the remote, then the AI writes clean commit messages based on the diff and monorepo history. It also handles pulling genuine remote additions back into the monorepo.
monorepo main (messy git-sync auto-commits)
├── 40-code/41-subtrees/gtd-cc/ ──sync──→ github.com/.../gtd-cc (clean history)
├── 40-code/41-subtrees/my-project/ ──sync──→ github.com/.../my-project (clean history)
└── ...
CRITICAL: You MUST load the appropriate sub-skill from the sub-skills/ directory based on user intent.
subtrees-status.md: Diagnose subtree remote configuration and sync status
sync.md: Sync subtree between monorepo and standalone GitHub repo
graduate.md: Move project from lab to production with GitHub repo
sub-skills/40-code/41-subtrees/ is a subtree (convention-over-configuration)remote-<dirname> (e.g., remote-gtd-cc)40-code/41-subtrees.yaml (git remotes are local config and don't travel with the repo)