openspec-sp-git-worktree
CommunityCreate isolated Git workspaces safely
Authorcenmiao
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Creates isolated, reproducible working directories for branch-specific development to prevent workspace contamination, accidental commits of ephemeral files, and environment drift.
Core Features & Use Cases
- Safe directory selection and policy: Prioritizes existing worktrees directories, project preferences, or explicit user choice.
- Safety validation: Verifies git ignore status and updates .gitignore when necessary to avoid accidental commits.
- Worktree creation and setup: Creates named branches in dedicated worktrees, runs project setup commands, and verifies baseline tests for feature development, bugfixes, or experiments.
- Use Case: Spin up a feature branch worktree, run dependency installation, and confirm tests before starting implementation.
Quick Start
Create an isolated worktree at worktrees/feature-auth on a new branch feature/auth, ensure the directory is git-ignored, run the project setup commands for the repository, and execute baseline tests to confirm the environment is ready.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: openspec-sp-git-worktree Download link: https://github.com/cenmiao/openspec-pro/archive/main.zip#openspec-sp-git-worktree Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.