git-branch

Create git branches with context-informed names and default branch detection.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/mir-am/skills-agents-ai-coding --skill git-branch-mir-am
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-branch
Source: https://github.com/mir-am/skills-agents-ai-coding/tree/main/skills/git-branch
Command: npx skills add https://github.com/mir-am/skills-agents-ai-coding --skill git-branch-mir-am

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Developers often struggle with creating well-named, context-aware git branches, leading to confusion and reducing productivity.

Core Features & Use Cases

  • Automatic Default Branch Detection: Finds the main development branch even in complex repository setups.
  • Context-Informed Naming: Derives branch names based on current session goals and local changes, ensuring clarity.
  • Safe Branch Creation: Preserves local changes and avoids accidental overwrites by checking worktree status before switching.

Quick Start

Use the git-branch skill to create a new feature branch from your current session context and git state.

Frequently Asked Questions about git-branch

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

FAQPage Schema
How do I automate git branch creation based on repository context?

Automate git branch creation by analyzing repository context and user activity to generate descriptive names. This approach ensures branches avoid conflicts and reduces manual Git commands.

Can I safely switch git branches without losing local changes?

Safely switch git branches by checking the worktree status before switching. This practice preserves local changes and avoids accidental overwrites during version control workflows.

What is the best way to generate descriptive git branch names from session goals?

Generate descriptive git branch names by deriving context from current session goals and local changes. This context-informed naming ensures clarity and improves workflow productivity.

How do I detect the default development branch in complex repository setups?

Detect the default development branch automatically by analyzing the repository setup. This feature finds the main development branch even in complex version control configurations.

Why do my manually created git branches cause naming conflicts and confusion?

Manually created git branches cause confusion due to inconsistent naming. Automating branch creation analyzes repository context to ensure descriptive names and avoid conflicts.

Does this git branch automation require external dependencies to run?

This git branch automation requires no external dependencies to run. It operates using internal scripts to analyze session goals and git state for safe switching practices.