using-git-worktrees

Installation
SKILL.md

Using Git Worktrees

Overview

In Warcraft, use worktree lifecycle tools rather than manual git worktree commands.

Primary interfaces:

  • warcraft_worktree_create
  • warcraft_worktree_commit
  • warcraft_worktree_discard
  • warcraft_merge

Standard Flow

  1. Confirm task is runnable (warcraft_status)
  2. Prepare the task workspace (warcraft_worktree_create)
  3. Issue the returned task() call and implement in the assigned workspace
  4. Commit/report (warcraft_worktree_commit)
  5. Merge or discard based on outcome

Why this matters

Warcraft tools keep task state, reports, and branch/worktree metadata in sync. Manual git-only operations can desynchronize artifacts.

Red Flags

Never:

  • Start task work without a Warcraft-managed workspace
  • Skip the returned task() call after warcraft_worktree_create
  • Bypass Warcraft task status updates
  • Merge/discard without reflecting result in Warcraft flow

Always:

  • Validate runnable status first
  • Capture verification evidence before commit
  • Use merge/discard paths deliberately
Related skills
Installs
1
GitHub Stars
2
First Seen
Mar 20, 2026