askill
worktree-ops

worktree-opsSafety 85Repository

Manage Git worktrees: create worktrees, sync local-only files via .worktreeinclude, handle hooks, and use helper scripts. Use when asked about worktree workflows, .worktreeinclude, or setting up worktree tooling.

0 stars
1.2k downloads
Updated 2/27/2026

Package Files

Loading files...
SKILL.md

Worktree Ops

Quick start

  • Create worktree (required when skill used): git worktree add <path> <branch> (or -b <branch> <start-point>)
  • Sync local-only files: copy scripts/worktree-include.sh from this skill into repo, then run ./scripts/worktree-include.sh
  • Optional wrapper: copy scripts/worktree-add.sh from this skill into repo
  • Optional hook: copy scripts/husky-post-checkout.sh to .husky/post-checkout
  • Add local-only files to .worktreeinclude (format below)

Requirements

  • Git installed
  • bash available (for worktree-include.sh and worktree-add.sh)
  • Husky optional (the hook only runs if Husky is installed/enabled)

Conventions

  • When this skill is invoked, create a new worktree by default. If path/branch not specified, ask for them.
  • Keep local-only secrets/configs out of git; list in .worktreeinclude
  • Prefer copy for env/profiles/keys; use symlink only when safe
  • Use hook behavior: .husky/post-checkout runs include once on fresh worktree (hook file stored in this skill)

Details

  • .worktreeinclude format: <mode> <source> [dest], mode = copy|symlink, paths relative to main worktree root
    • Paths cannot contain spaces (simple parser)
  • Example .worktreeinclude:
    • copy .env.local
    • symlink .vscode/settings.json .vscode/settings.json
  • scripts/worktree-include.sh:
    • resolve main root via git rev-parse --git-common-dir
    • copy/symlink from main to current worktree
    • skip if src missing or dest exists
  • scripts/worktree-add.sh:
    • git worktree add -b if start-point provided
    • run include script in new worktree

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

73/100Analyzed 3/2/2026

A solid skill covering Git worktree management with clear structure and actionable steps. Includes quick start, requirements, conventions, and file format details. Main weakness is that actual shell scripts are not included inline - users must copy them from the skill rather than having them immediately available. Has good safety guidance (secrets handling, symlink warnings) and clear usage triggers. Scores well on clarity and organization but could be more complete with inline script content."

85
80
65
60
75

Metadata

Licenseunknown
Version-
Updated2/27/2026
Publisherw00ing

Tags

No tags yet.