Skip to main content

speckit-git-validate

Validate current branch follows feature branch naming conventions

설치로 이동

소스 정보

저장소
unoplatform/uno
최근 소스 활동
2026년 4월 24일 09:20
감지된 SKILL.md 언어
영어
스타
10,052
포크
883

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
speckit-git-validate
description
Validate current branch follows feature branch naming conventions
compatibility
Requires spec-kit project structure with .specify/ directory
metadata
{"author":"github-spec-kit","source":"git:commands/speckit.git.validate.md"}
# Validate Feature Branch Validate that the current Git branch follows the expected feature branch naming conventions. ## Prerequisites - Check if Git is available by running `git rev-parse --is-inside-work-tree 2>/dev/null` - If Git is not available, output a warning and skip validation: ``` [specify] Warning: Git repository not detected; skipped branch validation ``` ## Validation Rules Get the current branch name: ```bash git rev-parse --abbrev-ref HEAD ``` The branch name must match one of these patterns: 1. **Sequential**: `^[0-9]{3,}-` (e.g., `001-feature-name`, `042-fix-bug`, `1000-big-feature`) 2. **Timestamp**: `^[0-9]{8}-[0-9]{6}-` (e.g., `20260319-143022-feature-name`) ## Execution If on a feature branch (matches either pattern): - Output: `✓ On feature branch: <branch-name>` - Check if the corresponding spec directory exists under `specs/`: - For sequential branches, look for `specs/<prefix>-*` where prefix matches the numeric portion - For timestamp branches, look for `specs/<prefix>-*` where prefix matches the `YYYYMMDD-HHMMSS` portion - If spec directory exists: `✓ Spec directory found: <path>` - If spec directory missing: `⚠ No spec directory found for prefix <prefix>` If NOT on a feature branch: - Output: `✗ Not on a feature branch. Current branch: <branch-name>` - Output: `Feature branches should be named like: 001-feature-name or 20260319-143022-feature-name` ## Graceful Degradation If Git is not installed or the directory is not a Git repository: - Check the `SPECIFY_FEATURE` environment variable as a fallback - If set, validate that value against the naming patterns - If not set, skip validation with a warning
GitHub에서 보기