speckit-git-validate

Validate Git branch names against feature-branch naming rules.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Ab0umar/SRV100_Acc --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/SRV100_Acc/tree/main/.agents/skills/speckit-git-validate
Command: npx skills add https://github.com/Ab0umar/SRV100_Acc --skill speckit-git-validate-ab0umar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validate that the current Git branch naming adheres to the project's feature-branch naming rules, preventing drift and inconsistencies in CI workflows.

Core Features & Use Cases

  • Branch naming validation against sequential and timestamp-based prefixes.
  • Spec directory existence check under specs/ for the current branch prefix.
  • Graceful handling when Git is unavailable or outside a repository, with an optional fallback via SPECIFY_FEATURE.

Quick Start

Run the speckit-git-validate skill in a Git repository to verify the current branch name and its corresponding spec path.

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 Git branch naming conventions in a CI workflow?

You can validate Git branch naming by checking the current branch name against the project's feature-branch rules, ensuring consistency and preventing drift in CI workflows across sequential and timestamp-based prefixes.

How does branch naming validation work with spec directories?

Branch naming validation works by checking for a corresponding spec path under the specs/ directory for the current branch prefix. It matches feature prefixes or timestamps to locate the relevant spec.

What happens if Git is unavailable or I'm outside a repository during branch validation?

If Git is unavailable or you are outside a repository, branch validation handles the situation gracefully and provides an optional fallback using the SPECIFY_FEATURE environment variable to specify the feature context.

Do I need a specs directory to enforce feature-branch naming rules?

Yes, a specs directory structure is required to enforce feature-branch naming rules. The validation process relies on the specs/ directory to locate the corresponding spec for the current branch prefix.

What's the best way to prevent branch naming drift in spec-kit projects?

The best way to prevent branch naming drift is to validate the current Git branch name against the project's feature-branch naming rules before integration. This checks for spec path existence under specs/ for feature prefixes or timestamps.