New branch

From architects-toolkit/SmartHopper · View interactive version

New branch is an AI agent skill from the GitHub repository architects-toolkit/SmartHopper. Add a new git branch based on the description provided by the user

How to use this skill

Skill file

New Branch Creation Workflow

Prerequisites

The user should provide a description of the purpose of the new branch. If no description is provided, ask for it and stop the skill.

Check that the current branch is main. If not, switch to main before continuing.

Branch Naming Convention

Use the following pattern for branch names:

prefix/X.Y.Z-descriptive-title

Where:

Available Prefixes

Determining the Target Version

  1. Check Current Base Version:
  1. Check Previous Release Version:
  1. Determining Current Development Status

Compare the CURRENT BASE VERSION and the PREVIOUS RELEASE VERSION to identify the release level being developed in main. Compare only numbers, skip suffixes. The result can be a PATCH release (0.0.X), a MINOR release (0.X.0), MAJOR release (X.0.0) or NONE (all digits remain equal, version unchanged, 0.0.0).

  1. Determining New Branch Release Level

Identify the logical release level for the suggested changes in the new branch, based on the description provided by the user. It can be:

  1. Determine Target Version

Compare the Required release level (step 4) vs. Current Development Status (step 3). If they match, keep the BASE VERSION as the TARGET VERSION. If they do not match, set the TARGET VERSION in the new branch's name by increasing the patch, minor or major number.

Workflow Steps

  1. Ensure there are no changes pending to commit. Stop the execution if so and ask the user to commit them.
  1. Ensure the current branch is main and synced with remote.

git checkout main

git pull origin main

  1. Create a new local branch from main. Replace prefix, X.Y.Z, and descriptive-title as appropriate. Ask for confirmation if you doubt.

git checkout -b prefix/X.Y.Z-descriptive-title

  1. Tell the user that the new branch was created, and explain why you chose the target version number.

Stop here, do not implement any change in files.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.