Skip to content
Back to skills

Start Branch

ASecurity

Use when about to change code beyond a couple-of-lines edit while on main, master or the default branch, or when two roles must change the same area in parallel - before the first edit.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add sergvss/agents-best-teams --skill start-branch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Start Branch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Start Branch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sergvss-start-branch/badge)](https://www.skillsdirectory.com/skills/sergvss-start-branch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: start-branch
description: Use when about to change code beyond a couple-of-lines edit while on main, master or the default branch, or when two roles must change the same area in parallel - before the first edit.
---

# Начало работы в ветке

Любая правка кода крупнее пары строк — включая небольшую задачу Tier 1 — идёт в отдельной ветке: основная остаётся рабочей, откат — удаление ветки. Правка в пару строк — на текущей ветке. Порог ветки — не Tier: Tier решает, сколько процесса нужно, ветка — где работа живёт.

1. **Текущая ветка** — `git branch --show-current`. Не основная (`main`, `master` или та, на которую указывает `origin/HEAD`) — работай здесь.
2. **На основной — политика проекта:** `git config --get abt.branches`.
   - `auto` — создай ветку без вопроса; `off` — работай в основной.
   - Пусто — **заведи ветку сразу** (обратимо, основная останется чистой) и одним вопросом спроси пользователя: «Работать в отдельных ветках и дальше? Да — запомню. Нет — работаю в основной». Ответ запиши: `git config abt.branches auto` или `off`. Ответят «нет» — `git switch <основная>`, правки вернутся.
   - Ты субагент — вопрос верни блоком «НУЖНО РАЗРЕШЕНИЕ», а ветку заведи.
3. **`git switch -c <тип>/<короткое-имя>`** — `feat/`, `fix/`, `refactor/`, `docs/`, `chore/`. Чужие незакоммиченные правки переедут вместе с тобой — в свои коммиты их не включай.
4. **Ledger заведён** — запиши туда ветку и основную.

**Worktree** — только когда одну область кода меняют двое параллельно, при двух подходах на сравнение или рискованном эксперименте. Иначе хватает зон ролей. Создавай встроенными средствами платформы — изоляция при вызове роли, `EnterWorktree` для своей сессии, — а не `git worktree add` руками.

Полный текст — когда что делать с worktree и почему так:
`${CLAUDE_PLUGIN_ROOT}/checklists/branch-workflow.md`

Если методология установлена копированием — файл лежит в `checklists/branch-workflow.md` репозитория.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.