branch-from-main

Enforce new Git branches to originate from the tip of main.

3|1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/jon23d/skillz --skill branch-from-main
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: branch-from-main
Source: https://github.com/jon23d/skillz/tree/main/skills/branch-from-main
Command: npx skills add https://github.com/jon23d/skillz --skill branch-from-main

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that all new branches are created from the latest version of the main branch, preventing common Git workflow issues and maintaining a clean project history.

Core Features & Use Cases

  • Enforces Branching Strategy: Guarantees that new development work always starts from the most up-to-date main branch.
  • Handles Incorrect Branching: Provides a clear process for rebasing existing branches onto main if they were mistakenly created from an older or incorrect base.
  • Use Case: When starting a new feature, bug fix, or any new piece of work, use this Skill to create a new branch that is guaranteed to be based on the latest main.

Quick Start

Use the branch-from-main skill to create a new branch named 'feature/my-new-feature'.

Frequently Asked Questions about branch-from-main

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

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

To create a new git branch from main, this Skill enforces a strict policy guaranteeing all new branches originate from the tip of the main branch, preventing workflow errors and maintaining a clean project history.

What happens if I create a git branch from an older or incorrect base?

If a git branch is incorrectly based on an older or different branch, this Skill handles the scenario by providing a clear rebase strategy onto main to correct the workflow and prevent history errors.

What is the best way to enforce a strict git branching workflow for new features?

The best way to enforce a strict git branching workflow is using this Skill to guarantee new feature development always starts from the most up-to-date main branch, preventing common project history issues.

Why do I need to rebase my existing git branch onto main?

You need to rebase your existing git branch onto main if it was mistakenly created from an incorrect base, ensuring your development work originates from the latest main and maintaining a clean history.

Can I use this Skill to fix git branches not based on the main branch?

Yes, you can use this Skill to fix incorrectly based git branches by applying its provided rebase strategy, ensuring they correctly originate from the latest main branch tip to maintain workflow integrity.