Worktrunk — Prompts
Worktrunk ships a Claude Code skill (worktrunk/SKILL.md) that teaches Claude Code how to help users configure Worktrunk. This is closer to a "help guide" skill than a behavioral injection.
Verbatim: SKILL.md — Skill Header and Description
---
name: worktrunk
description: 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.
license: MIT OR Apache-2.0
compatibility: Requires the `wt` CLI (https://worktrunk.dev)
---
Technique: Declarative description-based activation (Claude Code autonomously loads this skill when relevant context is detected). Reference-pointing pattern: the skill mostly says "read the reference docs at reference/X.md" rather than embedding all knowledge inline.
Verbatim: SKILL.md — Core Workflow Instruction
## 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 created"
- "customize commit message templates"
- Affects only their environment
**Project config indicators**:
- "set up hooks for this project"
- "automate npm install"
- "run tests before merge"
- Affects the entire team
Technique: Decision-tree routing — the skill instructs Claude to triage user requests into user-config vs project-config pathways based on intent signals. This is a context-classification pattern (similar to superpowers' routing skills) applied to CLI configuration guidance.
Verbatim: hooks.json (Claude Code Plugin Hooks)
{
"hooks": {
"BeforeAgent": [
{"hooks": [{"type": "command",
"command": "bash \"${extensionPath}/plugins/worktrunk/hooks/wt.sh\" config state marker set 🤖 || true"}]}
],
"AfterAgent": [
{"hooks": [{"type": "command",
"command": "bash \"${extensionPath}/plugins/worktrunk/hooks/wt.sh\" config state marker set 💬 || true"}]}
],
"SessionEnd": [
{"hooks": [{"type": "command",
"command": "bash \"${extensionPath}/plugins/worktrunk/hooks/wt.sh\" config state marker clear || true"}]}
]
}
}
Technique: Lifecycle hook injection — these hooks don't modify agent behavior but write state markers to the worktree config so wt list can show which worktrees have active agent sessions (🤖) vs finished sessions (💬). Pure observability instrumentation.