speckit-git-validate
What it does
This skill checks whether your current Git branch name follows the numbering pattern the project uses. It is for developers using the Spec Kit method with feature branches.
When to use it
- ✓When you want to confirm you are working on the right feature branch before making changes.
- ✓When a branch name does not look like the project's feature naming pattern.
- ✓When you want to check that a matching spec folder exists for your branch.
Skill link
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-validate/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Check that my current Git branch follows our feature naming rules and that its spec folder exists.”
5 new skills a week. 1 minute to read.
How it works
The skill reads the current branch name and checks it against the two accepted patterns. It then looks for a spec folder with the same number or timestamp.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Validate Feature Branch
Validate that the current Git branch follows the expected feature branch naming conventions.
Prerequisites
- Check if Git is available by running
git rev-parse --is-inside-work-tree 2>/dev/null - If Git is not available, output a warning and skip validation:
[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:
- Sequential:
^[0-9]{3,}-(e.g.,001-feature-name,042-fix-bug,1000-big-feature) - Timestamp:
^[0-9]{8}-[0-9]{6}-(e.g.,20260319-143022-feature-name)
Execution
If on a feature branch (matches either pattern):
- Output:
✓ On feature branch: <branch-name> - Check if the corresponding spec directory exists under
specs/:- For sequential branches, look for
specs/<prefix>-*where prefix matches the numeric portion - For timestamp branches, look for
specs/<prefix>-*where prefix matches theYYYYMMDD-HHMMSSportion
- For sequential branches, look for
- If spec directory exists:
✓ Spec directory found: <path> - If spec directory missing:
⚠ No spec directory found for prefix <prefix>
If NOT on a feature branch:
- Output:
✗ Not on a feature branch. Current branch: <branch-name> - Output:
Feature branches should be named like: 001-feature-name or 20260319-143022-feature-name
Graceful Degradation
If Git is not installed or the directory is not a Git repository:
- Check the
SPECIFY_FEATUREenvironment variable as a fallback - If set, validate that value against the naming patterns
- If not set, skip validation with a warning
FAQ
What naming patterns are accepted?
Branches can start with a number of three or more digits, or with a date and time stamp.
What if I am not on a feature branch?
The skill reports that and shows example names to use.
What if the spec folder is missing?
The skill warns you that no matching spec folder was found.
Details
Original description by the author
Validate current branch follows feature branch naming conventions
repo: unoplatform/uno
Popularity
- GitHub stars
- 10k
- Ranking position
- #12003
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
speckit-analyze
10kHelps your agent check that a feature spec, plan and task list agree with each other and point out gaps, without changing any files.
speckit-checklist
10kLets your agent create a custom checklist that tests whether the written requirements for a feature are clear, complete and consistent before building starts.
speckit-clarify
10kHelps your agent find unclear parts of a feature spec, ask up to five focused questions, and write the answers back into the spec.
speckit-constitution
10kHelps your agent write or update a project constitution, a short set of guiding principles, and keep related planning templates in line with it.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.