speckit-git-validate

Validate Git branch names against feature naming conventions and spec directories.

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring --skill speckit-git-validate-youssif-mohamed1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-validate
Source: https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring/tree/main/source%20code/LMS-Project/.agents/skills/speckit-git-validate
Command: npx skills add https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring --skill speckit-git-validate-youssif-mohamed1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents broken or inconsistent Git feature branch naming that can disrupt downstream spec discovery and workflow automation.

Core Features & Use Cases

  • Branch naming validation: Checks the current branch name against sequential (e.g., 001-feature-name) and timestamp (e.g., 20260319-143022-feature-name) formats.
  • Spec directory cross-check: Verifies that a corresponding spec directory exists under specs/ based on the detected branch prefix.
  • Graceful fallback behavior: If Git is unavailable, it can validate a SPECIFY_FEATURE environment value instead of failing.

Quick Start

Run the skill to validate the current Git branch naming and confirm whether the matching specs/<prefix>-* 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 Git branch naming conventions for feature workflows?

Git branch naming conventions are validated by checking the current branch name against sequential and timestamp formats to ensure predictable feature tracking and spec discovery. The skill matches branch prefixes to expected directory structures for workflow automation.

What branch naming patterns are supported for feature branch validation?

Feature branch validation supports sequential naming formats like 001-feature-name and timestamp-based formats such as 20260319-143022-feature-name. These patterns ensure branch prefixes map predictably to corresponding spec directories.

How do I check if a spec directory exists for my current Git branch?

Spec directory existence is checked by verifying that a corresponding specs/<prefix>-* folder matches the detected Git branch prefix. This filesystem cross-check confirms that required documentation is present for the active feature branch.

Can I validate a feature branch without Git installed in the environment?

Feature branch validation without Git relies on a graceful fallback to the SPECIFY_FEATURE environment value. When Git is unavailable, the skill validates the feature name from this environment variable instead of failing the workflow.

Why does my CI pipeline need branch naming validation and spec directory checks?

CI pipelines need branch naming validation and spec directory checks to prevent broken or inconsistent Git feature branch naming from disrupting downstream spec discovery. Enforcing these CI guardrails maintains predictable repository workflows and automation.

Do I need to create the specs directory before running feature branch validation?

Feature branch validation checks for the existence of a corresponding specs directory based on the branch prefix. While the skill detects this directory, ensuring your repository workflow creates the matching specs/<prefix>-* folder beforehand guarantees successful validation.