speckit-git-validate

Validate current Git branch names against feature-branch regex patterns.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/duonghuan2122000/sora-piggy --skill speckit-git-validate-duonghuan2122000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-validate
Source: https://github.com/duonghuan2122000/sora-piggy/tree/main/.claude/skills/speckit-git-validate
Command: npx skills add https://github.com/duonghuan2122000/sora-piggy --skill speckit-git-validate-duonghuan2122000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Công cụ này giúp đảm bảo nhánh hiện tại trong Git tuân thủ các quy tắc đặt tên cho nhánh feature, tránh nhầm lẫn và tăng tính đồng nhất trong quy trình phát triển.

Core Features & Use Cases

  • Kiểm tra nhánh hiện tại có tuân thủ các mẫu đặt tên: số prefix 3 chữ số-..., hoặc mẫu thời gian YYYYMMDD-HHMMSS-...
  • Hỗ trợ quy trình phù hợp với repo kiểu spec-kit bằng cách tìm kiếm nhánh có dạng prefix tương ứng trong specs/, và cảnh báo khi thiếu.
  • Tăng tính tự động và nhất quán trong quá trình phát triển bằng cách đưa ra thông báo và fallback khi Git không có hoặc không phải trong một repository.

Quick Start

Kiểm tra nhánh hiện tại và xác nhận rằng nó tuân thủ quy tắc đặt tên nhánh cho feature như 001-feature-name hoặc 20260319-143022-feature-name.

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 repository?

You can enforce feature-branch naming conventions by validating the current Git branch against regex patterns, ensuring branches follow specific numeric prefix or timestamp-based formats for consistency.

What are the supported Git branch naming patterns for spec-kit workflows?

Supported Git branch naming patterns include a 3-digit numeric prefix like 001-feature-name and a timestamp-based format like YYYYMMDD-HHMMSS-feature-name to match spec-kit project requirements.

How does Git branch validation handle missing Git executable or non-repository directories?

Git branch validation includes graceful fallback handling that safely warns the user when the git executable is unavailable or the current directory is not a Git repository, preventing execution failures.

Does Git branch validation work with general Git workflows or only spec-kit projects?

Git branch validation works with both general Git workflows and spec-kit style projects by checking branch naming patterns and warning if corresponding branches are missing in the specs directory.

Why validate feature branch names against numeric prefix and timestamp patterns?

Validating feature branch names against numeric prefix and timestamp patterns prevents naming confusion, increases development consistency, and ensures automated tracking of feature branches across the repository.