setup-branch

Community

Safely create and push branches

Authorkapilvirenahuja
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents branch-creation failures and repository disruption by safely handling clean vs dirty working trees while creating and pushing a new branch.

Core Features & Use Cases

  • Dirty-tree handling: Uses stash for small/low-change dirty states and worktree for larger change sets to avoid losing work.
  • Safety guardrails: Verifies the branch does not exist locally or on the remote before creating it, and never force-pushes or deletes branches.
  • Optional push with verification: Pushes to origin with tracking (when enabled) and verifies the resulting branch and remote configuration.

Quick Start

Use the setup-branch skill to create branch feature/42-add-oauth-login and push it to origin while preserving any current dirty changes safely.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: setup-branch
Download link: https://github.com/kapilvirenahuja/garura/archive/main.zip#setup-branch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.