using-git-worktrees
إعداد أشجار عمل git المعزولة
Également disponible depuis: Doyajin174,DYAI2025,Cygnusfear,CodingCossack,obra,ZhanlinCui,davila7,sickn33
يتطلب العمل على ميزات متعددة في وقت واحد التبديل المستمر بين الفروع، مما يعطل السياق ويبطئ التقدم. تخلق هذه المهارة أشجار عمل git المعزولة التي تتيح لك العمل على فروع منفصلة في مجلدات متوازية دون تبديل، مع التحقق تلقائيًا من أمان gitignore وتشغيل خطوط الاختبار الأساسية النظيفة.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "using-git-worktrees". Create an isolated git worktree for the auth feature
Résultat attendu:
- Checking for existing worktree directories...
- Found .worktrees/ - verifying it's gitignored...
- ✓ .worktrees/ is properly ignored
- Creating worktree: git worktree add .worktrees/auth -b feature/auth
- Running project setup: npm install
- Running test baseline: npm test
- ✓ 47 tests passing
- Worktree ready at /Users/developer/myproject/.worktrees/auth
- Ready to implement auth feature
Audit de sécurité
SûrThis is a pure documentation skill containing only markdown guidance for setting up git worktrees. The static analyzer flagged 55 findings, but ALL are false positives caused by shell command examples embedded in documentation. No executable code, no file system writes, no network access, no environment variable reads. The document describes safe git operations that are performed by the AI agent following the documented workflow.
Facteurs de risque
⚙️ Commandes externes (27)
🌐 Accès réseau (1)
📁 Accès au système de fichiers (19)
Score de qualité
Ce que vous pouvez construire
تطوير الميزات المتوازية
العمل على ميزات متعددة في وقت واحد دون التبديل المستمر بين الفروع أو تخزين التغييرات مؤقتًا
اختبار تغييرات طلب السحب
إنشاء مساحة عمل معزولة لمراجعة تغييرات طلب السحب مع خط اختبار أساسي نظيف قبل الدمج
فرض معايير مساحة العمل
توحيد مواقع أشجار العمل وفحوصات السلامة عبر مشاريع الفريق عبر اتفاقيات CLAUDE.md
Essayez ces prompts
Create an isolated git worktree for a new feature branch called [feature-name] in the appropriate worktree directory.
Set up a worktree for [feature-name] using the worktree directory specified in CLAUDE.md.
Create a worktree in the global location (~/.config/superpowers/worktrees/[project]/[branch]) for [feature-name].
Create a worktree for [feature-name], verify tests pass, then clean up the worktree when finished.
Bonnes pratiques
- تحقق دائمًا من أن مجلد شجرة العمل مهمل في gitignore قبل إنشاء أشجار عمل محلية للمشروع لمنع الارتكاب العرضي
- تحقق من CLAUDE.md لمعرفة اتفاقيات شجرة العمل الخاصة بالمشروع قبل سؤال المستخدم عن التفضيل
- تشغيل خطوط الاختبار الأساسية فورًا بعد الإعداد لإنشاء حالة نظيفة قبل إجراء التغييرات
Éviter
- تجاوز التحقق من gitignore - قد يتم ارتكاب ملفات شجرة العمل في المستودع عن طريق الخطأ
- المتابعة مع الاختبارات الفاشلة دون سؤال - لا يمكن تمييز الأخطاء الجديدة عن المشاكل الموجودة مسبقًا
- تحديد مواقع أشجار العمل بشكل ثابت - قد يكون للمشاريع المختلفة اتفاقيات مختلفة