git_branch

Create a new git branch by name with an optional starting point.

8|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/OpenAuthority/clawthority --skill git-branch-openauthority
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git_branch
Source: https://github.com/OpenAuthority/clawthority/tree/main/examples/skills/git_branch
Command: npx skills add https://github.com/OpenAuthority/clawthority --skill git-branch-openauthority

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates a new git branch in a repository by name with an optional starting point.

Core Features & Use Cases

  • Create a new branch by name, with an optional starting point (branch, tag, or commit).
  • Return the created branch name and a status message; raise branch-already-exists if the branch already exists; raise from-not-found if the starting point does not exist.
  • Use cases include feature development, release preparation, or hotfix workflows.

Quick Start

Create a new branch named feature/my-feature from HEAD or from a specific starting point if provided.

Frequently Asked Questions about git_branch

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

FAQPage Schema
How do I create a new git branch from a specific commit or tag?

Creating a git branch from a specific commit or tag requires specifying that ref as the starting point. The Skill creates a new branch by name with an optional starting point, returning the created branch name and a status message.

What happens if I try to create a git branch that already exists?

When creating a git branch that already exists, the process raises a branch-already-exists error. It returns a structured result indicating the failure so you can safely handle the conflict in your version-control workflow.

Why does my git branch creation fail with a missing starting point?

Your git branch creation fails with a from-not-found error when the specified starting point does not exist in the repository. Verify the branch, tag, or commit hash is valid before attempting to derive your new feature or hotfix branch.

When do I need to create feature, hotfix, or release branches in git?

You need to create feature, hotfix, or release branches in git when isolating development work, preparing production deployments, or fixing critical bugs. This Skill supports these workflows by deriving branches from a specific commit or ref.

Can I create a git branch from HEAD without specifying a starting point?

Yes, you can create a git branch from HEAD without specifying a starting point. The Skill creates a new branch by name and defaults to HEAD if no optional starting point is provided in the repository.

What is the best way to automate git branching for feature development?

Automating git branching for feature development involves using a tool that creates branches by name with optional starting points. This Skill returns structured results including branch names and status messages, ideal for automated version-control workflows.