Guidance for Worktrunk, a CLI tool for managing git worktrees. Covers configuration (user config at ~/.config/worktrunk/config.toml and project hooks at .config/wt.toml), usage, and troubleshooting. Use for "setting up LLM", "configuring hooks", "automating tasks", or general worktrunk questions.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/max-sixty/worktrunk/blob/main/.claude-plugin/skills/worktrunk/SKILL.md -a claude-code --skill worktrunkInstallation paths:
.claude/skills/worktrunk/<!-- worktrunk-skill-version: 0.9.3 --> # Worktrunk Help users work with Worktrunk, a CLI tool for managing git worktrees. ## Available Documentation Reference files are synced from [worktrunk.dev](https://worktrunk.dev) documentation: - **reference/config.md**: User and project configuration (LLM, hooks, command defaults) - **reference/hook.md**: Hook types, timing, and execution order - **reference/switch.md**, **merge.md**, **list.md**, etc.: Command documentation - **reference/llm-commits.md**: LLM commit message generation - **reference/tips-patterns.md**: Language-specific tips and patterns - **reference/shell-integration.md**: Shell integration debugging - **reference/troubleshooting.md**: Troubleshooting for LLM and hooks (Claude-specific) For command-specific options, run `wt <command> --help`. For configuration, follow the workflows below. ## Two Types of Configuration Worktrunk uses two separate config files with different scopes and behaviors: ### User Config (`~/.config/worktrunk/config.toml`) - **Scope**: Personal preferences for the individual developer - **Location**: `~/.config/worktrunk/config.toml` (never checked into git) - **Contains**: LLM integration, worktree path templates, command settings, user hooks, approved commands - **Permission model**: Always propose changes and get consent before editing - **See**: `reference/config.md` for detailed guidance ### Project Config (`.config/wt.toml`) - **Scope**: Team-wide automation shared by all developers - **Location**: `<repo>/.config/wt.toml` (checked into git) - **Contains**: Hooks for worktree lifecycle (post-create, pre-merge, etc.) - **Permission model**: Proactive (create directly, changes are reversible via git) - **See**: `reference/hook.md` for detailed guidance ## Determining Which Config to Use When a user asks for configuration help, determine which type based on: **User config indicators**: - "set up LLM" or "configure commit generation" - "change where worktrees are crea