sdcorejs-using-worktrees
CommunitySafely isolate builds with git worktrees
Authorsdcorejs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Prevents AI code generation from modifying the user’s live branch by creating an isolated workspace for the build and subsequent write-code steps.
Core Features & Use Cases
- Detects existing isolation first: skips worktree creation when already inside a linked worktree (with a submodule guard).
- Creates isolated workspace safely: uses a native worktree tool when available, otherwise falls back to git worktree with a project-local ignored directory.
- Prepares a clean baseline: runs per-stack setup and a baseline build/test so later failures are attributable to new changes.
- Enables parallel agent fan-out: provides separate directories for parallel/split execution without trampling branches.
- Use Case: When a user asks to “chạy song song nhiều feature”, each feature generation can run in its own isolated worktree, preserving the current branch.
Quick Start
Tell the AI: “Tạo worktree riêng trước khi chạy angular-portal-write-code để cô lập công việc, không đụng nhánh hiện tại.”
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: sdcorejs-using-worktrees Download link: https://github.com/sdcorejs/sdcorejs-agent/archive/main.zip#sdcorejs-using-worktrees 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.