create-feature-branch
БесплатноБез исполняемых скриптовНе проверенCreate a feature branch named by the branch conventions. Use when starting work on an issue or creating a new branch.
от torrust★ 539 звёзд на GitHubОб этом скилле
Creating Feature Branches
This skill guides you through creating feature branches following the Torrust Tracker branching conventions.
Delivery Policy
- Never push directly to
developormain. - To merge into
developormain, you must open a PR intorrust/torrust-tracker. - That PR must come from a branch in a fork (
<fork-owner>:<branch>), not a branch in the same repository. - Remote names are contributor-specific. Do not assume
originortorrust; identify remotes fromgit remote -v. - The upstream repository is
https://github.com/torrust/torrust-tracker. Its remote is commonly namedtorrust, but verify withgit remote -v. - Before branching, always fetch and pull the latest
developfrom the upstream remote to ensure the branch starts from an up-to-date base.
Branch Naming Convention
Format: {issue-number}-{short-description} (preferred)
For a spec-only branch, use {issue-number}-{short-description}-spec. Reserve the base
issue branch name for the later implementation branch so the two phases do not collide.
Alternative formats (no tracked issue):
feat/{short-description}fix/{short-description}chore/{short-description}
Rules:
- Always start with the GitHub issue number when one exists
- Use lowercase letters only
- Separate words with hyphens (not underscores)
- Keep description concise but descriptive
Creating a Branch
Standard Workflow
# Identify the upstream remote (points to https://github.com/torrust/torrust-tracker)
# It is commonly named "torrust"; verify with: git remote -v
UPSTREAM_REMOTE=torrust # replace if your remote has a different name
# Ensure you're on the latest develop from upstream
git checkout develop
git fetch $UPSTREAM_REMOTE
git pull --ff-only $UPSTREAM_REMOTE develop
# Create and checkout branch for issue #42
git checkout -b 42-add-peer-expiry-grace-period
With MCP GitHub Tools
- Get the issue number and title
- Format the branch name:
{number}-{kebab-case-description} - Create the branch from
develop - Checkout locally:
git fetch && git checkout {branch-name}
Branch Naming Examples
✅ Good branch names:
42-add-peer-expiry-grace-period156-refactor-udp-server-socket-binding203-add-e2e-mysql-tests1697-ai-agent-configuration2134-fix-cognitive-complexity-lint-enforcement-spec— spec-only branch
❌ Avoid:
my-feature— no issue numberFEATURE-123— all capsfix_bug— underscores instead of hyphens42_add_support— underscores
Branch Name Validation
Before creating a branch, verify that the issue number (if used) actually exists as an open
issue in GitHub and has a matching spec in docs/issues/open/. This prevents accidentally
referencing a wrong, closed, or non-existent issue number.
Note: The git hooks runner (issue #1843) will eventually automate this check. Until then, verify manually by checking whether
docs/issues/open/contains a spec file or directory starting with the issue number.
Complete Branch Lifecycle
1. Create Branch from develop
# Identify the upstream remote (commonly "torrust"; verify with git remote -v)
UPSTREAM_REMOTE=torrust # replace if your remote has a different name
git checkout develop
git fetch $UPSTREAM_REMOTE
git pull --ff-only $UPSTREAM_REMOTE develop
git checkout -b 42-add-peer-expiry-grace-period
2. Develop
Make commits following commit conventions.
3. Pre-commit Checks
cargo machete
linter all
cargo test --doc --workspace
cargo test --tests --benches --examples --workspace --all-targets --all-features
4. Push to Your Fork
git push {your-fork-remote} 42-add-peer-expiry-grace-period
To avoid assuming remote names, resolve upstream from Cargo.toml and then select your fork remote:
UPSTREAM_REPO=$(grep '^repository\s*=\s*"https://github.com/' Cargo.toml | sed -E 's#.*github.com/([^\"]+).*#\1#')
git remote -v
# Choose the remote that points to your fork (not "$UPSTREAM_REPO")
5. Create Pull Request
Target branch: torrust/torrust-tracker:develop from <fork-owner>:<branch-name>.
6. Cleanup After Merge
git checkout develop
git pull --ff-only
git branch -d 42-add-peer-expiry-grace-period
Converting Issue Title to Branch Name
- Get issue number (e.g., #42)
- Take issue title (e.g., "Add Peer Expiry Grace Period")
- Convert to lowercase kebab-case:
add-peer-expiry-grace-period - Prefix with issue number:
42-add-peer-expiry-grace-period
Установить create-feature-branch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл create-feature-branch?
Create a feature branch named by the branch conventions. Use when starting work on an issue or creating a new branch.
Как установить скилл create-feature-branch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-feature-branch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic