speckit-git-feature
ما الذي تفعله
تنشئ هذه المهارة فرع Git جديدًا لميزة، ويُسمّى برقم أو طابع زمني. وهي موجهة للمطورين الذين يستخدمون Git وطريقة Spec Kit.
متى تستخدمها
- ✓عندما تبدأ مواصفة ميزة جديدة وتريد فرع Git خاصًا بها.
- ✓عندما تريد أن تتبع أسماء الفروع نمطًا مرقّمًا أو مؤرخًا.
- ✓عندما تحتاج إلى أن يكون اسم الفرع بالضبط قيمة تختارها.
رابط المهارة
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-feature/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ فرع Git جديدًا لمواصفة الميزة لدي، مرقّمًا بالترتيب مثل بقية الفروع في هذا المشروع.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تتحقق المهارة من طريقة ترقيم الفروع، ثم تنشئ الفرع وتنتقل إليه. وهي تتعامل مع الفرع فقط، لا مع ملفات المواصفات.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Create Feature Branch
Create and switch to a new git feature branch for the given specification. This command handles branch creation only — the spec directory and files are created by the core /speckit.specify workflow.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Environment Variable Override
If the user explicitly provided GIT_BRANCH_NAME (e.g., via environment variable, argument, or in their request), pass it through to the script by setting the GIT_BRANCH_NAME environment variable before invoking the script. When GIT_BRANCH_NAME is set:
- The script uses the exact value as the branch name, bypassing all prefix/suffix generation
--short-name,--number, and--timestampflags are ignoredFEATURE_NUMis extracted from the name if it starts with a numeric prefix, otherwise set to the full branch name
Prerequisites
- Verify Git is available by running
git rev-parse --is-inside-work-tree 2>/dev/null - If Git is not available, warn the user and skip branch creation
Branch Numbering Mode
Determine the branch numbering strategy by checking configuration in this order:
- Check
.specify/extensions/git/git-config.ymlforbranch_numberingvalue - Check
.specify/init-options.jsonforbranch_numberingvalue (backward compatibility) - Default to
sequentialif neither exists
Execution
Generate a concise short name (2-4 words) for the branch:
- Analyze the feature description and extract the most meaningful keywords
- Use action-noun format when possible (e.g., "add-user-auth", "fix-payment-bug")
- Preserve technical terms and acronyms (OAuth2, API, JWT, etc.)
Run the appropriate script based on your platform:
- Bash:
.specify/extensions/git/scripts/bash/create-new-feature.sh --json --short-name "<short-name>" "<feature description>" - Bash (timestamp):
.specify/extensions/git/scripts/bash/create-new-feature.sh --json --timestamp --short-name "<short-name>" "<feature description>" - PowerShell:
.specify/extensions/git/scripts/powershell/create-new-feature.ps1 -Json -ShortName "<short-name>" "<feature description>" - PowerShell (timestamp):
.specify/extensions/git/scripts/powershell/create-new-feature.ps1 -Json -Timestamp -ShortName "<short-name>" "<feature description>"
IMPORTANT:
- Do NOT pass
--number— the script determines the correct next number automatically - Always include the JSON flag (
--jsonfor Bash,-Jsonfor PowerShell) so the output can be parsed reliably - You must only ever run this script once per feature
- The JSON output will contain
BRANCH_NAMEandFEATURE_NUM
Graceful Degradation
If Git is not installed or the current directory is not a Git repository:
- Branch creation is skipped with a warning:
[specify] Warning: Git repository not detected; skipped branch creation - The script still outputs
BRANCH_NAMEandFEATURE_NUMso the caller can reference them
Output
The script outputs JSON with:
BRANCH_NAME: The branch name (e.g.,003-user-author20260319-143022-user-auth)FEATURE_NUM: The numeric or timestamp prefix used
الأسئلة الشائعة
هل تكتب ملف المواصفات؟
لا. تنشئ الفرع فقط، والمواصفات تُنشأ بخطوة منفصلة.
كيف تُرقَّم الفروع؟
يمكن أن تستخدم المهارة أرقامًا متسلسلة أو طابعًا زمنيًا، حسب إعدادات المشروع.
ماذا لو لم يكن Git مثبتًا؟
تحذّرك المهارة وتتخطى إنشاء الفرع.
التفاصيل
الوصف الأصلي من المؤلف
Create a feature branch with sequential or timestamp numbering
repo: unoplatform/uno
الشعبية
- نجوم GitHub
- 10k
- الترتيب
- #12000
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
speckit-analyze
10kيساعد وكيلك على التحقق من أن مواصفات الميزة وخطتها وقائمة مهامها متطابقة، وعلى الإشارة إلى الثغرات، دون تغيير أي ملف.
speckit-checklist
10kيتيح لوكيلك إنشاء قائمة تحقق مخصصة تختبر هل متطلبات الميزة المكتوبة واضحة ومكتملة ومتسقة قبل بدء البناء.
speckit-clarify
10kيساعد وكيلك على إيجاد الأجزاء الغامضة في مواصفات ميزة، وطرح حتى خمسة أسئلة مركزة، وكتابة الإجابات في المواصفات.
speckit-constitution
10kيساعد وكيلك على كتابة دستور المشروع أو تحديثه، وهو مجموعة قصيرة من المبادئ الموجهة، والإبقاء على قوالب التخطيط المرتبطة به متوافقة معه.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.