Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-ops-branch-workflow

БесплатноБез исполняемых скриптовНе проверен

Standardized branch creation with type detection, issue ID extraction, and worktree setup. Creates working branches (-WB) and integrates with selective-copy…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Branch Workflow — Standardized Branch Creation

Create working branches with consistent naming from task descriptions. Platform agnostic.

Works with or without aoc CLI. Uses standard git commands.


Purpose

Standardize branch creation with:

  1. Type detection — Auto-detect bug/feature/refactor from description
  2. Issue ID extraction — JIRA, GitHub, or internal issue references
  3. Slug generation — Short, URL-safe names from descriptions
  4. Worktree setup — Parallel development without branch switching
  5. Clean branch integration — Seamless handoff to selective-copy

CRITICAL: No Assumptions

NEVER assume. NEVER guess. ALWAYS ask.

Before creating ANY branch, confirm with user:

If unclear about... ASK
Task description "What is the task? Please include issue ID if available."
Source branch "Which branch should I base this on? (e.g., develop, main)"
Branch type "I detected this as a [type]. Is that correct?"
Issue ID "I found [ID]. Is this the correct issue reference?"
Generated name "I'll create branch {name}. Does this look right?"

If ANY of these are ambiguous:

  1. Stop
  2. Ask ONE question at a time
  3. Wait for explicit confirmation
  4. Only proceed when ALL inputs are confirmed

NEVER:

  • Guess the source branch
  • Assume main or develop without asking
  • Create a branch without showing the user the exact name first
  • Proceed if the task description is vague

Branch Naming Convention

Working branch: {type}/{ID}-{slug}-WB
Clean branch:   {type}/{ID}-{slug}

Examples:

Task Working Branch Clean Branch
"GATS-0666: Add auth support" feature/GATS-0666-add-auth-WB feature/GATS-0666-add-auth
"Fix #123 login timeout" bugfix/123-login-timeout-WB bugfix/123-login-timeout
"Refactor database layer" refactor/db-layer-WB refactor/db-layer

Invocation

User says something like:

  • "Create a branch for GATS-0666: Add authentication"
  • "Start working on fix for login timeout bug"
  • "New feature branch based on develop"

Arguments

Argument Description Required Default
task_description Description of work (for type/ID/slug detection) Yes -
source_branch Branch to base new branch on Yes -
branch_name Override auto-generated name No Auto-generated

Phase 1: Create Working Branch

Step 1: Gather Requirements

If not provided, ask:

To create your working branch, I need:

1. What's the task? (include issue ID if you have one)
   Example: "GATS-0666: Add OAuth2 authentication support"

2. Which branch should I base this on?
   Example: develop, main, release/v2.0

Step 2: Detect Branch Type

Analyze the task description to determine type:

Keywords Type
hotfix, critical, urgent, emergency hotfix/
fix, bug, error, crash, broken, issue bugfix/
refactor, cleanup, restructure, reorganize refactor/
doc, readme, changelog, documentation docs/
chore, deps, dependency, maintenance, update chore/
(default) feature, add, implement, create feature/
# PowerShell - Type Detection
function Get-BranchType {
    param([string]$Description)
    
    $desc = $Description.ToLower()
    
    if ($desc -match 'hotfix|critical|urgent|emergency') { return 'hotfix' }
    if ($desc -match 'fix|bug|error|crash|broken|issue') { return 'bugfix' }
    if ($desc -match 'refactor|cleanup|restructure|reorganize') { return 'refactor' }
    if ($desc -match 'doc|readme|changelog') { return 'docs' }
    if ($desc -match 'chore|deps|dependency|maintenance|update') { return 'chore' }
    
    return 'feature'
}
# Bash - Type Detection
get_branch_type() {
    local desc="${1,,}"  # lowercase
    
    if "$desc" =~ hotfix|critical|urgent|emergency; then echo "hotfix"; return; fi
    if "$desc" =~ fix|bug|error|crash|broken|issue; then echo "bugfix"; return; fi
    if "$desc" =~ refactor|cleanup|restructure|reorganize; then echo "refactor"; return; fi
    if "$desc" =~ doc|readme|changelog; then echo "docs"; return; fi
    if "$desc" =~ chore|deps|dependency|maintenance|update; then echo "chore"; return; fi
    
    echo "feature"
}

Step 3: Extract Issue ID

Look for issue identifiers in the description:

Pattern Example Type
[A-Z]{2,10}-\d+ GATS-0666, PROJ-123 JIRA
#\d+ #456 GitHub
[A-Z]+-\d+@\w+ FEAT-0305@p8q9r0 Internal
# PowerShell - Issue ID Extraction
function Get-IssueId {
    param([string]$Description)
    
    # JIR
Полный SKILL.md на GitHub

Установить agent-ops-branch-workflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл agent-ops-branch-workflow?

Standardized branch creation with type detection, issue ID extraction, and worktree setup. Creates working branches (-WB) and integrates with selective-copy for clean PRs.

Как установить скилл agent-ops-branch-workflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-ops-branch-workflow запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-ops-branch-workflow с