branch-worktree-guardian
CommunityPrevent branch mistakes with Git worktrees.
Software Engineering#automation#git#devops#worktree#feature-development#branch-protection#workflow-management
Authortarrragon
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Branch Worktree Guardian enforces safe development on Git by preventing edits on protected branches and guiding teams to create isolated worktrees for feature development, reducing conflicts and risky edits.
Core Features & Use Cases
- Enforces editing on feature branches by validating current branch and suggesting or creating a dedicated worktree.
- Provides scripts to create feature worktrees and verify branch status, enabling parallel development for multiple AI agents.
- Integrates with hooks to automatically warn or block edits on protected branches during SessionStart and tool usage.
Quick Start
Use the included scripts to verify your environment and, if needed, create a new feature branch and worktree. Example: python .claude/skills/branch-worktree-guardian/scripts/create_feature_worktree.py --branch feat/new-feature --worktree ../project-new-feature
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 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: branch-worktree-guardian Download link: https://github.com/tarrragon/claude/archive/main.zip#branch-worktree-guardian 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 223,000+ vetted skills library on demand.