{"id":"fa848e16-7f75-4bdc-9317-9db8e9a68c65","shortId":"QWcfCS","kind":"skill","title":"create-branch","tagline":"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.","description":"# Create Branch\n\nCreate a git branch with the correct type prefix and a descriptive name following Sentry conventions.\n\n## When to Use\n- You need to create a new git branch that follows the repository's naming convention.\n- You are starting a new piece of work from the default branch and need help classifying it as `feat`, `fix`, `docs`, or another branch type.\n- You want the branch name proposed from either the task description or the current local diff.\n\n## Step 1: Get the Username Prefix\n\nRun `gh api user --jq .login` to get the GitHub username.\n\nIf the command fails (e.g. not authenticated), ask the user for their preferred prefix.\n\n## Step 2: Determine the Branch Description\n\n**If `$ARGUMENTS` is provided**, use it as the description of the work.\n\n**If no arguments**, check for local changes:\n\n```bash\ngit diff\ngit diff --cached\ngit status --short\n```\n\n- **Changes exist**: read the diff content to understand what the work is about and generate a description.\n- **No changes**: ask the user what they are about to work on.\n\n## Step 3: Classify the Type\n\nPick the type from this table based on the description:\n\n| Type      | Use when                                                              |\n| --------- | --------------------------------------------------------------------- |\n| `feat`    | New user-facing functionality                                         |\n| `fix`     | Broken behavior now works                                             |\n| `ref`     | Same behavior, different structure                                    |\n| `chore`   | Deps, config, version bumps, updating existing tooling — no new logic |\n| `perf`    | Same behavior, faster                                                 |\n| `style`   | CSS, formatting, visual-only                                          |\n| `docs`    | Documentation only                                                    |\n| `test`    | Tests only                                                            |\n| `ci`      | CI/CD config                                                          |\n| `build`   | Build system                                                          |\n| `meta`    | Repo metadata changes                                                 |\n| `license` | License changes                                                       |\n\nWhen unsure: `feat` for new things (including new scripts, skills, or tools), `ref` for restructuring existing things, `chore` only when updating/maintaining something that already exists.\n\n## Step 4: Generate and Propose\n\nBuild the branch name as `<username>/<type>/<short-description>`.\n\nRules for `<short-description>`:\n\n- Kebab-case, lowercase\n- 3 to 6 words, concise but clear\n- Describe the change, not file names\n- Only use ASCII letters, digits, and hyphens — no spaces, dots, colons, tildes, or other git-forbidden characters\n\nPresent it to the user and ask if they want to use it, modify it, or change the type.\n\n### Examples\n\n| Work description                           | Branch name                                 |\n| ------------------------------------------ | ------------------------------------------- |\n| Dropdown menu not closing on outside click | `priscila/fix/dropdown-not-closing-on-blur` |\n| Adding search to conversations page        | `priscila/feat/add-search-to-conversations` |\n| Restructuring drawer components            | `priscila/ref/simplify-drawer-components`   |\n| Updating test fixtures                     | `priscila/chore/update-test-fixtures`       |\n| Bumping @sentry/react to latest version    | `priscila/chore/bump-sentry-react`          |\n| Adding a new agent skill                   | `priscila/feat/add-create-branch-skill`     |\n\n## Step 5: Create the Branch\n\nOnce confirmed, detect the current and default branch:\n\n```bash\ngit branch --show-current\ngit remote | grep -qx origin && echo origin || git remote | head -1\ngit symbolic-ref refs/remotes/<remote>/HEAD 2>/dev/null | sed 's|refs/remotes/<remote>/||' | tr -d '[:space:]'\n```\n\nIf `symbolic-ref` fails, fall back to `git branch --list main master`: use the one that exists; if both or neither exist, ask the user.\n\nIf `git branch --show-current` is empty (detached HEAD), show the current commit (`git rev-parse --short HEAD`) and ask whether to branch from it or switch to the default branch first.\n\nOtherwise, if the current branch is not the default branch, warn the user and ask whether to branch from the current branch or switch to the default branch first.\n\nIf the user wants to switch to the default branch, handle any uncommitted changes appropriately (offer to stash them if present), then run `git checkout <default-branch>`. On any failure, restore stashed changes if applicable and stop.\n\nBefore creating the branch, check that the name doesn't already exist locally or on the remote (`git show-ref`). If it does, ask the user to choose a different name.\n\nCreate the branch:\n\n```bash\ngit checkout -b <branch-name>\n```\n\nRestore any stashed changes after the branch is created.\n\n## References\n\n- [Sentry Branch Naming](https://develop.sentry.dev/sdk/getting-started/standards/code-submission/#branch-naming)\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["create","branch","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows"],"capabilities":["skill","source-sickn33","skill-create-branch","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/create-branch","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34831 github stars · SKILL.md body (5,478 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-24T06:50:59.074Z","embedding":null,"createdAt":"2026-04-18T21:35:21.549Z","updatedAt":"2026-04-24T06:50:59.074Z","lastSeenAt":"2026-04-24T06:50:59.074Z","tsv":"'-1':445 '/dev/null':453 '/head':451 '/sdk/getting-started/standards/code-submission/#branch-naming)':638 '1':119 '2':150,452 '3':213,327 '4':312 '5':417 '6':329 'ad':390,410 'agent':413 'alreadi':309,594 'anoth':99 'api':126 'applic':581 'appropri':563 'argument':156,169 'ascii':342 'ask':14,142,202,364,483,507,534,608,672 'authent':141 'b':622 'back':466 'base':223 'bash':174,429,619 'behavior':238,243,259 'boundari':680 'branch':3,7,18,20,23,26,31,40,42,46,69,88,100,105,153,318,380,420,428,431,469,488,510,518,524,529,537,541,547,558,587,618,629,634 'broken':237 'build':276,277,316 'bump':250,404 'cach':179 'case':325 'chang':173,183,201,282,285,336,374,562,579,626 'charact':357 'check':170,588 'checkout':573,621 'choos':612 'chore':246,303 'ci':273 'ci/cd':274 'clarif':674 'classifi':92,214 'clear':333,647 'click':388 'close':385 'colon':350 'command':137 'commit':499 'compon':398 'concis':331 'config':248,275 'confirm':422 'content':188 'convent':11,58,76 'convers':393 'correct':49 'creat':2,4,16,41,43,65,418,585,616,631 'create-branch':1 'criteria':683 'css':262 'current':115,425,434,491,498,523,540 'd':458 'default':39,87,427,517,528,546,557 'dep':247 'describ':334,651 'descript':54,112,154,163,199,226,379 'detach':494 'detect':423 'determin':151 'develop.sentry.dev':637 'develop.sentry.dev/sdk/getting-started/standards/code-submission/#branch-naming)':636 'diff':117,176,178,187 'differ':244,614 'digit':344 'doc':97,267 'document':268 'doesn':592 'dot':349 'drawer':397 'dropdown':382 'e.g':139 'echo':440 'either':109 'empti':493 'environ':663 'environment-specif':662 'exampl':377 'exist':184,252,301,310,477,482,595 'expert':668 'face':234 'fail':138,464 'failur':576 'fall':465 'faster':260 'feat':95,230,288 'file':338 'first':519,548 'fix':96,236 'fixtur':402 'follow':8,56,71 'forbidden':356 'format':263 'function':235 'generat':197,313 'get':120,131 'gh':125 'git':6,45,68,175,177,180,355,430,435,442,446,468,487,500,572,601,620 'git-forbidden':354 'github':133 'grep':437 'handl':559 'head':444,495,505 'help':91 'hyphen':346 'includ':292 'input':677 'jq':128 'kebab':324 'kebab-cas':323 'latest':407 'letter':343 'licens':283,284 'limit':639 'list':470 'local':116,172,596 'logic':256 'login':129 'lowercas':326 'main':471 'make':24 'master':472 'match':648 'menu':383 'meta':279 'metadata':281 'miss':685 'modifi':371 'name':10,55,75,106,319,339,381,591,615,635 'need':63,90 'neither':481 'new':19,30,35,67,81,231,255,290,293,412 'offer':564 'one':475 'origin':439,441 'otherwis':520 'output':657 'outsid':387 'page':394 'pars':503 'perf':257 'permiss':678 'pick':217 'piec':82 'prefer':147 'prefix':51,123,148 'present':358,569 'priscila/chore/bump-sentry-react':409 'priscila/chore/update-test-fixtures':403 'priscila/feat/add-create-branch-skill':415 'priscila/feat/add-search-to-conversations':395 'priscila/fix/dropdown-not-closing-on-blur':389 'priscila/ref/simplify-drawer-components':399 'propos':107,315 'provid':158 'qx':438 'read':185 'ref':241,298,449,463,604 'refer':632 'refs/remotes':450,456 'remot':436,443,600 'repo':280 'repositori':73 'requir':676 'restor':577,623 'restructur':300,396 'rev':502 'rev-pars':501 'review':669 'rule':321 'run':124,571 'safeti':679 'scope':650 'script':294 'search':391 'sed':454 'sentri':9,57,633 'sentry/react':405 'short':182,504 'show':433,490,496,603 'show-curr':432,489 'show-ref':602 'skill':295,414,642 'skill-create-branch' 'someth':307 'source-sickn33' 'space':348,459 'specif':664 'start':21,34,79 'stash':566,578,625 'status':181 'step':118,149,212,311,416 'stop':583,670 'structur':245 'style':261 'substitut':660 'success':682 'switch':27,514,543,554 'symbol':448,462 'symbolic-ref':447,461 'system':278 'tabl':222 'task':111,646 'test':270,271,401,666 'thing':291,302 'tild':351 'tool':253,297 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'tr':457 'treat':655 'type':50,101,216,219,227,376 'uncommit':561 'understand':190 'unsur':287 'updat':251,400 'updating/maintaining':306 'use':12,61,159,228,341,369,473,640 'user':127,144,204,233,362,485,532,551,610 'user-fac':232 'usernam':122,134 'valid':665 'version':249,408 'visual':265 'visual-on':264 'want':103,367,552 'warn':530 'whether':508,535 'word':330 'work':36,84,166,193,210,240,378","prices":[{"id":"3e966e26-3270-4631-a162-46686edf4b41","listingId":"fa848e16-7f75-4bdc-9317-9db8e9a68c65","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:35:21.549Z"}],"sources":[{"listingId":"fa848e16-7f75-4bdc-9317-9db8e9a68c65","source":"github","sourceId":"sickn33/antigravity-awesome-skills/create-branch","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/create-branch","isPrimary":false,"firstSeenAt":"2026-04-18T21:35:21.549Z","lastSeenAt":"2026-04-24T06:50:59.074Z"}],"details":{"listingId":"fa848e16-7f75-4bdc-9317-9db8e9a68c65","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"create-branch","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34831,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-24T06:41:17Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"66bd57c63b8337812fb42647ab031439adc1144c","skill_md_path":"skills/create-branch/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/create-branch"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"create-branch","description":"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."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/create-branch"},"updatedAt":"2026-04-24T06:50:59.074Z"}}