branch

Create a Git feature branch from main with safety checks.

1|Updated Sep 17, 2025
One-click install
npx skills add https://github.com/mpazaryna/agentic-factory --skill branch-mpazaryna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: branch
Source: https://github.com/mpazaryna/agentic-factory/tree/main/dev/developer-workflow/skills/branch
Command: npx skills add https://github.com/mpazaryna/agentic-factory --skill branch-mpazaryna

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of new feature branches in Git, ensuring that development starts from an up-to-date main branch and that the working directory is clean.

Core Features & Use Cases

  • Automated Branch Creation: Creates a new branch from the latest main branch.
  • Safety Checks: Warns about uncommitted changes and prevents accidental work on main.
  • Use Case: When starting a new feature, use this skill to quickly and safely create your development branch, ensuring you're always working off the latest codebase.

Quick Start

Use the branch skill to create a new feature branch named 'new-login-flow'.

Frequently Asked Questions about branch

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

FAQPage Schema
How do I create a new git feature branch safely from the main branch?

To create a git feature branch safely, this skill checks that your working directory is clean and updates the main branch before branching. This prevents accidental work on main and ensures development starts from the latest codebase.

What's the best way to ensure my working directory is clean before branching in git?

The best way to ensure a clean working directory before branching is using automated safety checks that detect uncommitted changes. This skill warns you about uncommitted work and prevents accidental code loss during branch creation.

How does branch naming work when creating a new feature branch?

Branch naming is handled automatically by suggesting names based on the current date and common prefixes if you do not provide one. This standardizes your developer workflow and maintains consistent code management practices.

Can I create a feature branch if my local main branch is not up-to-date?

You cannot create a feature branch from an outdated main branch without updating first. This skill ensures the main branch is fully up-to-date before branching, guaranteeing your new feature integrates the latest codebase changes.

Why does git prevent me from starting new feature work directly on main?

Git prevents direct work on main to avoid destabilizing the main codebase. This skill enforces this safety by automatically creating an isolated feature branch, warning about uncommitted changes, and keeping main protected.