speckit-git-validate

Validates Git branch names and ensures corresponding spec directories exist.

Updated May 22, 2026
One-click install
npx skills add https://github.com/brianpunzalan/webui-rubric --skill speckit-git-validate-brianpunzalan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-validate
Source: https://github.com/brianpunzalan/webui-rubric/tree/main/.claude/skills/speckit-git-validate
Command: npx skills add https://github.com/brianpunzalan/webui-rubric --skill speckit-git-validate-brianpunzalan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents broken or inconsistent feature branch naming by automatically checking the current branch against the conventions your spec system expects.

Core Features & Use Cases

  • Branch naming validation: Verifies the current branch matches either the sequential or timestamp-based feature naming patterns.
  • Spec directory alignment: Ensures a corresponding spec directory exists under the expected specs/ prefix for the branch.
  • Graceful fallback: When Git is unavailable, validates an override from the SPECIFY_FEATURE environment variable and otherwise skips safely.

Quick Start

Run the speckit-git-validate Skill while in your repository to confirm your current branch name matches the required pattern and that its related specs 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 feature branch naming conventions before committing?

Feature branch naming validation checks the current Git branch against expected sequential or timestamp-based patterns. It outputs pass/fail messages to enforce naming conventions without performing destructive actions during your feature development workflow.

What is spec directory alignment and why do I need it for Git branches?

Spec directory alignment ensures a corresponding spec directory exists under the expected specs/ prefix for your branch. It prevents broken or inconsistent feature branch naming by automatically checking the current branch against the conventions your spec system expects.

How do I enforce CI guardrails for branch naming and directory checks?

You enforce CI guardrails by applying regex-based pattern checks during feature development workflows. This validates branch naming and verifies that a corresponding spec directory exists for the branch prefix before allowing commits to proceed.

Can I validate branch naming when Git is unavailable in my environment?

When Git is unavailable, branch naming validation safely skips by checking an override from the SPECIFY_FEATURE environment variable. This graceful fallback ensures validation can still function in restricted environments without failing the workflow.

What is the best way to automate spec-driven directory structure validation?

The best way to automate spec-driven directory validation is running regex-based pattern checks at commit time. This verifies both the feature branch name and its corresponding specs directory existence, outputting clear pass/fail/warning messages for sequential or timestamped branches.