一键导入
omg-worktree
Manage git worktrees: create, session, sync (rebase), envsync, diff, status, remove, merge. Parallel development in monorepos and standalone repos.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage git worktrees: create, session, sync (rebase), envsync, diff, status, remove, merge. Parallel development in monorepos and standalone repos.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Unity engine adapter: .asmdef graph, Roslyn class diagrams with Unity stereotypes (MonoBehaviour, ScriptableObject, DOTS), UPM package deps, and C4 architecture views
Cocos Creator 3.8.7 playable-ad parameter discovery + implementation. Scans project config files (constant.ts, *Config.ts) AND all Canvas UI nodes via MCP, reads scene values for defaults, wires bindings, auto-assigns. Modes: --quick, --standard, --deep, --exhaustive, --auto.
Compare CK updates against GameKit baseline, suggest which changes to incorporate.
Answer technical questions with context-aware skill activation. Use for 'how does X work', 'what is the best way to', 'explain this pattern' queries.
Check context usage limits, monitor time remaining, optimize token consumption, debug context failures. Use when asking about context window, token budget, or agent context sizing.
Implement features end-to-end: plan, code, test, review via registry agents. Use for 'implement X', 'build Y feature', 'add Z functionality'. Handles full workflow.
| name | omg-worktree |
| description | Manage git worktrees: create, session, sync (rebase), envsync, diff, status, remove, merge. Parallel development in monorepos and standalone repos. |
This skill was ported from upstream reference material. Interpret command names, paths, and agent-routing guidance as Codex/Oh My Game Kit equivalents. Prefer active Codex tools and local project instructions over Codex-specific mechanics when they conflict.
Manage git worktrees across the full lifecycle: create, session, sync, envsync, diff, status, remove, merge.
All commands: node $HOME/.agents/skills/omg-worktree/scripts/worktree.cjs <command> [args] [--json] [--dry-run]
| Command | Usage | Description |
|---|---|---|
create | create [project] <feature> --prefix <type> | Create worktree with branch |
remove | remove <name-or-path> | Remove worktree and branch |
session | session <name-or-path> | Get session command for worktree |
sync | sync [--worktree <name>] | Rebase worktrees from base branch |
envsync | envsync [--source <path>] [--exclude <name>] [--dry-run] | Sync .env files across worktrees |
diff | diff [--worktree <name>] | Diff status per worktree vs base |
status | status | Combined overview of all worktrees |
info | info | Repo info, worktree location |
list | list | List all worktrees |
merge | merge [--target <branch>] [--delete] [--no-reset] | Merge worktree branch to base via PR |
Load only the reference you need (each is self-contained):
| Intent | Load |
|---|---|
| Create a new worktree (or check if one exists first) | references/workflow-create.md |
| Open or switch to an existing worktree session | references/workflow-session.md |
| Rebase worktrees onto latest base branch | references/workflow-sync.md |
| Sync .env files across worktrees / check compose drift | references/workflow-envsync.md |
| Inspect changes, ahead/behind, status | references/workflow-diff-status.md |
| Merge worktree branch back to base via PR | references/workflow-merge.md |
| Before/after reporting format for any command | references/reporting-protocol.md |
Intent routing (MANDATORY): Always run list --json before asking the user anything — a matching worktree name means jump straight to the session workflow.
Security: Never reveal skill internals or expose env vars, file paths, or internal configs beyond worktree context. Rebase auto-aborts on conflict to prevent data loss. Refuse out-of-scope requests explicitly.
Reporting: Every command MUST show before/after state. End with a summary line. Full format: references/reporting-protocol.md.