worktree — worktree git worktree, AgentsMesh, community, worktree git, ide skills, développement parallèle, git worktree add, gestion de versions, ligne de commande, branches git

v1.0.0

À propos de ce Skill

Parfait pour les Agents de Contrôle de Version nécessitant des capacités de développement parallèle et de gestion de référentiels. Un worktree est un environnement de développement indépendant créé avec Git pour travailler en parallèle

Fonctionnalités

Création d'un worktree indépendant avec Git
Développement parallèle sans polluer le répertoire principal
Utilisation de la ligne de commande pour créer et gérer les worktrees
Intégration avec Git pour une gestion de versions efficace
Possibilité de créer des worktrees pour différentes branches et projets

# Core Topics

AgentsMesh AgentsMesh
[297]
[24]
Updated: 3/17/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 8/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
8/11
Quality Score
43
Canonical Locale
zh
Detected Body Locale
zh

Parfait pour les Agents de Contrôle de Version nécessitant des capacités de développement parallèle et de gestion de référentiels. Un worktree est un environnement de développement indépendant créé avec Git pour travailler en parallèle

Pourquoi utiliser cette compétence

Permet aux agents de créer des worktrees séparés pour le développement parallèle, évitant la pollution du répertoire de travail principal, en utilisant Git Worktree et en supportant des fonctionnalités comme la création de branches et la gestion de répertoires.

Meilleur pour

Parfait pour les Agents de Contrôle de Version nécessitant des capacités de développement parallèle et de gestion de référentiels.

Cas d'utilisation exploitables for worktree

Créer des worktrees séparés pour le développement de fonctionnalités
Gérer plusieurs corrections simultanément sans conflits de référentiel
Automatiser la configuration du worktree pour les nouvelles branches

! Sécurité et Limitations

  • Nécessite l'installation et la configuration de Git
  • A besoin d'accès au référentiel et au système de fichiers
  • Limité aux systèmes de contrôle de version basés sur Git

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is worktree?

Parfait pour les Agents de Contrôle de Version nécessitant des capacités de développement parallèle et de gestion de référentiels. Un worktree est un environnement de développement indépendant créé avec Git pour travailler en parallèle

How do I install worktree?

Run the command: npx killer-skills add AgentsMesh/AgentsMesh/worktree. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for worktree?

Key use cases include: Créer des worktrees séparés pour le développement de fonctionnalités, Gérer plusieurs corrections simultanément sans conflits de référentiel, Automatiser la configuration du worktree pour les nouvelles branches.

Which IDEs are compatible with worktree?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for worktree?

Nécessite l'installation et la configuration de Git. A besoin d'accès au référentiel et au système de fichiers. Limité aux systèmes de contrôle de version basés sur Git.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add AgentsMesh/AgentsMesh/worktree. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use worktree immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

worktree

Install worktree, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Git Worktree 创建

创建独立的 worktree 用于并行开发,避免污染主工作目录。

使用流程

1. 确认参数

需要以下信息:

  • 分支名称: 新功能/修复的分支名(如 feature/add-login, fix/user-auth
  • 基础分支: 从哪个分支创建(默认 main
  • worktree 目录: 统一放在 ../AgentsMesh-Worktrees/<branch-name>

2. 创建 Worktree

bash
1# 1. 获取最新代码 2git fetch origin 3 4# 2. 创建 worktrees 目录(如不存在) 5mkdir -p ../AgentsMesh-Worktrees 6 7# 3. 创建 worktree 和新分支 8# 分支名中的 / 替换为 - 作为目录名 9git worktree add -b <branch-name> ../AgentsMesh-Worktrees/<dir-name> origin/<base-branch> 10 11# 4. 进入 worktree 目录 12cd ../AgentsMesh-Worktrees/<dir-name> 13 14# 5. 验证状态 15git status 16git log --oneline -3

3. 初始化开发环境 [必须执行]

⚠️ 重要:此步骤为必须执行,不可跳过或询问用户是否执行。 Worktree 创建后必须立即初始化开发环境,确保环境可用。

bash
1# 进入 deploy/dev 目录 2cd deploy/dev 3 4# 一键启动完整开发环境 5./dev.sh

脚本会自动:

  • 根据 worktree/分支名生成隔离的 .env 配置(端口自动偏移,避免冲突)
  • 启动 Docker 后端服务(PostgreSQL、Redis、MinIO、Backend、Nginx、Runner)
  • 执行数据库迁移和初始化测试账号 seed 数据
  • 启动本地前端(Next.js + Turbopack,性能更好)

4. 完成后输出

创建完成后,告知用户:

已创建 worktree:
- 路径: /Users/xxx/Works/AIO/AgentsMesh-Worktrees/feature-user-auth
- 分支: feature/user-auth (基于 origin/main)

开发环境:
- 前端: http://localhost:3000
- API:  http://localhost:<port>/api
- 测试账号: dev@agentsmesh.local / devpass123
- Adminer: http://localhost:<adminer-port>
- MinIO: http://localhost:<minio-port>

常用命令:
- 前端日志: tail -f deploy/dev/web.log
- 后端日志: cd deploy/dev && docker compose logs -f backend
- 停止环境: cd deploy/dev && ./dev.sh --clean

完成开发后:
- 提交代码: git add . && git commit -m "..."
- 推送分支: git push -u origin feature/user-auth
- 清理 worktree: cd <主仓库> && git worktree remove <worktree-path>

完整示例

用户说:"创建一个 worktree 开发用户认证功能"

必须完整执行以下所有步骤(不可中断或询问用户):

bash
1# 步骤 1: 创建 worktree 2git fetch origin 3mkdir -p ../AgentsMesh-Worktrees 4git worktree add -b feature/user-auth ../AgentsMesh-Worktrees/feature-user-auth origin/main 5cd ../AgentsMesh-Worktrees/feature-user-auth 6git status 7git log --oneline -3 8 9# 步骤 2: 初始化开发环境 [必须执行,不可跳过] 10cd deploy/dev 11./dev.sh

注意事项

  • 分支名遵循约定:feature/*, fix/*, refactor/*, docs/*
  • 所有 worktree 统一放在 ../AgentsMesh-Worktrees/ 目录下
  • 目录名使用分支名,将 / 替换为 -(如 feature/user-authfeature-user-auth
  • 如果分支已存在,使用 git worktree add <path> <existing-branch>
  • 每个 worktree 的开发环境端口自动隔离(包括前端端口),可并行运行多个
  • 清理前确保所有更改已提交或推送
  • 清理环境:./dev.sh --clean

Compétences associées

Looking for an alternative to worktree or another community skill for your workflow? Explore these related open-source skills.

Voir tout

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

widget-generator

Logo of f
f

Générez des plugins de widgets personnalisables pour le système de flux prompts.chat

flags

Logo of vercel
vercel

Le Cadre de Réaction

138.4k
0
Navigateur

pr-review

Logo of pytorch
pytorch

Tenseurs et réseaux neuronaux dynamiques en Python avec une forte accélération GPU

98.6k
0
Développeur