What problem does it solve?
It prevents misnamed feature branches by automatically validating that the current Git branch follows the expected Speckit feature naming conventions.
Core Features & Use Cases
- Branch naming enforcement: Checks whether the current branch name matches either the sequential pattern (numbers + dash) or the timestamp pattern (YYYYMMDD-HHMMSS + dash).
- Spec directory consistency: Verifies that a matching spec folder exists under specs/ for the extracted branch prefix, helping keep branch structure aligned with Speckit project structure.
- Graceful fallback when Git is unavailable: Uses the SPECIFY_FEATURE environment variable as a backup source of the feature name when running outside a Git repository.
Real-world use case: you create a feature branch and want confidence that the branch name aligns with the corresponding specs/<prefix>-* directory so your validation and documentation workflow doesn’t break later.
Quick Start
Run the speckit-git-validate skill while your current working directory is on the feature branch you want to check.