AgentSkillsCN

create-branch

从 Jira 工单编号创建功能分支

SKILL.md
--- frontmatter
name: create-branch
description: Create a feature branch from a Jira ticket number
argument-hint: [TICKET-NUMBER]
allowed-tools: Bash

Create Branch

Create a new feature branch from a Jira ticket number.

Arguments

  • $ARGUMENTS - The Jira ticket number (e.g., SECINT-111)

Instructions

Step 1: Checkout master

bash
git checkout master

Step 2: Pull latest changes

bash
git pull

Step 3: Create and checkout the feature branch

The branch name format is nclandrei-<ticket> where <ticket> is the lowercased ticket number.

bash
git checkout -b nclandrei-$(echo "$ARGUMENTS" | tr '[:upper:]' '[:lower:]')

Step 4: Confirm

Output the current branch to confirm:

bash
git branch --show-current