본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #4278

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/create-branch/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4278
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬