using-git-worktrees
إنشاء أشجار عمل git معزولة للتطوير المتوازي
Également disponible depuis: Doyajin174,DYAI2025,CodingCossack,Cycleaddict,obra,ZhanlinCui,davila7,sickn33
إدارة عدة فروع داخل مستودع git واحد تُربك مساحة عملك. هذه المهارة تنشئ أشجار عمل معزولة مع اختيار ذكي للدليل وتحقيق تلقائي للسلامة لإبقاء مساحة عملك الرئيسية نظيفة أثناء عملك على الميزات.
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". Use the using-git-worktrees skill to create a worktree for an authentication feature
Résultat attendu:
- Worktree ready at /Users/developer/myproject/.worktrees/auth
- Tests passing (47 tests, 0 failures)
- Ready to implement auth feature
Utilisation de "using-git-worktrees". Create a worktree for a bugfix branch called hotfix-login
Résultat attendu:
- Found existing .worktrees directory
- Verified .worktrees/ in .gitignore
- Created worktree at /project/.worktrees/hotfix-login
- Ran poetry install successfully
- All tests passing (23 tests, 0 failures)
- Ready to implement hotfix-login
Utilisation de "using-git-worktrees". Set up a worktree for my Go project at the global location
Résultat attendu:
- Using global worktree location: ~/.config/superpowers/worktrees/goproject/feature-new
- Created worktree with new branch
- Ran go mod download
- Build completed successfully
- Ready to implement feature-new
Audit de sécurité
Risque faiblePrompt-based skill providing instructions for git worktree management. Contains shell script examples and filesystem access patterns appropriate for its stated purpose. Safety verification steps built into workflow. No network calls, no credential access, no obfuscation. All 51 static findings are false positives triggered by legitimate documentation patterns.
Problèmes à risque faible (2)
Facteurs de risque
⚡ Contient des scripts (1)
📁 Accès au système de fichiers (1)
⚙️ Commandes externes (1)
Score de qualité
Ce que vous pouvez construire
تطوير الميزات المعزول
اعمل على ميزات جديدة دون إرباك مساحة عملك الرئيسية أو مقاطعة تدفق التطوير الحالي
فروع PR نظيفة
أنشئ فروعًا نقية لطلبات السحب دون التأثير على بيئة التطوير النشطة لديك
سير عمل worktree متوازٍ
بدّل بين المهام فورًا عبر الحفاظ على أشجار عمل منفصلة لميزات أو إصلاحات مختلفة
Essayez ces prompts
Use the using-git-worktrees skill to create an isolated worktree for a new feature branch called feature-name
Use the using-git-worktrees skill to set up a worktree. Check for existing directories, verify gitignore, create at .worktrees-feature-name, run npm install and tests
Use the using-git-worktrees skill to create a worktree at ~/.config/superpowers/worktrees-projectname-branchname. Skip gitignore check since this is outside the project
Use the using-git-worktrees skill to create a worktree. Follow all safety steps: check CLAUDE.md for preferences, verify or add gitignore entry, run cargo test for Rust project, report the final path and test results
Bonnes pratiques
- تحقق دائمًا من أن .gitignore يحتوي على دليل worktree قبل إنشاء worktrees محلية للمشروع
- اتبع أولوية الدليل: الأدلة الموجودة > تفضيلات CLAUDE.md > اسأل المستخدم
- شغّل اختبارات خط الأساس لضمان أن worktree يبدأ نظيفًا قبل تنفيذ ميزات جديدة
Éviter
- تخطي التحقق من .gitignore يسمح لمحتويات worktree بالدخول إلى التحكم بالإصدارات بالخطأ
- افتراض موقع الدليل دون التحقق يخلق عدم اتساق عبر المشاريع
- المضي قدمًا مع اختبارات فاشلة يجعل من المستحيل تمييز الأخطاء الجديدة عن المشكلات السابقة