Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
getsentry avatar

Create Branch

  • 29 installs
  • 898 repo stars
  • Updated August 3, 2026
  • getsentry/sentry-skills

This is a copy of create-branch by getsentry - installs and ranking accrue to the original listing.

Helps with ai & agent building tasks.

About

create-branch is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • create-branch
  • AI & Agent Building
  • AI-coding skill

Create Branch by the numbers

  • 29 all-time installs (skills.sh)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/getsentry/sentry-skills --skill create-branch

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs29
repo stars898
Last updatedAugust 3, 2026
Repositorygetsentry/sentry-skills

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

Create Branch

Create a git branch following Sentry naming conventions. Keep this workflow non-interactive unless the user explicitly asks to choose the name manually.

Workflow

1. Resolve the work description:

  • If $ARGUMENTS is present, use it
  • Otherwise inspect:
     git diff
     git diff --cached
     git status --short
  • If there are local changes, derive a short description from the diff
  • If there are no local changes, use a generic description like repo-maintenance, tooling-update, or work-in-progress

2. Classify the branch type:

TypeUse when
featNew functionality
fixBroken behavior now works
refBehavior stays the same, structure changes
choreMaintenance of existing tooling/config
perfSame behavior, faster
styleVisual or formatting only
docsDocumentation only
testTests only
ciCI/CD config
buildBuild system
metaRepo metadata
licenseLicense changes

When unsure: use feat for new things, ref for restructuring, chore for maintenance.

3. Generate <type>/<short-description>. Keep <short-description> kebab-case, ASCII-only, and ideally 3 to 6 words.

4. Choose the base without prompting:

   git branch --show-current
   git remote | grep -qx origin && echo origin || git remote | head -1
   git symbolic-ref refs/remotes/<remote>/HEAD 2>/dev/null | sed 's|refs/remotes/<remote>/||' | tr -d '[:space:]'
  • If default branch detection fails, fall back to main, then master, then the current branch
  • If on a detached HEAD, branch from the current commit
  • If already on a non-default branch, branch from the current branch
  • Only switch to the default branch when the user explicitly asks

5. Avoid collisions by appending -2, -3, and so on until the name is unused locally and remotely.

6. Create the branch:

   git checkout -b <branch-name>

Report the final branch name, but do not stop for confirmation.

References

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.