Skip to main content

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.

소스 정보

저장소
udecode/dotai
최근 소스 활동
2026년 10월 29일 12:59
감지된 SKILL.md 언어
영어
스타
1,161
포크
82

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

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.
GitHub에서 보기