# worktrunk

This skill gives an AI agent a reference for the wt CLI: which worktree a command touches, what lives in each config file, how hooks run.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 5300 installs · ★ 9480
- Author: max-sixty
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/max-sixty/worktrunk/tree/HEAD/skills/worktrunk/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/worktrunk

## What it does

Worktrunk is a command-line tool for git worktrees, and this skill hands the agent its documentation. The bundled `reference/` files cover configuration, hooks, the `switch`, `merge` and `list` commands, LLM commit messages, aliases and troubleshooting. The agent pulls them in when it needs to know which worktree a `wt` command will act on, or when it edits `.config/wt.toml` and `~/.config/worktrunk/config.toml`.

One rule the skill keeps coming back to: a branch argument already names its worktree, while the global `-C <path>` moves the working directory instead of picking a worktree. Combining the two names the same worktree twice. The configs differ in how carefully you should touch them. User config in `~/.config/worktrunk/config.toml` never lands in git, so the skill suggests proposing a change and getting consent first. Project config at `<repo>/.config/wt.toml` is versioned, which makes edits there easier to undo.

The skill needs the `wt` CLI installed, otherwise the example commands go nowhere. Project hooks also do not fire on their own in non-interactive sessions — Worktrunk waits for the user to approve them, so do not count on an unattended run.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add max-sixty/worktrunk --skill worktrunk -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/worktrunk/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/worktrunk/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add max-sixty/worktrunk --skill worktrunk -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/worktrunk/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add max-sixty/worktrunk --skill worktrunk -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/worktrunk/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install max-sixty/worktrunk worktrunk
```

2. **Manually: put the files in place**
- File: `.github/skills/worktrunk/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add max-sixty/worktrunk --skill worktrunk -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/max-sixty/worktrunk --path skills/worktrunk
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/worktrunk/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add max-sixty/worktrunk --skill worktrunk -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/max-sixty/worktrunk/tree/HEAD/skills/worktrunk/SKILL.md

## When to use it
- figure out which worktree a `wt` command targets
- write a hook for a worktree lifecycle event
- set up LLM commit message generation
- keep user and project configs separate by permission
- build an alias or multi-step `wt` pipeline

## Example prompts
- Explain which worktree `wt switch beta` will pick when I run it from another one
- Add a `pre-start` hook to `.config/wt.toml` that runs `npm install`
- Set up commit message generation in my worktrunk user config

## Similar
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs
- [git-guardrails-claude-code](https://affpapa.org/en/nevibecode/skills/git-guardrails-claude-code.md) — skill · 499069 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [scaffold-exercises](https://affpapa.org/en/nevibecode/skills/scaffold-exercises.md) — skill · 480196 installs

From the same set: [max-sixty/worktrunk](https://affpapa.org/en/nevibecode/by/max-sixty/worktrunk.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
