Compétences using-git-worktrees
🌳

using-git-worktrees

Risque faible ⚡ Contient des scripts📁 Accès au système de fichiers⚙️ Commandes externes

إنشاء أشجار عمل git معزولة للتطوير المتوازي

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

إدارة عدة فروع داخل مستودع git واحد تُربك مساحة عملك. هذه المهارة تنشئ أشجار عمل معزولة مع اختيار ذكي للدليل وتحقيق تلقائي للسلامة لإبقاء مساحة عملك الرئيسية نظيفة أثناء عملك على الميزات.

Prend en charge: Claude Codex Code(CC)
⚠️ 67 Médiocre
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 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 faible
v5 • 1/17/2026

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

2
Fichiers analysés
498
Lignes analysées
5
résultats
5
Total des audits
Problèmes à risque faible (2)
Shell script examples in documentation
The skill contains shell script examples using command substitution and conditional execution. These are documented examples for instructional purposes and align with the skill's stated purpose of managing git worktrees.
Filesystem access for worktree management
The skill accesses project directories and .gitignore files. This is appropriate behavior for a git worktree management tool.

Facteurs de risque

⚡ Contient des scripts (1)
📁 Accès au système de fichiers (1)
⚙️ Commandes externes (1)

Score de qualité

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

Ce que vous pouvez construire

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

اعمل على ميزات جديدة دون إرباك مساحة عملك الرئيسية أو مقاطعة تدفق التطوير الحالي

فروع PR نظيفة

أنشئ فروعًا نقية لطلبات السحب دون التأثير على بيئة التطوير النشطة لديك

سير عمل worktree متوازٍ

بدّل بين المهام فورًا عبر الحفاظ على أشجار عمل منفصلة لميزات أو إصلاحات مختلفة

Essayez ces prompts

إنشاء worktree أساسي
Use the using-git-worktrees skill to create an isolated worktree for a new feature branch called feature-name
worktree مع إعداد
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
موقع worktree عالمي
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 بالدخول إلى التحكم بالإصدارات بالخطأ
  • افتراض موقع الدليل دون التحقق يخلق عدم اتساق عبر المشاريع
  • المضي قدمًا مع اختبارات فاشلة يجعل من المستحيل تمييز الأخطاء الجديدة عن المشكلات السابقة

Foire aux questions

أي إصدارات git تدعم worktrees؟
تتطلب Git worktrees إصدار git 2.5 أو أعلى. معظم تثبيتات git الحديثة تدعم هذه الميزة.
ما الذي يحدد موقع دليل worktree؟
ترتيب الأولوية: أدلة .worktrees/ أو worktrees/ الموجودة، ثم تفضيلات CLAUDE.md، ثم إدخال المستخدم.
هل يمكن لـ worktrees مشاركة نفس دليل .git؟
نعم. تشترك worktrees في دليل .git الخاص بالمستودع الأم مع الحفاظ على أشجار عمل منفصلة.
هل بياناتي آمنة عند استخدام worktrees؟
تتحقق المهارة من .gitignore قبل إنشاء worktrees محلية للمشروع لمنع عمليات الإيداع العرضية.
لماذا فشل إنشاء worktree الخاص بي؟
الأسباب الشائعة: إصدار git أقل من 2.5، مستودع عارٍ، الفرع لديه worktree بالفعل، أو أذونات غير كافية.
كيف يقارن هذا بالتبديل بين الفروع؟
تُبقي worktrees عدة فروع مُفعلّة في الوقت نفسه دون تبديل، مع الحفاظ على التغييرات غير المُودعة.

Détails du développeur

Structure de fichiers

📄 SKILL.md