Compétences using-git-worktrees
🌳

using-git-worktrees

Sûr 🌐 Accès réseau📁 Accès au système de fichiers⚙️ Commandes externes

إعداد worktrees git المعزولة للتطوير المتوازي

Également disponible depuis: Doyajin174,Cygnusfear,CodingCossack,Cycleaddict,obra,ZhanlinCui,davila7,sickn33

إدارة多个功能 في مستودع واحد أمر صعب عندما ي切换工作区 يزعج تدفقك. هذه المهارة تنشئ worktrees git معزولة تتيح لك العمل على多个 الفروع في وقت واحد مع فحوصات أمان تلقائية والتحقق من الإعداد.

Prend en charge: Claude Codex Code(CC)
📊 69 Adéquat
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

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ûr
v5 • 1/17/2026

This 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.

2
Fichiers analysés
401
Lignes analysées
3
résultats
5
Total des audits

Score de qualité

38
Architecture
100
Maintenabilité
87
Contenu
19
Communauté
100
Sécurité
91
Conformité aux spécifications

Ce que vous pouvez construire

تطوير الميزات المتوازي

العمل على多个 الميزات في وقت واحد دون تبديل الفروع أو إخفاء التغييرات

مراجعة الكود المعزولة

استخراج فروع طلبات السحب في worktrees منفصلة دون اضطراب التطوير الرئيسي

بيئات اختبار نظيفة

إنشاء بيئات اختبار pristine لكل فرع مع تشغيل اختبارات خط الأساس الموثقة

Essayez ces prompts

إعداد worktree أساسي
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 بشكل ثابت بدلاً من اتباع اتفاقيات المشروع

Foire aux questions

ما إصدار git المطلوب لـ worktrees؟
Git الإصدار 2.5 أو أحدث مطلوب. تحقق باستخدام git --version. معظم تثبيتات git الحديثة تدعم worktrees.
هل يمكنني استخدام worktrees خارج دليل المشروع؟
نعم. يمكنك استخدام ~/.config/superpowers/worktrees/<project-name>/ لـ worktrees العامة التي تعيش خارج مستودع المشروع تماماً.
كيف يتكامل هذا مع المهارات الأخرى؟
مهارة using-git-worktrees تتكامل مع العصف الذهني وتنفيذ الخطط والتطوير المدعوم بالوكيل لتنفيذ العمل المعزول.
هل بياناتي آمنة عند استخدام worktrees؟
ال worktrees آمنة. هذه المهارة تتحقق من .gitignore قبل إنشاء worktrees المحلية للمشروع لمنع commit عرضي لمحتويات worktree.
ماذا يحدث إذا فشلت الاختبارات أثناء التحقق من خط الأساس؟
أبلغ المستخدم عن الإخفاقات واسأله عما إذا كان يريد المتابعة مع التحقيق أو المتابعة على أي حال. لا تسكت أبداً مع الاختبارات الفاشلة.
كيف يختلف هذا عن استنساخ المستودع؟
ال worktrees تشترك في نفس دليل .git، لذلك تستخدم مساحة قرص بسيطة. التغييرات تزامن instantly بين worktrees دون دفع أو سحب.

Détails du développeur

Structure de fichiers

📄 SKILL.md

📄 SKILL.zip