create-branch
하는 일
코드 프로젝트에 새 ‘브랜치’를 만들어 작업을 정리합니다. 하고 있는 일과 명명 규칙에 따라 이름을 제안합니다.
사용하는 경우
- ✓새 기능 작업을 시작하고 싶을 때.
- ✓버그를 고치고 그 수정을 따로 분리하고 싶을 때.
- ✓새 작업을 시작하는데 브랜치 이름을 어떻게 지을지 모르는 경우.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/create-branch/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“대화 페이지에 검색창을 추가하기 위한 브랜치를 만들고 싶어요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 먼저 사용자의 사용자 이름을 알아내려고 합니다. 그다음 코드에서 바뀐 내용을 살펴보거나, 무엇을 작업할지 묻습니다. 이를 바탕으로 특정 패턴에 따른 브랜치 이름을 제안합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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.
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:
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:
| Type | Use when |
|---|---|
feat |
New user-facing functionality |
fix |
Broken behavior now works |
ref |
Same behavior, different structure |
chore |
Deps, config, version bumps, updating existing tooling — no new logic |
perf |
Same behavior, faster |
style |
CSS, formatting, visual-only |
docs |
Documentation only |
test |
Tests only |
ci |
CI/CD config |
build |
Build system |
meta |
Repo metadata changes |
license |
License 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 description | Branch name |
|---|---|
| Dropdown menu not closing on outside click | priscila/fix/dropdown-not-closing-on-blur |
| Adding search to conversations page | priscila/feat/add-search-to-conversations |
| Restructuring drawer components | priscila/ref/simplify-drawer-components |
| Updating test fixtures | priscila/chore/update-test-fixtures |
| Bumping @sentry/react to latest version | priscila/chore/bump-sentry-react |
| Adding a new agent skill | priscila/feat/add-create-branch-skill |
Step 5: Create the Branch
Once confirmed, detect the current and default branch:
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.
…
자주 묻는 질문
코드 ‘브랜치’란 무엇인가요?
프로젝트의 별도 복사본으로 생각하면 됩니다. 주 버전에 영향을 주지 않고 변경할 수 있어, 실험하거나 새 기능을 작업하기에 좋습니다.
브랜치 이름이 왜 중요한가요?
좋은 이름은 그 브랜치가 무엇을 위한 것인지 빠르게 이해하게 해 주며, 다른 사람과 협업하고 프로젝트를 정리하기 쉽게 합니다.
‘feat’나 ‘fix’ 같은 유형은 무엇인가요?
브랜치의 목적을 나타내는 라벨입니다. ‘feat’은 새 기능, ‘fix’는 버그 수정, ‘docs’는 문서 작업 등을 뜻하며, 작업을 정리하는 데 도움이 됩니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 48k
- 순위
- #4278
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.