Manage git worktrees using wtx CLI for parallel development workflows on Windows.

GPL-3.0Auto-check: notesDevelopment

Install Worktree Management

skills CLI
$ npx skills add deadlock-mod-manager/deadlock-mod-manager --skill worktree-management -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install deadlock-mod-manager/deadlock-mod-manager worktree-management --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/deadlock-mod-manager/deadlock-mod-manager.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/worktree-management .claude/skills/worktree-management && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
worktree-management
GitHub stars
477
Token cost
~1.2k tokens
SKILL.md length
448 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
GPL-3.0

At a glance

Manage git worktrees using wtx CLI for parallel development workflows on Windows.

  • Works in 3 steps: Determine the Operation → Execute the Command → Post-Operation Guidance
  • Asked to create a worktree
  • SKILL.md covers Prerequisites, Step 1: Determine the Operation, Step 2: Execute the Command and Step 3: Post-Operation Guidance, plus 1 more section
  • Calls pnpm, pwsh and git; reaches github.com

What it does

Worktree Management is an agent skill from deadlock-mod-manager/deadlock-mod-manager. Manage git worktrees using wtx CLI for parallel development workflows on Windows. Use when asked to "create a worktree", "add a worktree", "switch worktree", "remove worktree", "list worktrees", "clean worktrees", "wtx", or set up parallel development branches.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Windows only. Requires PowerShell 7+ (pwsh) and git on PATH.

It sits in Development, covering Git worktrees. It works with PowerShell and Tauri. The repository describes itself as: A mod manager for the Valve game Deadlock. The licence is GPL-3.0.

When your agent uses it

  • Asked to create a worktree
  • Switch worktree
  • Remove worktree
  • Clean worktrees

Example prompts

  • “create a worktree”
  • “add a worktree”
  • “switch worktree”
  • “/worktree-management”

Requirements

  • Compatibility (from SKILL.md): Windows only. Requires PowerShell 7+ (pwsh) and git on PATH.

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Determine the Operation
  2. Execute the Command
  3. Post-Operation Guidance

What it can do on your machine

Read from SKILL.md and the folder at commit e5a8f5e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • pwsh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Windows only. Requires PowerShell 7+ (pwsh) and git on PATH.

    From compatibility in the SKILL.md frontmatter.

Context cost

Worktree Management loads about 1.2k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 448 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:60
    - `.env`, `.env.local` (environment config)
  • NoteMentions a .env fileSKILL.md:100
    | `add.copy-env.files`       | `.env`, `.env.local`, `.tauri/*` | Files copied to new worktrees |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from deadlock-mod-manager/deadlock-mod-manager at commit e5a8f5e, republished under its GPL-3.0 licence (© deadlock-mod-manager). 448 words, ~1,154 tokens.

Download SKILL.mdSave it as .claude/skills/worktree-management/SKILL.md (or your agent's skills folder).
name
worktree-management
description
Manage git worktrees using wtx CLI for parallel development workflows on Windows. Use when asked to "create a worktree", "add a worktree", "switch worktree", "remove worktree", "list worktrees", "clean worktrees", "wtx", or set up parallel development branches.
compatibility
Windows only. Requires PowerShell 7+ (pwsh) and git on PATH.

Manage Git Worktrees with wtx

Use the wtx PowerShell CLI to create, navigate, and manage git worktrees for parallel development in this monorepo.

This skill is Windows-only. If the current platform is not Windows (check $env:OS or uname), stop and inform the user that wtx requires Windows with PowerShell 7+. Recommend git-worktree-runner for Linux/macOS instead — see the Worktree Development section in CONTRIBUTING.md.

Prerequisites

Before running any wtx command, verify the environment:

  1. Confirm the shell is PowerShell 7+ (pwsh), not cmd.exe or bash-on-WSL.
  2. Confirm wtx is installed: Test-Path "$env:LOCALAPPDATA\Programs\wtx\wtx.ps1" must return True.
  3. Confirm the repo is initialized: .wtx.kv exists in the repo root.

If wtx is not installed, direct the user to install it:

powershell
git clone https://github.com/littlesmilelove/worktree.ps.git $env:TEMP\worktree.ps
pwsh -File $env:TEMP\worktree.ps\install.ps1
. $PROFILE

If .wtx.kv is missing, run wtx init inside the repo first.

Step 1: Determine the Operation

User Intentwtx Command
Create a new worktreewtx add <name>
List existing worktreeswtx list
Get path to a worktreewtx path <name>
Get main repo pathwtx main
Remove a worktreewtx rm <name> --yes
Clean numeric worktreeswtx clean
View/change configwtx config list|get|set|unset

Step 2: Execute the Command

All wtx commands must run through PowerShell 7 to ensure the shell hook and profile are loaded:

powershell
pwsh -Command "& { . $PROFILE; wtx <command> }"

Do not run wtx via cmd.exe, Git Bash, or WSL — it will fail or behave unexpectedly.

Creating a Worktree

When creating a worktree with wtx add <name>:

  1. A new directory is created at ../<repo>.<name> (e.g., ../deadlock-modmanager.fix-123)
  2. A branch feat/<name> is created from the default branch (main)
  3. The following files are automatically copied from the main repo:
    • .env, .env.local (environment config)
    • .tauri/updater.key, .tauri/updater.key.pub (Tauri signing keys)
  4. pnpm install runs automatically to install dependencies
  5. pnpm dev starts the dev server (logs to <worktree>/tmp/dev.log)
Show full SKILL.md (161 more words)Show less
Naming Conventions

Follow the project's branch naming from .cursor/skills/git-conventions/SKILL.md:

  • Use descriptive kebab-case names: wtx add fix-mod-conflict
  • Include ticket numbers when applicable: wtx add KR-123-add-collections
  • Numeric names (e.g., wtx add 3000) are for quick throwaway worktrees
Removing a Worktree

Before removing, warn the user to:

  1. Close any editors or terminals open in the worktree directory
  2. Commit or stash any unsaved changes

Then run: wtx rm <name> --yes

Step 3: Post-Operation Guidance

After creating a worktree, inform the user:

  • The worktree path (from wtx path <name>)
  • The branch name (feat/<name>)
  • That they can switch to it with wtx <name> in PowerShell
  • That they can return to main with wtx main

Configuration Reference

Current repo config is in .wtx.kv. Key settings:

KeyDefaultDescription
repo.path(set by init)Main repo absolute path
repo.branchmainDefault branch
add.branch-prefixfeat/Branch name prefix
add.copy-env.files.env, .env.local, .tauri/*Files copied to new worktrees
add.install-deps.commandpnpm installDependency install command
add.serve-dev.commandpnpm devDev server command

© deadlock-mod-manager, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/worktree-management of deadlock-mod-manager/deadlock-mod-manager.

Open the folder on GitHubat commit e5a8f5e

Compare with similar skills

Worktree Management next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Worktree Management compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Worktree Management this skilldeadlock-mod-manager/deadlock-mod-manager477—~1.2kAutomated safety check: NotesGPL-3.0
Git Worktree Managermicrosoft/WindowsAppSDK4.7k—~2kAutomated safety check: PassMIT
New WorktreeLog2n-io/Typhon250—~1.1kAutomated safety check: PassCustom licence
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Finishing A Development Branchfarm-fe/farm5.6k34 repos~1.8kAutomated safety check: PassMIT

Similar skills

  • Git Worktree Manager

    microsoft/WindowsAppSDK

    Official

    Creates and manages Git worktrees with PowerShell scripts so separate issues and Copilot sessions each get an isolated branch, build and test environment.

    4.7k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • New Worktree

    Log2n-io/Typhon

    Create / remove / inventory Typhon dev worktrees with the nested claude/ docs repo wired up correctly — one command instead of the three-step manual procedure that silently half-completes

    250 GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Official

    Generates GitHub Feature Area Status reports for the Windows App SDK repository, scoring issues so teams can see what needs attention in each area.

    4.7k GitHub stars~3.4k tokensUpdated today
    DevelopmentAuto-check passed

More from deadlock-mod-manager/deadlock-mod-manager

All 24 skills in this repo
  • Skill Creator

    deadlock-mod-manager/deadlock-mod-manager

    Create new agent skills following the Agent Skills specification.

    477 GitHub starsUsed in 1 repo~2.9k tokens
    Auto-check passed
  • Create Auth Skill

    deadlock-mod-manager/deadlock-mod-manager

    Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth.

    477 GitHub starsUsed in 4 repos~3.4k tokens
    Auto-check passed
  • Opensrc

    deadlock-mod-manager/deadlock-mod-manager

    Fetch source code for npm, PyPI, or crates.io packages and GitHub/GitLab repos to provide AI agents with implementation context beyond types and docs.

    477 GitHub stars~910 tokensUpdated today
    Auto-check passed
  • Security Review

    deadlock-mod-manager/deadlock-mod-manager

    Security code review for Tauri/Rust/TypeScript desktop apps and Hono/oRPC APIs.

    477 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Babysit

    deadlock-mod-manager/deadlock-mod-manager

    Stay on one pull request until it is merge-ready, fixing the highest-priority blocker and telling the user when it is green.

    477 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Changeset

    deadlock-mod-manager/deadlock-mod-manager

    Generate a changeset file describing the current PR's changes.

    477 GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Worktree Management

What does Worktree Management do?

Manage git worktrees using wtx CLI for parallel development workflows on Windows. Worktree Management is an agent skill from deadlock-mod-manager/deadlock-mod-manager. Manage git worktrees using wtx CLI for parallel development workflows on Windows.

When should I use Worktree Management?

Worktree Management fits situations like: asked to create a worktree; switch worktree; remove worktree; clean worktrees.

How do I install Worktree Management in Claude Code?

Run `npx skills add deadlock-mod-manager/deadlock-mod-manager --skill worktree-management -a claude-code`. Or copy the skill folder (.agents/skills/worktree-management in deadlock-mod-manager/deadlock-mod-manager) into .claude/skills/worktree-management in your project. Claude Code loads it when a task matches its description.

How do I install Worktree Management in Codex?

Run `npx skills add deadlock-mod-manager/deadlock-mod-manager --skill worktree-management -a codex`. Or copy the skill folder (.agents/skills/worktree-management in deadlock-mod-manager/deadlock-mod-manager) into .agents/skills/worktree-management in your project. Codex loads it when a task matches its description.

Can I use Worktree Management in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add deadlock-mod-manager/deadlock-mod-manager --skill worktree-management -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/worktree-management, .gemini/skills/worktree-management, .github/skills/worktree-management and .opencode/skills/worktree-management in your project.

What does Worktree Management need to run?

Going by SKILL.md and its folder, Worktree Management needs the command-line tools its instructions call (pnpm, pwsh and git). Compatibility (from SKILL.md): Windows only. Requires PowerShell 7+ (pwsh) and git on PATH..

Does Worktree Management access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Worktree Management safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Worktree Management use?

Worktree Management is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Worktree Management use?

About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Worktree Management?

Skills that share tags, products or a category with Worktree Management: Git Worktree Manager (microsoft/WindowsAppSDK, 4.7k stars), New Worktree (Log2n-io/Typhon, 250 stars), Finishing a Development Branch (obra/superpowers, 297k stars) and Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Worktree Management?

deadlock-mod-manager (a GitHub organization) maintains it in deadlock-mod-manager/deadlock-mod-manager, which has 477 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 9, 2026.

Source: deadlock-mod-manager/deadlock-mod-manager on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.