vincentkoc/dotskills

operations-worktree

Safe git worktree creation and hygiene workflow that defaults new branches to an up-to-date remote default branch instead of local HEAD.

First seen Jun 7, 2026

Installation

$ npx skills add vincentkoc/dotskills --skill operations-worktree

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from vincentkoc/dotskills · top by installs.

npx skills add vincentkoc/dotskills

Browse all from vincentkoc/dotskills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 102
License LICENSE
Default branch main
Open issues 4
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseMIT
More metadata
source
https://github.com/vincentkoc/dotskills

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,515 B
  • docs SUMMARY.md 163 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 7 installs

SKILL.md

Operations Worktree

Purpose

Create and manage worktrees safely and consistently across projects while avoiding stale branch bases.

When to use

  • You need a new task branch in a new worktree.
  • You are juggling many concurrent worktrees.
  • You need to avoid branching from stale local main or local HEAD.

Workflow

  1. Ensure you are inside the target repository (main checkout or any linked worktree).
  2. Create a new worktree with the shell wrapper:

- gwt new <branch> - Optional explicit base: gwt new <branch> <start-point>

  1. If shell wrappers are unavailable, use raw git safely:

- default=$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null || echo origin/main) - base=${default#origin/} - git fetch origin "$base" --prune - git worktree add -b <branch> <path> "origin/$base"

  1. For OpenClaw PR review worktrees, prefer that repository's native PR review-init helper instead of hand-assembling refs.

Inputs

  • Branch name (required)
  • Optional start-point (branch/tag/commit)
  • Optional destination path (for raw git mode)

Outputs

  • New linked worktree checked out on the target branch.
  • Default base anchored to a fetched remote default branch unless explicitly overridden.