lazynet

New Worktree — Git skill for Claude Code

Git community

Create a git worktree and branch for a new task with correct naming.

How to install New Worktree

Installs to ~/.claude/commands/lazynet-lazy-harness-new-worktree.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/lazynet/lazy-harness/HEAD/.claude/commands/new-worktree.md -o ~/.claude/commands/lazynet-lazy-harness-new-worktree.md

Restart Claude Code, or start a new session, for it to be picked up.

What New Worktree does


description: Create a git worktree and branch for a new task with correct naming argument-hint: / (type ∈ feat|fix|docs|chore|refactor)

You are creating a new git worktree for the task identified by `$ARGUMENTS`.

Validation (do this first)

  1. Confirm $ARGUMENTS matches the pattern / where is one of feat, fix, docs, chore, refactor. If it does not match, stop and tell the user the expected format.
  2. Extract

Alternatives in Git

  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Local Review — You are tasked with setting up a local review environment for a colleague's branch 10k ★
  • Codexia — Agent Workstation for Codex CLI + Claude Code — with task scheduler, git worktree & remote control, skills man 638 ★

Full documentation available on GitHub

View Source Repository