sickn33/antigravity-awesome-skills/create-branch

Claude Code and agent skill by sickn33/antigravity-awesome-skills

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install sickn33/antigravity-awesome-skills/create-branch

SKILL.md

Create Branch

Create a git branch with the correct type prefix and a descriptive name following Sentry conventions.

When to Use

  • You need to create a new git branch that follows the repository's naming convention.
  • 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.
  • You want the branch name proposed from either the task description or the current local diff.

Repository/user naming rules take precedence over these Sentry defaults. Preserve current dirty/staged/untracked work, resolve the intended base to a full commit and avoid auto-stashing unrelated changes. Validate the resulting name with git check-ref-format --branch and pass it as a quoted argument, never shell-interpolated user text. A stale remote-tracking ref is not proof the remote branch is absent; inspect the intended remote if needed.

Step 1: Get the Username Prefix

Run gh api user --jq .login to get the GitHub username.

If the command fails (e.g. not authenticated), ask the user for their preferred prefix.

Step 2: Determine the Branch Description

If `$ARGUMENTS` is provided, use it as the description of the work.

If no arguments, check for local changes:

bash
git diff
git diff --cached
git status --short
  • Changes exist: read the diff content to understand what the work is about and generate a description.
  • No changes: ask the user what they are about to work on.

Step 3: Classify the Type

Pick the type from this table based on the description:

TypeUse when
featNew user-facing functionality
fixBroken behavior now works
refSame behavior, different structure
choreDeps, config, version bumps, updating existing tooling — no new logic
perfSame behavior, faster
styleCSS, formatting, visual-only
docsDocumentation only
testTests only
ciCI/CD config
buildBuild system
metaRepo metadata changes
licenseLicense changes

When 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.

Step 4: Generate and Propose

Build the branch name as <username>/<type>/<short-description>.

Rules for <short-description>:

  • Kebab-case, lowercase
  • 3 to 6 words, concise but clear
  • Describe the change, not file names
  • Only use ASCII letters, digits, and hyphens — no spaces, dots, colons, tildes, or other git-forbidden characters

Present it to the user and ask if they want to use it, modify it, or change the type.

Examples
Work descriptionBranch name
Dropdown menu not closing on outside clickpriscila/fix/dropdown-not-closing-on-blur
Adding search to conversations pagepriscila/feat/add-search-to-conversations
Restructuring drawer componentspriscila/ref/simplify-drawer-components
Updating test fixturespriscila/chore/update-test-fixtures
Bumping @sentry/react to latest versionpriscila/chore/bump-sentry-react
Adding a new agent skillpriscila/feat/add-create-branch-skill

Step 5: Create the Branch

Once confirmed, detect the current and default branch:

bash
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 symbolic-ref fails, fall back to git branch --list main master: use the one that exists; if both or neither exist, ask the user.

If 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.

Otherwise, 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.

If 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 failure, preserve the named stash and inspect status before restoration; do not pop an unrelated stash or overwrite conflicting work.

Before 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.

Create the branch:

bash
git checkout -b <branch-name>

Restore only the explicitly recorded task stash after inspecting status, verify the restored bytes and keep the stash until recovery is confirmed.

References

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Security

  • Security scanPassed, 93 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
23,568
Repository forks
4,050
Repository npm downloads, 7 days
11,772
7-day trend score
72

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 17 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sickn33/antigravity-awesome-skills/create-branch/badge)](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/create-branch)

Something wrong with this skill or its page? Tell us.