gh-subtrees

Installation
SKILL.md

gh-subtrees

Overview

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)
└── ...

Sub-skills

CRITICAL: You MUST load the appropriate sub-skill from the sub-skills/ directory based on user intent.

Related skills
Installs
9
GitHub Stars
2
First Seen
Mar 2, 2026