speckit-git-validate
Skill548 starsChanged 8 days agoApache-2.0View on GitHub
Validate current branch follows feature branch naming conventions
35 other projects use a version of this, 32 of them edited.
Adopted by
Most recently taken up by
- tohure/Diccionario-Muchikedited, first seen Nov 8, 2026
- zalando-incubator/agentic-identity-brokeredited, first seen Nov 8, 2026
- vizier-lab/vizieredited, first seen Nov 1, 2026
- superyaya44/claude-skillsword for word, first seen Oct 20, 2026
- alfredoperez/speckit-companionedited, first seen Oct 19, 2026
- automateyournetwork/netclawedited, first seen Oct 17, 2026
Other versions35 projects use a version of this.
Word for word · 3
- GreetEat/greeteat-paperclip★ 2100% same
- ricardolsmendes/credit-card-statement-extractor★ 0100% same
- superyaya44/claude-skills★ 0100% same
Edited · 32
- pmndrs/react-spring★ 29k99% same
- unoplatform/uno★ 10k99% same
- elsa-workflows/elsa-core★ 7.9k94% same
- cloudposse/atmos★ 1.4k99% same
- automateyournetwork/netclaw★ 71899% same
- sbaiahmed1/react-native-blur★ 35099% same
- elsa-workflows/elsa-studio★ 30299% same
- PieroSierra/SecondBrain★ 15299% same
- haru/redmine_ai_helper★ 10794% same
- alfredoperez/speckit-companion★ 10475% same
22 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 repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- backend/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- analyzing-ci-flakinessSkill
- audit-docsSkill
- commitSkill
- creating-changelog-entriesSkill
- creating-issuesSkill
- creating-prdSkill
- grilling-ideasSkill
- harvesting-reviewSkill
- migrate-feature-pageSkill
- monitoring-pull-requestsSkill
- neo4j-cypher-guideSkill
- opsmill-dev-analyzing-bugsSkill
- opsmill-dev-fixing-bugsSkill
- opsmill-dev-test-driving-bugsSkill
- pre-ciSkill
- prSkill
- rebaseSkill
- reviewing-pull-requestsSkill
- speckit-agent-context-updateSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-critique-runSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-implementSkill
- speckit-opsmill-autoSkill
- speckit-opsmill-extractSkill
- speckit-opsmill-implementSkill
- speckit-opsmill-prepSkill
- speckit-opsmill-retrospectSkill
- speckit-opsmill-summarySkill
- speckit-planSkill
- speckit-review-codeSkill
- speckit-review-commentsSkill
- speckit-review-errorsSkill
- speckit-review-runSkill
- speckit-review-simplifySkill
- speckit-review-testsSkill
- speckit-review-typesSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- upgrading-infrastructure-dependenciesSkill
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 32 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 18
Check if Git is available by running git rev-parse --is-inside-work-tree 2>/dev/null
- Common: line 19
If Git is not available, output a warning and skip validation:
- Common: line 39
If on a feature branch (matches either pattern):
- Very specific: line 41
Check if the corresponding spec directory exists under specs/:
- Very specific: line 44
If spec directory exists: ✓ Spec directory found: <path>
- Very specific: line 45
If spec directory missing: ⚠ No spec directory found for prefix <prefix>
- Common: line 47
If NOT on a feature branch:
- Common: line 53
If Git is not installed or the directory is not a Git repository:
- Very specific: line 54
Check the SPECIFY_FEATURE environment variable as a fallback
- Common: line 55
If set, validate that value against the naming patterns
- Common: line 56
If not set, skip validation with a warning
“Common” is measured: kept by at least 6 in 10 of the 32 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.

