worktrees

v2026.09.25

Use when managing isolated git worktrees for task development. Handles worktree creation by task type, story-based reuse, dependency installation, and cleanup. Integrated into /work workflow.

GitHub
安装命令
npx skhub add srstomp/worktrees
Markdown
SKILL.md

Worktrees

Guide for managing git worktrees in pokayokay.

When Worktrees Are Created

Task TypeDefaultOverride
featureWorktree--in-place
bugWorktree--in-place
spikeWorktree--in-place
choreIn-place--worktree
docsIn-place--worktree
testInherits the story worktree (tasks in the same story share it)explicit flag

Key Principles

  • Story-based reuse — Tasks in the same story share a worktree for related changes
  • Auto dependency install — Dependencies install automatically on worktree creation
  • Clean completion — Use finishing-branch to choose merge, PR, keep, or discard with verification evidence
  • Isolation — All worktrees live in .worktrees/ (auto-ignored by git)

Quick Start Checklist

  1. Task type determines worktree vs in-place (see table above)
  2. Story worktrees are reused across related tasks
  3. Dependencies auto-install based on detected lockfiles
  4. On completion: use finishing-branch to verify and choose merge, PR, keep, or discard
  5. Troubleshoot with git worktree list if issues arise

When NOT to Use

  • Starting a work session — Use work-session; worktree creation happens automatically during /work
  • Using git worktrees outside pokayokay — This skill is pokayokay-specific; for general git worktrees use git directly

References

ReferenceDescription
worktree-management.mdLifecycle, completion options, dependency install, troubleshooting
cleanup-strategies.mdCleanup criteria, detection, disk management, scheduled cleanup
parallel-worktrees.mdParallel execution worktree isolation, conflict prevention
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

Sep 25, 2026

分类

未分类

许可证

MIT

源路径

plugins/pokayokay/skills/worktrees

默认分支

master

最新提交

ef6a34d

Tree SHA

7e3eba3