# Create Feature Branch

## Context

<git_status>
!`git status`
</git_status>

<current_branch>
!`git branch --show-current`
</current_branch>

<recent_branches>
!`git branch --sort=-committerdate | head -5`
</recent_branches>

## Task Description

$ARGUMENTS

## Instructions

1. **Parse the task description** above to understand what needs to be done.

2. **Generate a branch name** following conventional commit style:
   ```
   <type>/<short-description>
   ```

   Types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`

   Rules:
   - Lowercase only
   - Replace spaces with hyphens
   - Keep concise (3-5 words max)
   - Examples: `feat/add-dark-mode`, `fix/sidebar-scroll-issue`, `refactor/extract-utils`

3. **Switch to main and pull latest:**
   ```bash
   git checkout main && git pull origin main
   ```

4. **Create and switch to the new branch:**
   ```bash
   git checkout -b <branch-name>
   ```

5. **Confirm** with `git branch --show-current`.

6. **Summarize** the branch name and what task it's for.

---

--- title: Create Command: Scaffold New Slash Commands description: Interactive agent that scaffolds new slash commands with best practices, proper frontmatter, and structured templates tool: claude category: agent tags: ['claude-code', 'slash-commands', 'automation', 'scaffolding'] url: https://alexop.dev/prompts/claude/claude-create-slash-command ---