speckit-git-validate

Validates that the current Git branch follows spec-kit feature branch naming conventions.

Updated Sep 19, 2026
One-click install
npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill speckit-git-validate-ab0umar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-git-validate
Source: https://github.com/Ab0umar/selrs.cc.BU/tree/main/.agents/skills/speckit-git-validate
Command: npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill speckit-git-validate-ab0umar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams using spec-kit workflows need feature branches to follow strict naming patterns so specs, branches, and automation stay aligned. Manually checking branch names is error-prone, and working on a wrongly named branch can break downstream spec tooling. ## Core Features & Use Cases - Branch Name Validation: Checks the current Git branch against sequential (001-feature-name) and timestamp (20260319-143022-feature-name) naming patterns. - Spec Directory Detection: Verifies that a matching spec directory exists under specs/ for the branch prefix and reports whether it was found. - Graceful Degradation: Falls back to the SPECIFY_FEATURE environment variable or skips with a warning when Git is unavailable. - Use Case: Before starting spec-driven development, run this validation to confirm you are on branch 042-fix-bug and that specs/042-* exists, catching misnamed branches early. ## Quick Start Ask the AI to validate that the current Git branch follows the spec-kit feature branch naming conventions and that the matching spec directory exists.

Frequently Asked Questions about speckit-git-validate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate a Git feature branch name in a spec-kit project?▼

Run the branch validation to compare the current branch from git rev-parse --abbrev-ref HEAD against the sequential pattern ^[0-9]{3}- or the timestamp pattern ^[0-9]{8}-[0-9]{6}-. It reports whether the branch is a valid feature branch.

What branch naming conventions does spec-kit use?▼

Spec-kit feature branches use either a sequential numeric prefix like 001-feature-name or 1000-big-feature, or a timestamp prefix like 20260319-143022-feature-name. Branches not matching either pattern are flagged as non-feature branches.

Does branch validation work without Git installed?▼

Yes, it degrades gracefully. If Git is unavailable or the directory is not a repository, it checks the SPECIFY_FEATURE environment variable as a fallback, and if that is unset it skips validation with a warning instead of failing.

Why does validation warn about a missing spec directory?▼

After confirming a valid feature branch, the check looks for a matching directory under specs/ using the branch's numeric or timestamp prefix. A missing directory means the spec for that feature has not been created yet, so the warning prompts you to set it up.

What are the limitations of Git branch name validation?▼

It only checks naming patterns and spec directory existence; it does not verify branch contents, commit history, or spec file correctness. It also requires the spec-kit project structure with a .specify/ directory to be meaningful.