sc-managing-worktrees

Create, scan, and clean up Git worktrees with protected-branch safeguards.

4|2|Updated Nov 29, 2025
One-click install
npx skills add https://github.com/randlee/synaptic-canvas --skill sc-managing-worktrees
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-managing-worktrees
Source: https://github.com/randlee/synaptic-canvas/tree/main/packages/sc-git-worktree/skills/sc-git-worktree
Command: npx skills add https://github.com/randlee/synaptic-canvas --skill sc-managing-worktrees

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use this Skill to create, scan, update, and clean up Git worktrees for parallel development while enforcing protected-branch safeguards.

Core Features & Use Cases

  • Create worktrees and branches with safe defaults, tracking, and optional worktree paths.
  • Scan/verify worktrees: ensure clean status, fetch updates, and compare against optional tracking docs.
  • Clean up worktrees post-workflow, with protection to never delete protected branches.
  • Enforce protected-branch rules and worktree hygiene across multiple concurrent tasks.

Quick Start

Run /sc-git-worktree with inputs like --branch feature/login --base develop to scaffold a new worktree, or use --scan to verify existing worktrees.

Frequently Asked Questions about sc-managing-worktrees

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Git worktree for parallel development?

Git worktrees enable parallel development by creating isolated working directories linked to your repository. Use the Skill to scaffold a new worktree with a specified branch and base, applying safe defaults and tracking automatically.

What's the best way to manage multiple Git worktrees safely?

Enforce protected-branch safeguards across worktrees by scanning for clean status, fetching updates, and verifying against tracking documentation. The Skill prevents accidental deletion of protected branches during cleanup workflows.

How do I verify and clean up Git worktrees after feature work?

Scan worktrees to ensure clean status and compare against tracking docs, then remove stale worktrees with protection rules that block deletion of protected branches, maintaining repository hygiene across concurrent tasks.

Can I use Git worktrees with branch protection rules?

Yes. The Skill enforces protected-branch rules within worktree operations, preventing worktree creation or cleanup actions that would violate branch protection policies across multiple concurrent development tasks.

When should I use worktrees instead of branch switching?

Worktrees are ideal for isolated experiments, feature isolation, and scenarios requiring multiple branches checked out simultaneously without switching context. They maintain separate working directories, enabling parallel development on unrelated features.