Skip to content

Instantly share code, notes, and snippets.

@nicksteffens
Last active August 28, 2025 15:29
Show Gist options
  • Save nicksteffens/58712453df0352263785f2678aca4683 to your computer and use it in GitHub Desktop.
Save nicksteffens/58712453df0352263785f2678aca4683 to your computer and use it in GitHub Desktop.
Claude Code: Feature Branch Creation Workflow

⚠️ MIGRATED TO REPOSITORY

This gist has been migrated to: https://github.com/nicksteffens/claude-config/blob/main/commands/branch-create.md

Please use the repository version for the most up-to-date content.


Branch Creation Slash Command

Gist ID: 58712453df0352263785f2678aca4683
Gist URL: https://gist.github.com/nicksteffens/58712453df0352263785f2678aca4683
Update Command: gh gist edit 58712453df0352263785f2678aca4683

Create a new feature branch following the established naming convention.

Branch Naming Convention

  • Format: nicksteffens+claude/{sc-number || issues/number}/short-description
  • For Shortcut stories: sc-{number} (e.g. nicksteffens+claude/sc-165234/fix-user-invitations)
  • For GitHub issues: issues/{number} (e.g. nicksteffens+claude/issues/369/remove-empty-state-margins)

Process

  1. Ask user for ticket/issue reference (Shortcut story number or GitHub issue number)
  2. Ask for brief description for the branch name
  3. Create branch: git checkout -b nicksteffens+claude/{reference}/{description}
  4. Confirm branch creation and show current branch

Example Interaction

  • "What Shortcut story or GitHub issue are you working on?"
  • "What's a brief description for this work?"
  • "Creating branch: nicksteffens+claude/sc-165234/fix-user-invitations"

Always ensure you're on the correct base branch (usually main) before creating the feature branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment