Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

git-branch-create

/git-branch-create

Tworzy i przełącza na nową gałąź Git według konwencji nazewnictwa, gdy zaczyna się wyodrębniona porcja pracy.

Repozytorium
pivoshenko.ai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
21.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 21.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Tworzy i przełącza na nową gałąź Git według konwencji nazewnictwa, gdy zaczyna się wyodrębniona porcja pracy.

Wyzwalacze z opisu

start work on Xspin up a branch for Ylet. Boundary: a request naming an existing issue (pick up that issue
Oryginalny opis (EN)

Create a new git branch using a conventional naming scheme. Use when the user asks to create a branch, start a new branch, /git-branch-create, or signals they are beginning a discrete piece of work - "start work on X", "spin up a branch for Y", "let's start Z". Boundary: a request naming an existing issue ("#42", "pick up that issue") is `git-issue-start`'s; filing a ticket without starting work is `git-issue-create`'s. Creates and checks out the branch immediately without asking for confirmation.

Jak działa

  1. Flow
  2. Naming
  3. Rules
Sekcje z nagłówków SKILL.md, w oryginale · 54 linii, 481 słów
Podgląd SKILL.md
---
name: git-branch-create
description: >-
  Create a new git branch using a conventional naming scheme. Use when the user asks to create a
  branch, start a new branch, /git-branch-create, or signals they are beginning a discrete piece of
  work - "start work on X", "spin up a branch for Y", "let's start Z". Boundary: a request naming an
  existing issue ("#42", "pick up that issue") is `git-issue-start`'s; filing a ticket without
  starting work is `git-issue-create`'s. Creates and checks out the branch immediately without asking
  for confirmation.
tags: [git]
updated_at: 2026-09-13
---

# Git Branch Create

Make + checkout new branch. No confirm.

## Flow

0. User named an issue (`#42`, "the oauth issue", "start 42") -> stop, this is `git-issue-start`'s flow: it assigns the issue, derives the type from its `type: *` label, and branches using the naming rules below. Why -> branching from an issue without assigning it leaves the tracker claiming nobody picked the work up
1. Parallel: `git status` + `git branch --show-current`
2. Dirty tree -> stop. Tell user to stash or commit first. Why -> `checkout -b` carries staged + unstaged changes into the new branch silently, mixing them with future work
3. Pick base:
   - Detect, don't assume: `git symbolic-ref --short refs/remotes/origin/HEAD` -> strip the `origin/`. Ref missing (never fetched) -> `git remote set-head origin -a`, re-read. No remote -> `main`, fall back `master`. Why -> a repo based on `develop` or `trunk` gets branched off the wrong parent otherwise, and the mistake surfaces at PR time as a diff full of other people's commits
   - Base = the detected default branch unless the user explicitly says "off this branch" / "from here" -> then use current. Skip step 4's fetch; go to step 5 "off current" variant. Being on a feature branch alone is not that signal
4. Exists? `git show-ref --verify --quiet refs/heads/<name>` -> 0 = stop, surface conflict, no overwrite. Why -> `checkout -b` errors anyway, but check early so message is clean + no half-state
5. Create:
   - Off `<base>` (default): `git fetch origin <base>` + `git checkout -b <name> origin/<base>`
   - No remote -> `git checkout -b <name> <base>` (local ref; skip the fetch). Local `<base>` absent too (unborn repo) -> `git checkout -b <name>` off `HEAD`
   - Off current: `git checkout -b <name>` (no fetch, no remote ref - current HEAD is the base)
6. Print branch + base

## Naming

`<type>/<short-kebab-desc>` or `<type>/<scope>-<short-kebab-desc>`.

Whole name ≤ 60 chars.

### Type

Same set + picks as `git-commit`. See that skill's **Type pick** + **Tiebreakers** for disambiguation. Quick list: `feat|fix|perf|refactor|docs|test|build|ci|chore`.

### Desc

- Kebab-case. Not camel / snake
- Imperative present: `add`, `fix`, `remove`. Not `added`, `fixes`
- < ~50 chars, and keeps the whole name ≤ 60. Over -> drop the scope segment first, then cut modifiers, then pick a shorter verb. Never truncate mid-word: `feat/add-oauth-log` reads like a different feature
- No ticket IDs unless asked. Why -> history readable + tool-agnostic; trackers come+go, branches stay. Asked -> suffix: `feat/add-auth-middleware-PROJ-123`

### Examples

- `feat/add-oauth-login`
- `fix/api-timeout-on-retry`
- `refactor/extract-user-service`
- `docs/update-readme`
- `ci/cache-pnpm-store`

## Rules

- Derive `type` + desc from intent + diff if avail
- Issue number given -> hand to `git-issue-start`. Don't branch from an issue here
- User gives name -> verbatim. No rewrite
- Never delete/reset existing branches here
- Never push new branch unless asked
- Branch exists -> stop. Surface conflict. No overwrite

Wersje

W bazie nie ma innych skilli o nazwie git-branch-create.

Migawka bazy z 13.11.2026 · wersja paczki 9944c04632d0 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100create-branch
    Tworzy gałąź git zgodną z konwencją nazewnictwa Sentry przy rozpoczynaniu nowej pracy na domyślnej gałęzi.
  • 100create-branch
    Tworzy gałąź git zgodną z konwencją nazewnictwa Sentry przy rozpoczynaniu nowej pracy na domyślnej gałęzi.
  • 100create-branch
    Tworzy gałąź git zgodną z konwencją nazewnictwa Sentry przy rozpoczynaniu nowej pracy na domyślnej gałęzi.
  • 100create-branch
    Tworzy gałąź git zgodną z konwencją nazewnictwa Sentry przy rozpoczynaniu nowej pracy na domyślnej gałęzi.
  • 100ticket-branch
    Tworzy gałąź git na podstawie numeru lub linku zgłoszenia z trackera.
  • 100git-issue-start
    Prowadzi zgłoszenie GitHub od otwartego do wyewidencjonowanej gałęzi: przypisuje je użytkownikowi, oznacza jako w toku, tworzy nazwę gałęzi z etykiety typu i odgałęzia od wykrytej bazy.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.