git-storytelling-branch-strategy
Use when planning git branching strategies or managing branches for development. Helps create clear development narratives through effective branch…
от TheBushidoCollective★ 202 звезды на GitHub
Установить git-storytelling-branch-strategy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Git Storytelling - Branch Strategy
This skill helps you implement effective branching strategies that tell the story of your development process through organized, purposeful branch management. Good branching creates a clear narrative of parallel development efforts.
Core Concepts
Why Branch Strategy Matters
A good branching strategy:
- Creates clear development narratives - Each branch tells a specific story
- Enables parallel work - Multiple features can develop simultaneously
- Facilitates code review - Changes are isolated and reviewable
- Supports deployment workflows - Different branches for different environments
- Reduces merge conflicts - Smaller, focused branches are easier to merge
- Documents development history - Branch names and structure show intent
The Story of Branches
Think of branches as parallel storylines in your codebase:
- Main branch: The canonical story, always working and deployable
- Feature branches: Side quests that eventually merge into the main story
- Release branches: Chapters being prepared for publication
- Hotfix branches: Emergency patches to the published story
- Development branch: The staging area where stories come together
Branch Naming Conventions
Standard Prefixes
Use consistent prefixes to categorize branches:
feature/ - New features
fix/ - Bug fixes
hotfix/ - Production emergency fixes
refactor/ - Code refactoring
test/ - Testing changes
docs/ - Documentation
chore/ - Maintenance tasks
release/ - Release preparation
Naming Best Practices
Good branch names are:
# GOOD: Clear, descriptive, kebab-case
feature/user-authentication
fix/payment-processing-timeout
refactor/extract-validation-logic
hotfix/critical-security-patch
# BAD: Vague, unclear, inconsistent
feature/new-stuff
fix-thing
my-branch
temp
Including Issue Numbers
Reference tracking system issues:
feature/123-add-user-authentication
fix/456-resolve-memory-leak
hotfix/789-patch-security-vulnerability
Branch Name Format
Follow a consistent pattern:
<type>/<issue-number>-<short-description>
Examples:
feature/234-oauth-integration
fix/567-null-pointer-exception
refactor/890-simplify-error-handling
Common Branching Strategies
Git Flow
A robust branching model for release-based software:
# Main branches (permanent)
main # Production-ready code
develop # Integration branch for features
# Supporting branches (temporary)
feature/* # New features
release/* # Release preparation
hotfix/* # Production fixes
Git Flow Workflow:
# Start new feature
git checkout develop
git checkout -b feature/user-profile
# Work on feature with commits
git commit -m "feat: add user profile model"
git commit -m "feat: add profile update endpoint"
# Finish feature
git checkout develop
git merge --no-ff feature/user-profile
git branch -d feature/user-profile
# Start release
git checkout develop
git checkout -b release/v1.2.0
# Prepare release
git commit -m "chore: bump version to 1.2.0"
git commit -m "docs: update CHANGELOG"
# Finish release
git checkout main
git merge --no-ff release/v1.2.0
git tag -a v1.2.0 -m "Release version 1.2.0"
git checkout develop
git merge --no-ff release/v1.2.0
git branch -d release/v1.2.0
# Emergency hotfix
git checkout main
git checkout -b hotfix/v1.2.1
# Fix and release
git commit -m "fix: critical security issue"
git checkout main
git merge --no-ff hotfix/v1.2.1
git tag -a v1.2.1 -m "Hotfix version 1.2.1"
git checkout develop
git merge --no-ff hotfix/v1.2.1
git branch -d hotfix/v1.2.1
GitHub Flow
A simpler model for continuous deployment:
# Only one main branch
main # Always deployable
# All work in feature branches
feature/* # Features, fixes, everything
GitHub Flow Workflow:
# Create feature branch from main
git checkout main
git pull origin main
git checkout -b feature/add-search
# Make commits
git commit -m "feat: add search component"
git commit -m "test: add search tests"
git commit -m "docs: document search API"
# Push and create pull request
git push -u origin feature/add-search
# After review and CI passes, merge via PR
# Then deploy main branch
# Clean up
git checkout main
git pull origin main
git branch -d feature/add-search
Trunk-Based Development
Minimal branching with short-lived feature branches:
# Main branch
main # The trunk, always deployable
# Short-lived feature branches (< 1 day)
feature/* # Small, quick features
Trunk-Based Workflow:
# Create short-lived feature branch
git checkout main
git pull origin main
git checkout -b feature/update-button-text
# Make focused change
git commit -m "feat: update CTA button text"
# Push and merge same day
git push -u origin feature/update-button-text
# Merge via PR or direct merge
git checkout main
git merge feature/up
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл git-storytelling-branch-strategy?
Use when planning git branching strategies or managing branches for development. Helps create clear development narratives through effective branch organization and workflow patterns.
Как установить скилл git-storytelling-branch-strategy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-storytelling-branch-strategy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet 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…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…