From worktrunk
Use when a user needs to configure or operate Worktrunk (wt) for worktree lifecycle management, hooks, LLM commits, or parallel agent workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/worktrunk:worktrunkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when a user needs to configure `wt`, set up LLM commit messages, author project hooks, or run multiple parallel agent lanes with isolated worktrees.
Use this skill when a user needs to configure wt, set up LLM commit messages, author project hooks, or run multiple parallel agent lanes with isolated worktrees.
wt config, ~/.config/worktrunk/config.toml, .config/wt.toml)post-start, pre-merge, etc.)wt switch --create --execute=…wt merge, wt step, or the merge pipelinewt --version fails — Worktrunk is not installed; suggest brew install worktrunkgithub-cli-pr-workflow| Situation | Use this skill? | Route instead |
|---|---|---|
wt installed; user wants hooks or config | Yes | — |
User wants raw git worktree add/remove only | Yes | use this skill with raw git commands only |
| User needs PR/check workflow after pushing branch | No | github-cli-pr-workflow skill |
wt --version fails | No | Suggest brew install worktrunk |
| Disposable clone, not a worktree | No | git clone directly |
| Implementation complete; deciding how to integrate branch | No | finishing-a-development-branch |
Required before editing
~/.config/worktrunk/config.toml already exist? (wt config show)Helpful if present
wt --version — confirm install (a current version is required; install via brew install worktrunk if missing)wt config show — inspect active config and file locationswt config create — scaffold user config if missing; wt config create --project for project configworktree-path in user config (inside-repo .worktrees/ is recommended for agent harness worktree-manager compatibility)[commit.generation] block; see assets/llm-commits-setup.md.config/wt.toml hooks for install, dev server, DB, CI gates; see assets/hooks-reference.md[list] summary = true in user configwt switch --create --execute=<agent>; see assets/parallel-agents-recipes.mdwt --version before using any wt commands; fall back to raw git if Worktrunk is not installed.wt merge for squash+rebase+cleanup in preference to manual git steps.[commit.generation] before relying on wt step commit for LLM messages.--no-squash when commit granularity matters for the PR.wt setup: user and/or project config files (~/.config/worktrunk/config.toml, .config/wt.toml), authored hooks, and optionally LLM commit generation enabledwt list and wt config showwt config show # confirms settings loaded
wt switch --create test-wt-check # creates worktree, fires hooks
wt list # confirms branch with status markers
wt remove test-wt-check # cleans up
git-worktrees)Set up LLM commit messages for this repo:
wt config show # inspect current config location
# add [commit.generation] block — see assets/llm-commits-setup.md for provider options
wt switch --create test-llm-check
# make a small change, then `wt merge` to confirm LLM message is generated
Add a post-start hook that runs npm ci and starts the dev server:
# .config/wt.toml
[[hooks.post-start]]
command = "npm ci && npm run dev -- --port {{.Port}}"
Configure parallel agent lanes with unique ports per worktree:
wt switch --create agent-lane-1 --execute="copilot agent start"
wt switch --create agent-lane-2 --execute="copilot agent start"
wt list # shows both lanes with status markers
assets/hooks-reference.md — all hook types, template variables, filters, pipeline syntaxassets/merge-pipeline.md — wt merge pipeline, flags, and wt step sub-commandsassets/llm-commits-setup.md — LLM commit generation config for Claude Code, Codex, llm CLI, aichatassets/parallel-agents-recipes.md — one-shot alias pattern, dev server per worktree, DB per worktree, cold-start eliminationreferences/config-reference.md — complete config key reference with defaultsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub matt-riley/lucky-hat --plugin worktrunk