मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)10k · #12003

speckit-git-validate

यह क्या करती है

यह स्किल जाँचती है कि आपकी मौजूदा Git branch का नाम प्रोजेक्ट के क्रमांक पैटर्न से मेल खाता है या नहीं। यह feature branches के साथ Spec Kit तरीका इस्तेमाल करने वाले डेवलपरों के लिए है।

कब इस्तेमाल करें

  • ✓जब आप बदलाव करने से पहले पक्का करना चाहते हों कि आप सही फ़ीचर branch पर हैं।
  • ✓जब branch का नाम प्रोजेक्ट के फ़ीचर नामकरण पैटर्न जैसा न लगे।
  • ✓जब आप जाँचना चाहते हों कि आपकी branch के लिए मेल खाता spec फ़ोल्डर मौजूद है।

Skill का लिंक

https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-validate/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-validate/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“जाँचिए कि मेरी मौजूदा Git branch हमारे फ़ीचर नामकरण नियमों का पालन करती है और उसका spec फ़ोल्डर मौजूद है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल मौजूदा branch का नाम पढ़ती है और उसे दो स्वीकृत पैटर्न से मिलाती है। फिर वह उसी क्रमांक या समय-चिह्न वाला spec फ़ोल्डर खोजती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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:

  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):

  • 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 the YYYYMMDD-HHMMSS portion
  • 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_FEATURE environment variable as a fallback
  • If set, validate that value against the naming patterns
  • If not set, skip validation with a warning
अक्सर पूछे जाने वाले सवाल

कौन से नामकरण पैटर्न स्वीकार्य हैं?

branch का नाम तीन या अधिक अंकों के क्रमांक से, या तारीख और समय-चिह्न से शुरू हो सकता है।

अगर मैं फ़ीचर branch पर न होऊँ तो?

स्किल यह बताती है और उदाहरण नाम दिखाती है जिन्हें इस्तेमाल किया जा सकता है।

अगर spec फ़ोल्डर न मिले तो?

स्किल चेतावनी देती है कि कोई मेल खाता spec फ़ोल्डर नहीं मिला।

जानकारी

लेखक का मूल विवरण

Validate current branch follows feature branch naming conventions

repo: unoplatform/uno

लोकप्रियता

GitHub स्टार
10k
रैंकिंग में स्थान
#12003
लाइसेंस
Apache-2.0
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

speckit-analyze

10k

आपके एजेंट को बिना कोई फ़ाइल बदले जाँचने में मदद करती है कि फ़ीचर स्पेक, योजना और कार्य सूची एक-दूसरे से मेल खाते हैं और कमियाँ बताती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

speckit-checklist

10k

आपके एजेंट को एक कस्टम checklist बनाने में मदद करती है, जो जाँचती है कि निर्माण शुरू होने से पहले फ़ीचर की लिखित आवश्यकताएँ साफ़, पूरी और एक जैसी हैं।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

speckit-clarify

10k

आपके एजेंट को फ़ीचर स्पेक के अस्पष्ट हिस्से खोजने, पाँच तक केंद्रित सवाल पूछने और जवाब स्पेक में वापस लिखने में मदद करती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

speckit-constitution

10k

आपके एजेंट को प्रोजेक्ट का constitution, यानी मार्गदर्शक सिद्धांतों का छोटा सेट, लिखने या अपडेट करने और संबंधित योजना टेम्पलेट उसके अनुरूप रखने में मदद करती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

मिलती-जुलती skills