Skip to content
Development
Skill

/worktree-workspace

Open every git worktree of a project in one VS Code window, each folder labeled by its agent session's title. Use for /worktree-workspace, reviewing worktrees in VS Code, or seeing which worktree holds which task.

BOOST
From plugin
dotai
1.2k12 skills
Install
$ npx -y skills add udecode/dotai --skill worktree-workspace --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/worktree-workspace

Context preview

The summary Claude sees to decide when to auto-load this skill.

Open every git worktree of a project in one VS Code window, each folder labeled by its agent session's title. Use for /worktree-workspace, reviewing worktrees in VS Code, or seeing which worktree holds which task.

SKILL.md

worktree-workspace.SKILL.md
name: worktree-workspace
description: "Open every git worktree of a project in one VS Code window, each folder labeled by its agent session's title. Use for /worktree-workspace, reviewing worktrees in VS Code, or seeing which worktree holds which task."
argument-hint: '[--all]'

Worktree workspace

Run `node <this skill>/scripts/workspace.mjs --repo <checkout> --open` from any folder. It writes `<checkout parent>/<repo>-worktrees.code-workspace` and opens it in VS Code.

The script labels folders and never moves them, because the app tracks a session by its working folder, and a title changes at every stage.

  • The main checkout comes first, labeled `<repo> · <branch>`.
  • A worktree a session works in shows that session's latest title, with `(archived)` when it is archived.
  • A worktree with no session of its own, such as one a session made from inside another folder, shows its folder name and last commit subject.
  • A label two folders share gets ` · <folder>` appended.
  • The script lists only worktrees under `<checkout>/.claude/worktrees`. `--all` adds the rest, such as scratch proof worktrees.

Titles come from `--sessions <file>`, a JSON array with each session's `cwd` and `title` (Claude Code desktop's `list_sessions` output works), or else from the Claude desktop app's session store. The store's format is private, so the script stops with an error when it changes instead of writing unlabeled folders.

Rerun the command to refresh labels; VS Code reloads an open workspace file when it changes. Report the path and the label list it prints.

Read more
Ships withdotai

Shared skills that the pstack plugin does not cover: test audits (test-audit, adapted from openclaw's), screenshot walkthroughs and video transcripts, and pstack setup, sync and skill-drift audits (sync-pstack).

Get the whole plugin
Stats
1,158
Stars
82
Forks
Active
Maintenance
JavaScript
Language
3h ago
Last commit
2y ago
Created

Repo: udecode/dotai

Other skills on dotai.

chips
Skill

chips

Run the project's suggested-task ledger, the chips. /chips alone brings every open task up to date: it applies what the ledger…

@udecode@udecodeInstall Skill
cleanup
Skill

cleanup

Free disk in a project by removing the git worktrees and Next.js cache folders nothing uses, keeping every worktree a session or…

@udecode@udecodeInstall Skill
passwords
Skill

passwords

Set up unattended 1Password access on a Mac or sign in to websites and apps without repeated human approvals. Use for new-device…

@udecode@udecodeInstall Skill
plan-page
Skill

plan-page

Write, check, repair and publish a plan page: a project's plans and subject files under its plans directory, rendered by…

@udecode@udecodeInstall Skill
pstack-pulse
Skill

pstack-pulse

Show every Claude Code and Codex session on the iPhone lock screen through ActivitySmith and in the Mac menubar, with each plan…

@udecode@udecodeInstall Skill