Software DevelopmentOfficial · getsentry

Create Branch skill for Claude

Create a git branch following Sentry naming conventions.

When Claude uses it

Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.

Create Branch SKILL.md

The full skill file from getsentry/skills (Apache-2.0).

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.

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

  2. 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
  3. Avoid collisions by appending -2, -3, and so on until the name is unused locally and remotely.

  4. Create the branch:

    git checkout -b <branch-name>
    

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

References

How to install Create Branch

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit getsentry/skills/skills/create-branch#main ~/.claude/skills/create-branch

Codex

npx degit getsentry/skills/skills/create-branch#main ~/.codex/skills/create-branch

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Create Branch skill do?

Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.

+How do I install Create Branch in Claude Code?

Copy the skill folder into ~/.claude/skills/create-branch, for example with "npx degit getsentry/skills/skills/create-branch#main ~/.claude/skills/create-branch". Claude Code loads it automatically and uses it when a task matches.

+Does Create Branch work with ChatGPT or Codex?

Yes. Create Branch uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/create-branch. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Create Branch free?

Create Branch is published on GitHub by getsentry under the Apache-2.0 license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Document Api Endpoint

    Official

    Document and type a Sentry API endpoint. Write or fix @extend_schema decorators, specify response TypedDicts, type request parameters,…

    getsentry/skills★ 1.2k
  5. Pr Link Issue

    Official

    Append a GitHub issue link and its Linear ticket to the current PR's description.

    getsentry/skills★ 1.2k
  6. Secret Serialization

    Official

    Finds secrets, tokens, passwords, and API keys that can leak through generated serialization: Python dataclass repr and asdict, attrs,…

    getsentry/skills★ 1.2k
  7. Typing Exclusion Worker

    Official

    Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and…

    getsentry/skills★ 1.2k
  8. Youtube Api

    Reach for this when YouTube data is needed and Google's Data API is the obstacle: no quota units, no OAuth consent screens, one Bearer key.

    artemchuikin/youtube-skills★ 275
  9. Mongodb Atlas Stream Processing

    Official

    Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle…

    mongodb/agent-skills★ 206

See all software development skills →

More skills from getsentry

  1. Django Access Review

    Official

    Django access control and IDOR security review. Use when reviewing Django views, DRF viewsets, ORM queries, or any Python/Django code…

    getsentry/skills★ 1.2k
  2. Django Perf Review

    Official

    Django performance code review. Use when asked to "review Django performance", "find N+1 queries", "optimize Django", "check queryset…

    getsentry/skills★ 1.2k
  3. Doc Coauthoring

    Official

    Guide users through a structured workflow for co-authoring documentation.

    getsentry/skills★ 1.2k

All skills by getsentry →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.