スキル一覧に戻る
GobbyAI

gobby-worktrees

by GobbyAI

A local-first daemon to unify your AI coding tools. Session tracking and handoffs across Claude Code, Gemini CLI, and Codex. An MCP proxy that discovers tools without flooding context. Task management with dependencies, validation, and TDD expansion. Agent spawning and worktree orchestration. Persistent memory, extensible workflows, and hooks.

5🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: gobby-worktrees description: This skill should be used when the user asks to "/gobby-worktrees", "create worktree", "spawn in worktree". Manage git worktrees for parallel development - create, list, spawn agents, sync, and cleanup.

/gobby-worktrees - Worktree Management Skill

This skill manages git worktrees via the gobby-worktrees MCP server. Parse the user's input to determine which subcommand to execute.

Subcommands

/gobby-worktrees create <branch-name> - Create a new worktree

Call gobby-worktrees.create_worktree with:

  • branch_name: (required) Name for the new branch
  • base_branch: Base branch (default: current)
  • task_id: Optional task ID to associate
  • worktree_path: Custom worktree path
  • create_branch: Create new branch (default true)
  • project_path: Project path
  • provider: LLM provider

Creates an isolated git worktree for parallel development.

Example: /gobby-worktrees create feature/authcreate_worktree(branch_name="feature/auth")

Example: /gobby-worktrees create feature/auth --task #1create_worktree(branch_name="feature/auth", task_id="#1")

/gobby-worktrees show <worktree-id> - Show worktree details

Call gobby-worktrees.get_worktree with:

  • worktree_id: (required) Worktree ID

Returns worktree details including path, branch, status, and linked task.

Example: /gobby-worktrees show wt-abc123get_worktree(worktree_id="wt-abc123")

/gobby-worktrees list - List all worktrees

Call gobby-worktrees.list_worktrees with:

  • status: Filter by status (active, stale, merged, abandoned)
  • agent_session_id: Filter by agent session
  • limit: Max results

Returns worktrees with path, branch, status, and associated task.

Example: /gobby-worktrees listlist_worktrees() Example: /gobby-worktrees list activelist_worktrees(status="active")

/gobby-worktrees spawn <branch-name> <prompt> - Spawn agent in new worktree

Call gobby-worktrees.spawn_agent_in_worktree with:

  • prompt: (required) Task description for the agent
  • branch_name: (required) Name for the new branch
  • base_branch: Base branch
  • task_id: Optional task ID
  • parent_session_id: Parent session for tracking
  • mode: Agent mode (terminal, headless)
  • terminal: Terminal type
  • provider: LLM provider
  • model: Model override
  • workflow: Workflow to activate
  • timeout: Max runtime
  • max_turns: Max conversation turns
  • project_path: Project path

Creates worktree + spawns agent in one call.

Example: /gobby-worktrees spawn feature/auth Implement OAuth loginspawn_agent_in_worktree(branch_name="feature/auth", prompt="Implement OAuth login")

/gobby-worktrees delete <worktree-id> - Delete a worktree

Call gobby-worktrees.delete_worktree with:

  • worktree_id: (required) Worktree ID
  • force: Force deletion even with uncommitted changes

This is the proper way to clean up worktrees. It handles all cleanup:

  • Removes the worktree directory and all temporary files
  • Cleans up git's worktree tracking (.git/worktrees/)
  • Deletes the associated git branch
  • Removes the Gobby database record

Do NOT manually run git worktree remove - use this tool instead.

Example: /gobby-worktrees delete wt-abc123delete_worktree(worktree_id="wt-abc123") Example: /gobby-worktrees delete wt-abc123 --forcedelete_worktree(worktree_id="wt-abc123", force=true)

/gobby-worktrees sync <worktree-id> - Sync with main branch

Call gobby-worktrees.sync_worktree with:

  • worktree_id: (required) Worktree ID
  • strategy: Sync strategy (merge, rebase)

Syncs the worktree with the main branch.

Example: /gobby-worktrees sync wt-abc123sync_worktree(worktree_id="wt-abc123")

/gobby-worktrees claim <worktree-id> - Claim worktree ownership

Call gobby-worktrees.claim_worktree to claim a worktree for an agent session.

/gobby-worktrees release <worktree-id> - Release worktree ownership

Call gobby-worktrees.release_worktree to release ownership.

/gobby-worktrees mark-merged <worktree-id> - Mark as merged

Call gobby-worktrees.mark_worktree_merged to mark a worktree as merged (ready for cleanup).

/gobby-worktrees detect-stale - Find stale worktrees

Call gobby-worktrees.detect_stale_worktrees to find worktrees with no recent activity.

/gobby-worktrees cleanup - Clean up stale worktrees

Call gobby-worktrees.cleanup_stale_worktrees with:

  • hours: Hours of inactivity (default varies)
  • dry_run: Preview without deleting
  • delete_git: Also delete git worktree
  • project_path: Project path

Marks and optionally deletes stale worktrees.

Example: /gobby-worktrees cleanupcleanup_stale_worktrees() Example: /gobby-worktrees cleanup --dry-runcleanup_stale_worktrees(dry_run="true")

/gobby-worktrees stats - Get worktree statistics

Call gobby-worktrees.get_worktree_stats for project worktree statistics.

Example: /gobby-worktrees statsget_worktree_stats()

/gobby-worktrees by-task <task-id> - Get worktree for task

Call gobby-worktrees.get_worktree_by_task with:

  • Task ID

Finds the worktree linked to a specific task.

Example: /gobby-worktrees by-task #1get_worktree_by_task(...)

Call gobby-worktrees.link_task_to_worktree to link a task to an existing worktree.

Response Format

After executing the appropriate MCP tool, present the results clearly:

  • For create: Show worktree path, branch name, and status
  • For show: Full worktree details
  • For list: Table with branch, path, status, task ID
  • For spawn: Show worktree + agent creation confirmation
  • For delete: Confirm deletion
  • For sync: Show sync result
  • For cleanup: Summary of affected worktrees
  • For stats: Worktree statistics

Worktree Lifecycle

  1. active - Currently in use
  2. stale - No recent activity
  3. merged - Branch merged to main
  4. abandoned - Manually marked for cleanup

Error Handling

If the subcommand is not recognized, show available subcommands:

  • create, show, list, spawn, delete, sync
  • claim, release, mark-merged
  • detect-stale, cleanup, stats
  • by-task, link

スコア

総合スコア

75/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です