speckit-git-validate
Skill718 starsChanged 34 days agoApache-2.0View on GitHub
Validate current branch follows feature branch naming conventions
35 other projects use a version of this, 14 of them edited.
Adopted by
Most recently taken up by
- tohure/Diccionario-Muchikword for word, first seen Nov 8, 2026
- zalando-incubator/agentic-identity-brokeredited, first seen Nov 8, 2026
- vizier-lab/vizierword for word, first seen Nov 1, 2026
- superyaya44/claude-skillsedited, first seen Oct 20, 2026
- alfredoperez/speckit-companionedited, first seen Oct 19, 2026
- 2830500285/omni-agentword for word, first seen Oct 13, 2026
Used with
Projects with it also use speckit-converge and commit.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Microsoft AzureSkillspeckit-converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
Also in 5 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
Other versions35 projects use a version of this.
Word for word · 21
- unoplatform/uno★ 10k100% same
- sbaiahmed1/react-native-blur★ 350100% same
- elsa-workflows/elsa-studio★ 302100% same
- PieroSierra/SecondBrain★ 152100% same
- HamedMP/matrix-os★ 86100% same
- vizier-lab/vizier★ 18100% same
- ashbrener/spec-kit-linear-sync★ 4100% same
- ldilov/harness-forge★ 4100% same
- CodyAMaughan/agent-first-engineering★ 3100% same
- gyasis/chiron★ 2100% same
11 more not listed
Edited · 14
- pmndrs/react-spring★ 29k100% same
- elsa-workflows/elsa-core★ 7.9k95% same
- cloudposse/atmos★ 1.4k100% same
- opsmill/infrahub★ 54896% same
- haru/redmine_ai_helper★ 10793% same
- alfredoperez/speckit-companion★ 10475% same
- zalando-incubator/agentic-identity-broker★ 6893% same
- PIsberg/vibetags★ 25100% same
- lukaskellerstein/dex★ 496% same
- yoonation/ai-grounded★ 4100% same
4 more not listed
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
The file
We split this skill into the rules it gives an agent
11 rules. 6 are common, 0 are distinctive, and 5 are very specific to this project.
6
Common
Most of the 14 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Check if Git is available by running git rev-parse --is-inside-work-tree 2>/dev/null
- Common: line 17
If Git is not available, output a warning and skip validation:
- Common: line 37
If on a feature branch (matches either pattern):
- Very specific: line 39
Check if the corresponding spec directory exists under specs/:
- Very specific: line 42
If spec directory exists: ✓ Spec directory found: <path>
- Very specific: line 43
If spec directory missing: ⚠ No spec directory found for prefix <prefix>
- Common: line 45
If NOT on a feature branch:
- Common: line 51
If Git is not installed or the directory is not a Git repository:
- Very specific: line 52
Check the SPECIFY_FEATURE environment variable as a fallback
- Common: line 53
If set, validate that value against the naming patterns
- Common: line 54
If not set, skip validation with a warning
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 HEADThe 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

