Create a git worktree for a given issue with automated setup using Worktree Manager
Creates isolated git worktrees for GitHub issues with automated setup and dependency installation.
/plugin marketplace add leobrival/topographic-plugins-official/plugin install dev@topographic-plugins-officialCreate isolated git worktree for feature development from GitHub issue using the intelligent Worktree Manager.
The Worktree Manager scripts are located in the plugin's scripts/worktree-manager/ directory.
First-time setup (if dependencies not installed):
cd <plugin-path>/scripts/worktree-manager && bun install
Parse argument
https://github.com/owner/repo/issues/NUMBERExecute Worktree Manager
bun <plugin-path>/scripts/worktree-manager/src/index.ts <github-issue-url> [options]
Where <plugin-path> is the absolute path to the github-commands plugin directory.
The Worktree Manager will automatically:
gh CLI (title, body, labels, assignees)Handle options
Support additional options:
--terminal <app>: Choose terminal app (Hyper, iTerm2, Warp, Terminal)--no-deps: Skip dependency installation--no-terminal: Don't open terminal automatically--debug: Enable debug logging--branch <name>: Override auto-generated branch name--profile <name>: Use configuration profile (minimal, fast, full)--output <dir>: Custom worktree base directory# From GitHub issue URL (recommended)
/create-worktree https://github.com/user/repo/issues/123
# With specific terminal app
/create-worktree https://github.com/user/repo/issues/123 --terminal iTerm2
# With options
/create-worktree https://github.com/user/repo/issues/123 --no-deps --debug
# Custom branch name
/create-worktree https://github.com/user/repo/issues/123 --branch my-custom-feature
# Skip terminal opening
/create-worktree https://github.com/user/repo/issues/123 --no-terminal
The Worktree Manager uses intelligent branch name generation:
AI-Powered (Claude CLI):
issue-{number}-{description}Fallback (Simple):
issue-{number}-{sanitized-title}Examples:
issue-123-add-user-authenticationissue-456-fix-memory-leak-in-api# List all worktrees
bun <plugin-path>/scripts/worktree-manager/src/index.ts list
# Clean up old worktrees
bun <plugin-path>/scripts/worktree-manager/src/index.ts clean
# Force cleanup all worktrees
bun <plugin-path>/scripts/worktree-manager/src/index.ts clean --force
gh auth login.worktrees.json/run-tasks for the specific issue/create-worktreeCreates a new git worktree with automatic naming conventions and branch management. Supports optional parameters for customization and integration with editors/tmux.