using-git-worktrees
إعداد worktrees git المعزولة للتطوير المتوازي
Également disponible depuis: Doyajin174,Cygnusfear,CodingCossack,Cycleaddict,obra,ZhanlinCui,davila7,sickn33
إدارة多个功能 في مستودع واحد أمر صعب عندما ي切换工作区 يزعج تدفقك. هذه المهارة تنشئ worktrees 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 using-git-worktrees to create a worktree for feature/user-profiles
Résultat attendu:
- ✓ Found existing .worktrees directory
- ✓ Verified .worktrees/ in .gitignore
- ✓ Created worktree at .worktrees/feature/user-profiles
- ✓ Branch: feature/user-profiles (new branch)
- ✓ Detected Node.js project, ran npm install
- ✓ Ran npm test: 47 passing, 0 failures
- Worktree ready at /project/.worktrees/feature/user-profiles
- Tests passing (47 tests, 0 failures)
- Ready to implement user-profiles feature
Utilisation de "using-git-worktrees". Create a worktree for reviewing a pull request
Résultat attendu:
- ✓ Using global worktrees location: ~/.config/superpowers/worktrees/myproject/pr-123
- ✓ Created worktree at ~/.config/superpowers/worktrees/myproject/pr-123
- ✓ Branch: pr-123 (from remote)
- ✓ Detected Python project, ran poetry install
- ✓ Ran pytest: 112 passing, 0 failures
- Worktree ready at /home/user/.config/superpowers/worktrees/myproject/pr-123
- Tests passing (112 tests, 0 failures)
- Ready to review pull request #123
Audit de sécurité
SûrThis skill is documentation-only with zero executable code. All static findings are false positives: the hardcoded URL is legitimate metadata, hidden file references describe configuration paths, weak crypto patterns are false matches on directory names, and shell commands shown are example documentation for git operations. The skill contains no network operations, no credential access, and no actual command execution.
Facteurs de risque
🌐 Accès réseau (1)
📁 Accès au système de fichiers (18)
⚙️ Commandes externes (25)
Score de qualité
Ce que vous pouvez construire
تطوير الميزات المتوازي
العمل على多个 الميزات في وقت واحد دون تبديل الفروع أو إخفاء التغييرات
مراجعة الكود المعزولة
استخراج فروع طلبات السحب في worktrees منفصلة دون اضطراب التطوير الرئيسي
بيئات اختبار نظيفة
إنشاء بيئات اختبار pristine لكل فرع مع تشغيل اختبارات خط الأساس الموثقة
Essayez ces prompts
Use the using-git-worktrees skill to create an isolated worktree for the feature branch called feature/authentication
Set up a worktree at .worktrees/implementation with branch feature/refactor-api and run the full project setup
Create a worktree called worktrees/hotfix/critical-bug, run npm install, and verify tests pass before I start fixing the issue
The design is approved. Use using-git-worktrees to create an isolated workspace for implementing the new feature we designed in brainstorming
Bonnes pratiques
- تحقق دائماً من .gitignore قبل إنشاء worktrees المحلية للمشروع لمنع commit العرضي
- شغل اختبارات خط الأساس فوراً لإنشاء حالة معروفة وجيدة قبل إجراء التغييرات
- اتبع أولوية الدليل: الدلائل الموجودة > تفضيلات CLAUDE.md > تفضيلات المستخدم
Éviter
- تجاوز التحقق من .gitignore - يؤدي إلى تعقب محتويات worktree عن طريق الخطأ
- المتابعة مع فشل اختبارات خط الأساس - يجعل من المستحيل تميز الأخطاء الجديدة من المشاكل الموجودة مسبقاً
- تحديد مواقع worktree بشكل ثابت بدلاً من اتباع اتفاقيات المشروع