Back to Skills

worktrunk

Guidance for Worktrunk (the `wt` CLI) — git worktree management, hooks, and config. Load when editing .config/wt.toml or ~/.config/worktrunk/config.toml; adding, modifying, or debugging hooks (post-merge, post-start, pre-commit, pre-merge, post-switch, etc.); configuring commit message generation or command aliases; or troubleshooting wt behavior. Also answers general worktrunk/wt questions.

5,192stars175forksUpdated 5/26/2026

Security Assessment

Critical Risk(0/100)

Detected risks:

Destructive Operations([reference/step.md] rm -rf, [SKILL.md] rm -rf, [reference/troubleshooting.md] rm -rf)
Persistence([reference/shell-integration.md] .bashrc, [reference/shell-integration.md] .zshrc, [reference/faq.md] .bashrc)
Secret Exposure([reference/tips-patterns.md] PASSWORD=)
Sensitive File Access([reference/step.md] .env, [reference/hook.md] .env, [reference/faq.md] .env)
Command Injection([reference/hook.md] subprocess.run)
Privilege Escalation([SKILL.md] sudo, [reference/worktrunk.md] sudo)
Security Score0/100

About worktrunk

The worktrunk skill provides guidance and documentation support for Worktrunk, a command-line tool built for managing Git worktrees, hooks, and related developer workflows. It helps users configure and troubleshoot the `wt` CLI, understand configuration scopes, and automate repository workflows using hooks and command settings. The skill is specifically designed to support editing Worktrunk configuration files, including user-level configuration in `~/.config/worktrunk/config.toml` and project-level configuration in `.config/wt.toml`. It also assists with setup workflows such as enabling commit message generation and debugging hook execution behavior.

The skill covers multiple areas of Worktrunk functionality, including worktree lifecycle hooks, shell integration, LLM-powered commit message generation, command aliases, and troubleshooting guidance. It references official Worktrunk documentation files for configuration, hooks, command usage, shell integration, and language-specific workflow patterns. The skill can guide users through common setup procedures such as detecting installed LLM tools, configuring commit generation commands, creating and updating configuration files, and validating generated prompts or merge workflows. It also helps distinguish between user-specific configuration and team-wide project automation.

This skill is intended for developers and engineering teams who use Worktrunk to manage Git worktrees and automate development workflows. It is particularly useful for teams implementing shared hooks, developers customizing local environments, and users integrating AI-assisted commit generation into their Git workflows. The skill supports troubleshooting and onboarding scenarios where developers need structured guidance for configuring Worktrunk behavior across personal and project contexts.

FAQ

What configuration files does Worktrunk use?

Worktrunk uses two configuration files: a user configuration file located at `~/.config/worktrunk/config.toml` for personal settings, and a project configuration file located at `.config/wt.toml` for team-wide hooks and automation.

Can this skill help configure AI-generated commit messages?

Yes. The skill includes workflows for setting up commit message generation using supported LLM tools and guides users through configuring the appropriate `commit.generation` settings.

Does the skill support troubleshooting hooks and shell integration?

Yes. The available documentation includes troubleshooting guidance for hooks, shell integration, and LLM-related workflows, including debugging execution order and integration issues.

What are the requirements for using this skill?

The skill requires the Worktrunk `wt` CLI to be installed. Compatibility information references the official Worktrunk CLI available at `https://worktrunk.dev`.

Can the skill help automate project workflows?

Yes. The skill provides guidance for configuring project hooks such as pre-merge, post-merge, post-start, and other lifecycle automation workflows shared across development teams.

All Files

17 files
reference/step.md27.2 KB
View
reference/llm-commits.md9.7 KB
View
reference/switch.md8.5 KB
View
reference/shell-integration.md7.6 KB
View
SKILL.md11.9 KB
View
reference/worktrunk.md9.2 KB
View
reference/hook.md18.4 KB
View
reference/extending.md11.2 KB
View
reference/list.md12.8 KB
View
reference/README.md0.0 KB
View
reference/troubleshooting.md6.4 KB
View
reference/claude-code.md6.3 KB
View
reference/merge.md5.2 KB
View
reference/faq.md13.6 KB
View
reference/tips-patterns.md16.7 KB
View
reference/config.md36.8 KB
View
reference/remove.md5.0 KB
View

Install worktrunk

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill