Создание ветки по стандарту Git

★ 7.1 · engineering

New Branch Bootstrap is a Claude Code skill that spins up a fresh working branch from the latest upstream/main following a canonical Git procedure, including branch naming conventions and PR rebase support. Reach for it when starting a new feature, fix, chore, or refactor from a clean baseline, when a PR has gone stale and needs rebasing onto current main, or when you need to reproduce a CI failure from a known-good state. The skill first checks for a clean worktree via `git status --porcelain` and verifies that an `upstream` remote exists (falling back to `origin` for forks), then runs `git fetch upstream --prune --tags` followed by `git switch -c <branch> upstream/main`. Branch names follow conventional-commit prefixes — `feat/`, `fix/`, `refactor/`, `chore/`, `docs/` — with a short kebab-case slug. The rebase variant checks out a PR with `gh pr checkout <NNNN>`, runs `git rebase upstream/main`, and always pushes with `--force-with-lease`, never plain `--force`. A post-branch checklist covers `ANDROID_HOME` and an optional `./gradlew assembleDebug` smoke run. Designed around the Meshtastic-Android upstream/fork model but applicable to any Android project with the same Git workflow. Not a fit for repositories that don't use an upstream remote or don't follow conventional commit conventions.