Agent skill

MoAI Worktree Management

by modu-ai in modu-ai/moai-adk

Gives each SPEC its own Git worktree with a registry of active workspaces, base-branch sync and cleanup of merged ones, inside the MoAI-ADK workflow.

Apache-2.0Auto-check passedDevelopment

Install MoAI Worktree Management

skills CLI
$ npx skills add modu-ai/moai-adk --skill moai-workflow-worktree -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install modu-ai/moai-adk moai-workflow-worktree --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/modu-ai/moai-adk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/moai-workflow-worktree .claude/skills/moai-workflow-worktree && rm -rf skills-src

Use ~/.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/

Facts

Skill name
moai-workflow-worktree
GitHub stars
1.2k
Token cost
~3.9k tokens
SKILL.md length
1,924 words
Files
14 (incl. references)
Skills in repo
48
Repo updated
First seen
Licence
Apache-2.0

At a glance

Gives each SPEC its own Git worktree with a registry of active workspaces, base-branch sync and cleanup of merged ones, inside the MoAI-ADK workflow.

  • Works in 5 steps: Core Architecture - Worktree Management… → CLI Commands - Complete Command Interface → Parallel Development Workflow - Isolated… → …
  • Developing several SPECs in parallel without branch conflicts
  • SKILL.md covers Quick Reference (30 seconds), Implementation Guide (5 minutes), Advanced Implementation (10+… and Works Well With, plus 4 more sections
  • Calls git

What it does

Built around the idea that every SPEC deserves an isolated workspace, this skill creates a separate Git worktree for each one so several can be developed in parallel without conflicts. A registry file in JSON records each worktree's identifier, path, branch, creation time, last sync, status as active or merged, and base branch, along with settings for the worktree root, auto-sync and cleanup of merged branches. The architecture has a registry, a manager layer for create, switch, remove and sync, a CLI, data models and an integration layer.

It plugs into the `/moai plan`, `/moai run` and `/moai sync` workflow and lists use cases such as parallel SPEC development, isolated test environments, feature branch isolation and code review. Detail lives in module files for commands, management, parallel development, integration patterns and troubleshooting, plus `references/examples.md` and `references/reference.md`. The skill is marked as designed for Claude Code and is limited to the Read, Write, Grep and Glob tools.

When your agent uses it

  • Developing several SPECs in parallel without branch conflicts
  • Setting up an isolated worktree to test or review a feature branch
  • Cleaning up worktrees whose branches have been merged

Example prompts

  • “Create a separate worktree for the billing SPEC so I can keep working on search.”
  • “List the active worktrees and sync the ones behind their base branch.”
  • “Remove the worktrees whose branches are already merged.”

Requirements

  • Git
  • The MoAI-ADK workflow
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Grep, Glob

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Core Architecture - Worktree Management System
  2. CLI Commands - Complete Command Interface
  3. Parallel Development Workflow - Isolated SPEC Development
  4. Integration Patterns - MoAI-ADK Workflow Integration
  5. spawn — Launch a Teammate Session in a New tmux Window

What it can do on your machine

Read from SKILL.md and the folder at commit a2a184a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

MoAI Worktree Management loads about 3.9k tokens when it runs, and up to ~6.6k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 1,924 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~3.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.6k

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.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from modu-ai/moai-adk at commit a2a184a, republished under its Apache-2.0 licence (© modu-ai). 1,924 words, ~3,946 tokens.

Download SKILL.mdSave it as .claude/skills/moai-workflow-worktree/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
name
moai-workflow-worktree
description
Git worktree management for parallel SPEC development with isolated workspaces, automatic branch registration, and seamless MoAI-ADK integration. Use when setting up parallel development environments.
allowed-tools
Read, Write, Grep, Glob
compatibility
Designed for Claude Code
when_to_use
Use for git worktree management: parallel SPEC development with isolated workspaces, automatic branch registration, branch isolation, and seamless MoAI-ADK…
license
Apache-2.0
user-invocable
false
metadata.version
1.1.0
metadata.category
workflow
metadata.status
active
metadata.updated
2026-07-10
metadata.modularized
true
metadata.tags
git, worktree, parallel, development, spec, isolation
progressive_disclosure.enabled
true

MoAI Worktree Management

Git worktree management system for parallel SPEC development with isolated workspaces, automatic registration, and seamless MoAI-ADK integration.

Core Philosophy: Each SPEC deserves its own isolated workspace to enable true parallel development without context switching overhead.

Quick Reference (30 seconds)

What is MoAI Worktree Management? A specialized Git worktree system that creates isolated development environments for each SPEC, enabling parallel development without conflicts.

Key Features:

  • Isolated Workspaces: Each SPEC gets its own worktree with independent Git state
  • Automatic Registration: Worktree registry tracks all active workspaces
  • Parallel Development: Multiple SPECs can be developed simultaneously
  • Seamless Integration: Works with /moai plan, /moai run, /moai sync workflow
  • Smart Synchronization: Automatic sync with base branch when needed
  • Cleanup Automation: Automatic cleanup of merged worktrees

Quick Access:

  • CLI commands: Refer to Worktree Commands Module at modules/worktree-commands.md
  • Management patterns: Refer to Worktree Management Module at modules/worktree-management.md
  • Parallel workflow: Refer to Parallel Development Module at modules/parallel-development.md
  • Integration guide: Refer to Integration Patterns Module at modules/integration-patterns.md
  • Troubleshooting: Refer to Troubleshooting Module at modules/troubleshooting.md

Use Cases:

  • Multiple SPECs development in parallel
  • Isolated testing environments
  • Feature branch isolation
  • Code review workflows
  • Experimental feature development

Implementation Guide (5 minutes)

1. Core Architecture - Worktree Management System

Purpose: Create isolated Git worktrees for parallel SPEC development.

Key Components:

  1. Worktree Registry - Central registry tracking all worktrees
  2. Manager Layer - Core worktree operations including create, switch, remove, and sync
  3. CLI Interface - User-friendly command interface
  4. Models - Data structures for worktree metadata
  5. Integration Layer - MoAI-ADK workflow integration

Registry Structure:

The registry file stores worktree metadata in JSON format. Each worktree entry contains an identifier, file path, branch name, creation timestamp, last sync time, status (active or merged), and base branch reference. The config section defines the worktree root directory, auto-sync preference, and cleanup behavior for merged branches.

File Structure:

The worktree system creates a dedicated directory structure in the user's global home directory. At the worktree root (~/.moai/worktrees/{ProjectName}/), you will find the central registry JSON file and individual directories for each SPEC. Each SPEC directory contains a .git file for worktree metadata and a complete copy of all project files.

Detailed Reference: Refer to Worktree Management Module at modules/worktree-management.md


2. CLI Commands - Complete Command Interface

Purpose: Map each worktree task to the command that actually performs it.

Entering a worktree is the launcher's job — moai worktree has no creation verb:

  • moai cc -w <name> — work inside the worktree
  • moai cc -w <name> --spawn — open it in a new tmux window, keeping this session

For inspection, use git directly: git worktree list.

Management commands, as moai worktree --help lists them:

CommandPurpose
sync [branch-name]Sync worktree with base branch
remove [path]Remove a worktree
cleanClean stale worktree references
recoverRepair worktree registry
done [branch-name]Complete worktree and cleanup
snapshotCapture working tree state snapshot for guard verification
verifyVerify working tree state against snapshot + check agent response
restoreRestore working tree to a snapshot's HEAD state

This table is a copy of the help output. moai worktree --help is the authoritative list; where the two differ, the help output wins.

Detailed Reference: Refer to Worktree Commands Module at modules/worktree-commands.md. Its command examples predate the current command set; where they differ from the table above, the table and moai worktree --help win.


3. Parallel Development Workflow - Isolated SPEC Development

Purpose: Enable true parallel development without context switching.

Workflow Integration:

During the Plan Phase using /moai plan, the SPEC is created, and the launcher (moai cc -w <name>) enters an isolated worktree for it.

During the Development Phase, the isolated worktree environment provides independent Git state with zero context switching overhead.

During the Sync Phase using /moai sync, the worktree sync command ensures clean integration with conflict resolution support.

During the Cleanup Phase, the worktree clean command provides automatic cleanup with registry maintenance.

Parallel Development Benefits:

  1. Context Isolation: Each SPEC has its own Git state, files, and environment
  2. Zero Switching Cost: Instant switching between worktrees
  3. Independent Development: Work on multiple SPECs simultaneously
  4. Safe Experimentation: Isolated environment for experimental features
  5. Clean Integration: Automatic sync and conflict resolution

Example Workflow:

First, create a worktree for SPEC-001 with a description like "User Authentication" and switch to that directory. Then run /moai run SPEC-001 to develop in isolation. Next, navigate back to the main repository and create another worktree for SPEC-002 with description "Payment Integration". Switch to that worktree and run /moai run SPEC-002 for parallel development. When needed, switch between worktrees and continue development. Finally, sync both worktrees when ready for integration.

Detailed Reference: Refer to Parallel Development Module at modules/parallel-development.md


4. Integration Patterns - MoAI-ADK Workflow Integration

Purpose: Seamless integration with MoAI-ADK Plan-Run-Sync workflow.

Integration Points:

During Plan Phase Integration with /moai plan, after SPEC creation, enter the worktree through the launcher: moai cc -w <name> works inside it, and moai cc -w <name> --spawn opens it in a new tmux window.

During Development Phase with /moai run, worktree isolation provides a clean development environment with independent Git state preventing conflicts and automatic registry tracking.

During Sync Phase with /moai sync, before PR creation run the sync command for the SPEC. After PR merge, run the clean command with the merged-only flag to remove completed worktrees.

Auto-Detection Patterns:

The system detects worktree environments by checking for the registry file in the parent directory. When detected, the SPEC ID is extracted from the current directory name.

Configuration Integration:

The MoAI configuration supports worktree settings including auto_create for automatic worktree creation, auto_sync for automatic synchronization, cleanup_merged for automatic cleanup of merged branches, and worktree_root for specifying the worktree directory location with project name substitution.

Detailed Reference: Refer to Integration Patterns Module at modules/integration-patterns.md


5. --spawn — Launch a Teammate Session in a New tmux Window

Purpose: start a Claude or GLM session in a worktree without giving up the session you are in.

The launch commands (moai cc, moai glm) normally replace the running shell, which is right for "work here now" but cannot express "keep going and start a teammate alongside me". --spawn re-issues the same command in a new tmux window instead, then returns so the caller keeps working.

Combined with -w <name>, one command opens a teammate in an isolated worktree:

bash
moai glm -w feat-auth --spawn   # Explicit all-GLM session in .claude/worktrees/feat-auth
moai cc -w feat-auth --spawn    # Claude teammate, same worktree
moai glm -w feat-auth --spawn   # all-GLM teammate

Behavior:

  • The new window is created detached, so focus stays in the caller's pane. The printed pane id (e.g. %7) is the handle for switching to it.
  • The spawned window starts at the project root, so a short -w <name> value resolves against .claude/worktrees/<name>/.
  • --spawn is consumed by MoAI and never reaches Claude Code. Tokens after the -- pass-through marker are left untouched.
  • Arguments are shell-quoted, so a worktree name containing spaces or shell metacharacters reaches the spawned process intact.

Requirements — each is refused with a clear error rather than a silent fallback, because falling back would replace the caller's session, the exact outcome --spawn exists to avoid:

MissingMessage
$TMUX (not inside a session)tmux session required for --spawn
tmux binary--spawn requires the tmux binary
moai binary in PATH--spawn needs the moai binary in PATH

No settings are mutated before these checks run, so a refusal leaves the environment untouched. The spawned command performs its own backend setup inside the new window.

Platform note: tmux is POSIX-only, so --spawn is unavailable on Windows and reports the missing binary. Entering a worktree in place with -w works on every platform.

Detailed Reference: the launcher's spawn entry point — flag stripping, command reconstruction with shell quoting, and the tmux window invocation.


Show full SKILL.md (693 more words)Show less

Advanced Implementation (10+ minutes)

Synchronization Strategies

moai worktree sync merges the base branch into the worktree by default; --strategy rebase rebases the worktree onto the base instead, and --base selects the base branch. When a sync stops on a conflict, resolve it with ordinary git inside the worktree and rerun the sync.

Capabilities Not Provided

moai worktree has no shared or team registry mode, no per-developer prefixing, no selective sync patterns, no conflict auto-resolution or interactive mode, no worktree templates, and no shallow, background, parallel, or cache options. Prepare a worktree after entering it, and see modules/worktree-commands.md for the flags that exist.


Works Well With

Commands:

  • /moai plan - SPEC creation with automatic worktree setup
  • /moai run - Development in isolated worktree environment
  • /moai sync - Integration with automatic worktree sync
  • /moai feedback - Worktree workflow improvements

Skills:

  • moai-foundation-core - Parallel development patterns
  • moai-workflow-project - Project management integration
  • moai-workflow-spec - SPEC-driven development
  • moai-ref-git-workflow - Git workflow optimization

Tools:

  • Git worktree - Native Git worktree functionality
  • Cobra - CLI command framework and formatted output

Quick Decision Guide

For new SPEC development, use the worktree isolation pattern with auto-setup. The primary approach is worktree isolation and the supporting pattern is integration with /moai plan.

For parallel development across multiple SPECs, use one worktree and one session per SPEC. The primary approach is maintaining multiple worktrees and the supporting pattern is opening each in its own tmux window with moai cc -w <name> --spawn.

For team coordination, give each developer their own worktrees and branches. The primary approach is per-developer isolation and the supporting pattern is integrating through the base branch and pull requests.

For code review workflows, use isolated review worktrees. The primary approach is worktree isolation for reviews and the supporting pattern is clean sync after review completion.

For experimental features, use temporary worktrees with auto-cleanup. The primary approach is creating temporary worktrees and the supporting pattern is safe experimentation with automatic removal.

Module Deep Dives:

  • Worktree Commands: Refer to modules/worktree-commands.md for complete CLI reference
  • Worktree Management: Refer to modules/worktree-management.md for core architecture
  • Parallel Development: Refer to modules/parallel-development.md for workflow patterns
  • Integration Patterns: Refer to modules/integration-patterns.md for MoAI-ADK integration
  • Troubleshooting: Refer to modules/troubleshooting.md for problem resolution

Full Examples: Refer to references/examples.md External Resources: Refer to references/reference.md

<!-- moai:evolvable-start id="rationalizations" -->

Common Rationalizations

RationalizationReality
"Worktree isolation is overkill for this small change"Small changes on main cause merge conflicts when parallel work is in progress. Worktrees prevent this.
"I will just work on the main branch, it is faster"Working on main blocks other agents from writing. Worktrees enable parallelism.
"Read-only agents need worktree isolation too, for safety"Isolation is unnecessary only for an agent whose tools list holds no tool that can write. The spawn-time mode parameter is deprecated and ignored, so it blocks nothing. Omitting Write, Edit, and NotebookEdit is not enough: Bash writes through the shell, and so can any other file-mutating tool (another shell, an MCP tool, or an Agent that spawns a writer). While any such tool is present, read-only is not guaranteed and isolation is not wasted.
"I can skip worktree cleanup, git handles it"Stale worktree branches accumulate and confuse git worktree list. Always prune after use.
"Absolute paths in agent prompts are fine since the worktree has the same structure"Absolute paths to the main repo bypass worktree isolation entirely. Use relative paths.
<!-- moai:evolvable-end -->
<!-- moai:evolvable-start id="red-flags" -->

Red Flags

  • Implementation agent spawned without isolation: worktree in team mode
  • Agent whose tools list holds no tool that can write, spawned with isolation: worktree (unnecessary overhead)
  • Agent prompt contains absolute path to the main project directory for write targets
  • Worktree not pruned after team session completes (stale branches remain)
  • cd /absolute/project/path in Bash commands inside worktree-isolated agent prompts
<!-- moai:evolvable-end -->
<!-- moai:evolvable-start id="verification" -->

Verification

  • Implementation teammates use isolation: worktree (check agent spawn parameters)
  • Teammates spawned without isolation: worktree hold no tool that can write (check the tools list for Write, Edit, NotebookEdit, Bash, and any other file-mutating tool; with any present, read-only is not guaranteed)
  • Agent prompts reference write-target files by relative paths only
  • git worktree list shows no stale worktrees after session ends
  • Worktree CWD isolation verified on Claude Code >= 2.1.97 (check version)
  • Hook scripts (handle-worktree-create.sh, handle-worktree-remove.sh) are present and executable
<!-- moai:evolvable-end -->

© modu-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files (references) in .claude/skills/moai-workflow-worktree of modu-ai/moai-adk.

  • SKILL.md
  • modules/integration-patterns.md
  • modules/moai-adk-integration.md
  • modules/parallel-advanced.md
  • modules/parallel-development.md
  • modules/parallel-workflows.md
  • modules/registry-architecture.md
  • modules/resource-optimization.md
  • modules/tools-integration.md
  • modules/troubleshooting.md
  • modules/worktree-commands.md
  • modules/worktree-management.md
  • references/examples.md
  • references/reference.md

Open the folder on GitHubat commit a2a184a

Compare with similar skills

MoAI Worktree Management 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.

MoAI Worktree Management compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
MoAI Worktree Management this skillmodu-ai/moai-adk1.2k—~3.9kAutomated safety check: PassApache-2.0
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Ccmanager Configkbwo/ccmanager1.3k—~1.5kAutomated safety check: PassMIT
Git Worktree Managermicrosoft/WindowsAppSDK4.7k—~2kAutomated safety check: PassMIT
Git Committisfeng/Easydict15k—~535Automated safety check: PassGPL-3.0

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Ccmanager Config

    kbwo/ccmanager

    Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global ~/.config/ccmanager/config.json.

    1.3k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Git Worktree Manager

    microsoft/WindowsAppSDK

    Official

    Creates and manages Git worktrees with PowerShell scripts so separate issues and Copilot sessions each get an isolated branch, build and test environment.

    4.7k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Git Commit

    tisfeng/Easydict

    起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

    15k GitHub stars~535 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git Worktree Isolation

    jnMetaCode/superpowers-zh

    Sets up an isolated workspace before feature work or plan execution, preferring native worktree tools and falling back to git worktree, with instructions in Chinese.

    8.3k GitHub starsUsed in 1 repo~982 tokens
    DevelopmentAuto-check passed

More from modu-ai/moai-adk

All 48 skills in this repo
  • Builds hand-editable SVG diagrams from computed layout coordinates, lints the source and renders a 2x PNG, with rules for when mermaid is the better choice.

    1.2k GitHub stars~5.2k tokensUpdated today
    Auto-check: notes
  • MoAI Foundation Core

    modu-ai/moai-adk

    Reference for MoAI-ADK's core development principles: TRUST 5 quality gates, SPEC-first domain-driven workflow, agent delegation and token budgeting.

    1.2k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • MoAI SPEC Workflow

    modu-ai/moai-adk

    Manages SPEC documents for MoAI-ADK development, with GEARS or EARS requirement notation, acceptance criteria and a link into the Plan-Run-Sync workflow.

    1.2k GitHub stars~5.1k tokensUpdated today
    Auto-check passed
  • MoAI TDD Workflow

    modu-ai/moai-adk

    Drives test-first development through the RED, GREEN, REFACTOR cycle, with a config switch that selects between TDD and a DDD workflow for existing code.

    1.2k GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Watches a pull request's CI checks after creation, separates required from auxiliary failures, applies limited safe fixes and escalates anything semantic to you.

    1.2k GitHub stars~2.4k tokensUpdated today
    Auto-check: notes
  • Database guidance for PostgreSQL, MongoDB, Redis and Oracle plus Neon, Supabase and Firestore: schema design, indexing, query tuning and cloud database choice.

    1.2k GitHub stars~2.8k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about MoAI Worktree Management

What does MoAI Worktree Management do?

Gives each SPEC its own Git worktree with a registry of active workspaces, base-branch sync and cleanup of merged ones, inside the MoAI-ADK workflow. Built around the idea that every SPEC deserves an isolated workspace, this skill creates a separate Git worktree for each one so several can be developed in parallel without conflicts. A registry file in JSON records each worktree's identifier, path, branch, creation time, last sync, status as active or merged, and base branch, along with settings for the worktree root, auto-sync and cleanup of merged branches.

When should I use MoAI Worktree Management?

MoAI Worktree Management fits situations like: developing several SPECs in parallel without branch conflicts; setting up an isolated worktree to test or review a feature branch; cleaning up worktrees whose branches have been merged.

How do I install MoAI Worktree Management in Claude Code?

Run `npx skills add modu-ai/moai-adk --skill moai-workflow-worktree -a claude-code`. Or copy the skill folder (.claude/skills/moai-workflow-worktree in modu-ai/moai-adk) into .claude/skills/moai-workflow-worktree in your project. Claude Code loads it when a task matches its description.

How do I install MoAI Worktree Management in Codex?

Run `npx skills add modu-ai/moai-adk --skill moai-workflow-worktree -a codex`. Or copy the skill folder (.claude/skills/moai-workflow-worktree in modu-ai/moai-adk) into .agents/skills/moai-workflow-worktree in your project. Codex loads it when a task matches its description.

Can I use MoAI Worktree Management in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add modu-ai/moai-adk --skill moai-workflow-worktree -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/moai-workflow-worktree, .gemini/skills/moai-workflow-worktree, .github/skills/moai-workflow-worktree and .opencode/skills/moai-workflow-worktree in your project.

What does MoAI Worktree Management need to run?

Going by SKILL.md and its folder, MoAI Worktree Management needs the command-line tools its instructions call (git). Our summary lists: Git; The MoAI-ADK workflow. Its frontmatter pre-approves these tools: Read, Write, Grep, Glob. Compatibility (from SKILL.md): Designed for Claude Code.

Does MoAI Worktree Management access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is MoAI Worktree Management safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does MoAI Worktree Management use?

MoAI Worktree Management is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does MoAI Worktree Management use?

About 3.9k tokens (SKILL.md is roughly 16k 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 2.7k tokens, read only when the agent opens those files.

What are the alternatives to MoAI Worktree Management?

Skills that share tags, products or a category with MoAI Worktree Management: Finishing a Development Branch (obra/superpowers, 296k stars), Git Worktree Cleanup (lobehub/lobehub, 83k stars), Ccmanager Config (kbwo/ccmanager, 1.3k stars) and Git Worktree Manager (microsoft/WindowsAppSDK, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains MoAI Worktree Management?

modu-ai (a GitHub organization) maintains it in modu-ai/moai-adk, which has 1,230 GitHub stars. The repository holds 48 skills in this directory. The repository was last updated on October 8, 2026.

Source: modu-ai/moai-adk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.