Skip to content

Commit 163171e

Browse files
committed
fix: correct plugin install command, add version, improve README placement
- Fix install command: `claude plugin marketplace add` + `claude plugin install` (the previous `claude plugin add` doesn't exist in Claude CLI) - Add missing version field to plugin.json (fixes validator warning) - Move plugin from Features bullet to dedicated "Use with Claude Code" section under Usage for better visibility
1 parent dfe1d3f commit 163171e

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Inspired by [haacked/dotfiles/tree-me](https://github.com/haacked/dotfiles/blob/
2424
- **Color-coded status output** — green (clean), red (dirty), yellow (ahead/behind), bold cyan (current); respects `NO_COLOR=1` and auto-strips colors when piped
2525
- **CI/CD status integration**`wt status --ci` shows pipeline status (✓/✗/●) per branch via `gh` or `glab` CLI
2626
- **Per-repo `.wt.toml` config** — override global settings (strategy, hooks, etc.) on a per-repository basis
27-
- **Claude Code plugin** — install with `claude plugin add timvw/wt` to teach Claude how to use wt commands and worktree workflows
2827
- Shell integration with auto-cd functionality
2928
- Tab completion for Bash and Zsh
3029

@@ -133,6 +132,19 @@ wt --format json examples
133132

134133
In `json` mode, shell integration does **not** auto-navigate. For commands that normally prompt interactively, pass explicit arguments when using `--format json`.
135134

135+
### Use with Claude Code
136+
137+
Install the [Claude Code plugin](plugins/wt/) to teach Claude how to work with wt-managed worktrees:
138+
139+
```bash
140+
claude plugin marketplace add timvw/wt
141+
claude plugin install wt@wt --scope local
142+
```
143+
144+
Once installed, Claude understands wt commands, worktree strategies, and hooks — so you can ask it to create worktrees, set up hooks for copying `.env` files or running `npm install` / `uv sync`, and follow worktree-based workflows automatically.
145+
146+
See [docs/examples.md](docs/examples.md#ai-assistants-and-editors) for hooks that launch Claude Code in tmux per worktree.
147+
136148
## Documentation
137149

138150
| Topic | Description |

plugins/wt/.claude-plugin/plugin.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "wt",
3+
"version": "0.1.0",
34
"description": "Teaches Claude Code how to work with wt-managed git worktrees",
45
"author": {
56
"name": "timvw"

0 commit comments

Comments
 (0)