speckit-git-validate

Validate Git feature-branch names against two patterns and map them to specs/.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates that the active Git branch follows established feature-branch naming conventions to prevent inconsistent branch tracking and review workflows.

Core Features & Use Cases

  • Branch name validation against two patterns: a 3+ digit prefix (e.g., 001-feature) and a timestamp prefix (YYYYMMDD-HHMMSS-feature).
  • Spec-directory mapping: verifies that a corresponding specs/ entry exists for the detected prefix, enabling alignment with Spec-kit workflows.
  • Graceful degradation: if Git is unavailable, uses SPECIFY_FEATURE fallback when provided, otherwise skips with a warning.

Quick Start

Switch to a feature branch and run the speckit-git-validate tool to confirm it matches the naming rules and that a corresponding 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 enforce feature-branch naming conventions in a Git workflow?

Feature-branch naming validates that your active Git branch matches established patterns like a 3+ digit prefix or a timestamp prefix. This prevents inconsistent branch tracking and maintains consistent review workflows across your repository.

What branch name patterns are valid for Spec-kit workflows?

Valid Spec-kit branch name patterns include a 3+ digit prefix like 001-feature and a timestamp prefix formatted as YYYYMMDD-HHMMSS-feature. The validation maps these prefixes to corresponding entries under the specs/ directory.

Does branch name validation work when Git is unavailable?

Branch name validation handles Git unavailability through graceful degradation. It uses a provided SPECIFY_FEATURE fallback to continue processing, otherwise it skips validation and prints a warning message to alert the user.

How do I verify a spec directory exists for my Git feature branch?

To verify a spec directory exists, run the validation on your current Git branch. It checks the branch name prefix and maps it to a corresponding specs/ entry, confirming alignment with your Spec-kit structure and printing status messages.

Why does my Git workflow need branch naming validation?

Branch naming validation is needed to prevent inconsistent branch tracking and review workflows. It ensures every feature branch follows established conventions and maps correctly to its corresponding spec directory for accurate documentation alignment.

Can I use a fallback when Git branch validation fails to detect the current branch?

You can use a fallback when Git cannot detect the current branch by providing the SPECIFY_FEATURE variable. This allows the validation logic to proceed gracefully instead of skipping the entire workflow with a warning.