create-branch

Create Git branches from working tree changes using conventional naming rules.

130|21|Updated Jun 29, 2023
One-click install
npx skills add https://github.com/indexnetwork/index --skill create-branch-indexnetwork
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-branch
Source: https://github.com/indexnetwork/index/tree/main/.cursor/skills/create-branch
Command: npx skills add https://github.com/indexnetwork/index --skill create-branch-indexnetwork

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating new Git branches by automatically suggesting descriptive names based on your current changes, ensuring consistency and clarity in your development workflow.

Core Features & Use Cases

  • Automated Branch Naming: Analyzes git status and git diff to propose a Conventional Commits-style branch name.
  • Branch Creation: Executes git checkout -b <name> with the proposed name.
  • Use Case: After making several changes to a feature, you can ask the AI to create a new branch for those changes, and it will suggest and create a branch like feature/add-user-authentication.

Quick Start

Use the create-branch skill to make a new branch for your current changes.

Frequently Asked Questions about create-branch

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

FAQPage Schema
How do I create a Git branch automatically based on my working tree changes?

To create a Git branch automatically, this skill analyzes your working tree changes via git status and diff to propose and execute a conventional branch name. This ensures your branch naming remains consistent and descriptive.

What is the best way to name feature branches using conventional commits?

The best way to name feature branches using conventional commits is to apply pattern restrictions and character sets for clarity. This skill analyzes your code changes to generate brief names like feature/add-user-authentication automatically.

How does automated branch naming handle ticket inclusion and chore branches?

Automated branch naming handles ticket inclusion by optionally appending ticket identifiers to conventional branch prefixes. It detects working tree changes to categorize and name branches for chores, hotfixes, releases, and bug fixes accurately.

Can I use this workflow automation for bug fixes and hotfix branch creation?

Yes, you can use this workflow automation for bug fixes and hotfix branch creation. It detects your working tree changes and executes git checkout with a suggested conventional branch name tailored to your specific development task.

Do I need to stage my changes before generating a conventional branch name?

You do not need to fully stage changes before generating a conventional branch name. The skill analyzes the working tree changes directly to propose a descriptive name and executes the branch creation process immediately.