From aai-core
Provides Git branch naming patterns, protected branch validation, PR targeting rules, lifecycle steps, and bash/JS commands. Used by git-pr-manager for workflow standardization.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aai-core:branch-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reference patterns for branch naming, validation, and protection.
Reference patterns for branch naming, validation, and protection.
{type}/{ticket-id}-{description}
| Type | Description | Example |
|---|---|---|
feature | New functionality | feature/AUTH-123-oauth-login |
fix | Bug fixes | fix/AUTH-456-token-expiry |
chore | Maintenance tasks | chore/DEP-789-update-deps |
docs | Documentation | docs/README-updates |
refactor | Code restructure | refactor/API-101-cleanup |
test | Test additions | test/AUTH-202-unit-tests |
These branches are PROTECTED - never commit directly:
| Branch | Purpose |
|---|---|
main | Production code |
master | Production code (legacy) |
production | Production deployment |
staging | Pre-production testing |
develop | Development integration |
git branch --show-current
const PROTECTED = ['main', 'master', 'production', 'staging', 'develop'];
const current = getCurrentBranch();
if (PROTECTED.includes(current.toLowerCase())) {
throw new Error(`Cannot operate on protected branch: ${current}`);
}
// Pattern: type/TICKET-123-description
const match = branchName.match(/^[a-z]+\/([A-Z]+-\d+)/);
const ticketId = match ? match[1] : null;
| Source Branch | Target Branch |
|---|---|
feature/* | staging or develop |
fix/* | staging or develop |
chore/* | staging or develop |
staging | production or main |
NEVER target main/master directly from feature branches.
git checkout staging
git pull origin staging
git checkout -b feature/TICKET-123-description
git branch -vv
git push -u origin feature/TICKET-123-description
# Local
git branch -d feature/TICKET-123-description
# Remote
git push origin --delete feature/TICKET-123-description
npx claudepluginhub bradtaylorsf/alphaagent-teamGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.