Speckit git validate

From racecraft-lab/Paddock · View interactive version

Speckit git validate is an AI agent skill from the GitHub repository racecraft-lab/Paddock. Validate current branch follows feature branch naming conventions

How to use this skill

Skill file

Validate Feature Branch

Validate that the current Git branch follows the expected feature branch naming conventions.

Prerequisites

```

[specify] Warning: Git repository not detected; skipped branch validation

```

Validation Rules

Get the current branch name:

git rev-parse --abbrev-ref HEAD

The branch name must match one of these patterns:

  1. Sequential: ^[0-9]{3,}- (e.g., 001-feature-name, 042-fix-bug, 1000-big-feature)
  2. Timestamp: ^[0-9]{8}-[0-9]{6}- (e.g., 20260319-143022-feature-name)

Execution

If on a feature branch (matches either pattern):

If NOT on a feature branch:

Graceful Degradation

If Git is not installed or the directory is not a Git repository:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.