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★ 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:
- Type detection — Auto-detect bug/feature/refactor from description
- Issue ID extraction — JIRA, GitHub, or internal issue references
- Slug generation — Short, URL-safe names from descriptions
- Worktree setup — Parallel development without branch switching
- 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:
- Stop
- Ask ONE question at a time
- Wait for explicit confirmation
- Only proceed when ALL inputs are confirmed
NEVER:
- Guess the source branch
- Assume
mainordevelopwithout 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
Установить agent-ops-branch-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic