Validate current branch follows feature branch naming conventions
Validate that the current Git branch follows the expected feature branch naming conventions.
git rev-parse --is-inside-work-tree 2>/dev/null[specify] Warning: Git repository not detected; skipped branch validationGet the current branch name:
git rev-parse --abbrev-ref HEADThe branch name must match one of these patterns:
^v[0-9]+/(feat|fix|chore|refactor|docs|test|perf|build|ci)/[A-Z]+-[0-9]{4}-[a-z0-9]+(-[a-z0-9]+)*$ (e.g., v1/feat/STAFF-0003-create-employee-cqrs-commands). This is the convention required by task.md for this repo.^[0-9]{3,}- (e.g., 001-feature-name, 042-fix-bug, 1000-big-feature)^[0-9]{8}-[0-9]{6}- (e.g., 20260319-143022-feature-name)If on a feature branch (matches any pattern):
✓ On feature branch: <branch-name>specs/:
<PROJECTCODE>-<TASK_NUMBER>, e.g. STAFF-0003) and look for specs/<prefix>-*specs/<prefix>-* where prefix matches the numeric portionspecs/<prefix>-* where prefix matches the YYYYMMDD-HHMMSS portion✓ Spec directory found: <path>⚠ No spec directory found for prefix <prefix>If NOT on a feature branch:
✗ Not on a feature branch. Current branch: <branch-name>Feature branches should be named like: v1/feat/STAFF-0003-feature-name (project mandate), 001-feature-name, or 20260319-143022-feature-nameIf Git is not installed or the directory is not a Git repository:
SPECIFY_FEATURE environment variable as a fallback0dbd4dc
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.