Skip to content
Skills Library
Programming · Tool integration

worktree

/worktree

Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options.

Repository
SolidLink ↗
Licence
MIT
Last repository change
12.05.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.05.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options.

Original author description

Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options.

How it works

  1. Overview
  2. Quick Start
  3. Task Playbook
  4. Configuration Guidance
  5. Shell Integration
Original SKILL.md headings · 58 lines, 287 words
SKILL.md preview
---
name: worktree
description: Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options.
---
# Worktree

## Overview

Use `git wt` as the default interface for git worktree tasks. It wraps `git worktree` to list, create, switch, and delete worktrees with safer defaults.

## Quick Start

```console
git wt                       # list worktrees
git wt <branch|worktree>     # switch/create (creates branch and worktree if needed)
git wt -d <branch|worktree>  # delete worktree and branch (safe)
git wt -D <branch|worktree>  # force delete worktree and branch
```

## Task Playbook

### List worktrees

Run `git wt` and parse the output. Use this to confirm names and paths before switching or deleting.

### Create or switch worktree

Prefer `git wt <branch|worktree>` for both actions. It will create the branch/worktree if missing, otherwise switch to it.

If staying in the current directory matters, use `--nocd`:

```console
git wt --nocd feature-branch
```

### Delete worktree

Use `git wt -d <branch|worktree>` for a safe delete. Only use `-D` if explicitly requested or when cleanup must be forced.

## Configuration Guidance

Use `git config` for defaults; override with flags when needed.

- `wt.basedir` / `--basedir`: set the worktree base directory (default is `../{gitroot}-wt`).
- `wt.copyignored` / `--copyignored`: copy gitignored files (for example, `.env`) when creating.
- `wt.copyuntracked` / `--copyuntracked`: copy untracked files on create.
- `wt.copymodified` / `--copymodified`: copy modified tracked files on create.
- `wt.nocopy` / `--nocopy`: exclude files from copying (gitignore syntax).
- `wt.copy` / `--copy`: always copy specific patterns even if ignored.
- `wt.hook` / `--hook`: run commands after creating a new worktree.
- `wt.nocd` / `--nocd`: prevent automatic directory switching.

## Shell Integration

When asked to enable shell integration, use the appropriate init command:

```powershell
Invoke-Expression (git wt --init powershell | Out-String)
```

Use `--nocd` with `--init` to enable completion without wrapping `git` when required.

Versions

RepositoryScoreLicence
This page · mattg101/SolidLink100MIT
vanducng/skills100MIT
tony/skills100MIT
zts212653/clowder-ai100MIT
duronext/jig100MIT
guangshinhaha/shinstack100MIT
PranamRDoshi/dotclaude100MIT
kronael/tools100Unlicense
rhesis-ai/rhesis100MIT

Database snapshot: 13.11.2026 · package version c0b5f8cb9414 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100wt
    This skill should be used when the user asks about 'wt', 'worktree', 'worktrees', 'wt create', 'wt checkout', 'wt list', 'wt remove', 'wt pr', 'wt mr', or mentions managing git worktrees with wt. Also use when the user asks how wt works, how to use wt commands, or how to…
  • 100git-wt
    Manages worktree lifecycle operations through git-wt without replacing an existing linked worktree. Use when creating, switching, listing, renaming, or deleting worktrees.
  • 100flux-worktree-kit
    Manage git worktrees (create/list/switch/cleanup) and copy .env files. Use for parallel feature work, isolated review, clean workspace, or when user mentions worktrees.
  • 100git-worktree
    Manage Git worktrees for isolated parallel development. Use when creating, switching, or cleaning up worktrees for parallel bead work.
  • 100worktree-switching
    Git worktree support in sidecar: worktree detection, switching between worktrees, worktree state management, and plugin reinitialization. Covers the full lifecycle of worktree context switching including registry reinit, per-worktree state persistence, deleted worktree detection…
  • 100create-worktree
    Create a ClickHouse git worktree with submodules hardlinked from the main repo. Use when the user wants to create a new worktree for ClickHouse development.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.