Token导航 LogoToken导航TokenDH.com
待分类只读unknown未标认证来源可访问许可证需确认审计未展示

create-worktree-skill创建工作树技能

Agent Skill

create-worktree-skill 用于补充待分类相关能力,适合在 Local Agent 中需要让 Agent 承接待分类相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

421

周安装

8

下载量

65
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-worktree-skill(创建工作树技能)
来源仓库:https://smithery.ai
仓库路径:create-worktree-skill
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

create-worktree-skill 用于补充待分类相关能力,支持任务组织与分类管理。

  • 适合在 Local Agent 中承接待分类或工作流拆分类任务。
  • 可结合来源仓库和原始 README 继续核验具体用法和限制条件。
  • 安装前应确认权限范围和维护状态,避免触发不必要的文件操作。
  • 建议在使用前评估其对宿主环境的潜在影响。

SKILL.md

Worktree Creator Skill

This skill enables creating fully configured git worktrees for parallel development with isolated ports, databases, and configuration.

When to use this skill

Use this skill when:

  • User asks to create a git worktree
  • User wants to set up parallel development environments
  • User needs to run multiple instances simultaneously
  • User mentions working on multiple branches at once
  • User wants isolated testing environments

Instructions

Step 1: Understand the request

Extract from the user's request:

  • Branch name (required): The git branch to create the worktree from

- If the branch name is not provided, stop and ask the user to provide a branch name

  • Port offset (optional): Custom port offset (if not provided, auto-calculated)

Step 2: Invoke the slash command

Use the SlashCommand tool to run:

/git-simple:create_worktree_prompt <branch-name> [port-offset]

Examples:

  • /git-simple:create_worktree_prompt feature-auth - Creates worktree with auto-calculated ports
  • /git-simple:create_worktree_prompt fix-bug 2 - Creates worktree with port offset 2 (ports 4020, 5193)

Step 3: Share results

The /git-simple:create_worktree_prompt command will:

  • Create the git worktree in trees/<branch-name>
  • Configure isolated ports (auto-incremented to avoid conflicts)
  • Set up environment files with proper configuration
  • Install dependencies for server and client
  • Start both services automatically
  • Provide access URLs and management instructions

Share the command output with the user, highlighting:

  • Access URLs for the dashboard
  • Ports being used
  • How to stop/restart the worktree
  • How to remove it later

Examples

Example 1: Simple worktree creation

User: "Create a worktree for the feature-dashboard branch"

Your response: Use SlashCommand to run /git-simple:create_worktree_prompt feature-dashboard

Example 2: Worktree with specific port offset

User: "Set up a parallel environment on branch hotfix-security with port offset 5"

Your response: Use SlashCommand to run /git-simple:create_worktree_prompt hotfix-security 5

Example 3: Multiple worktrees

User: "I need worktrees for branches: feature-a, feature-b, and feature-c"

Your response:

  1. Use SlashCommand to run /git-simple:create_worktree_prompt feature-a
  2. Use SlashCommand to run /git-simple:create_worktree_prompt feature-b
  3. Use SlashCommand to run /git-simple:create_worktree_prompt feature-c

Each will automatically get unique ports (4010/5183, 4020/5193, 4030/5203).

Related capabilities

  • The created worktree will run automatically with isolated ports, database, and configuration
  • Each worktree is completely independent and can run simultaneously with others

Troubleshooting

If the command fails, common issues:

  • Branch name already exists as a worktree
  • Ports are in use (command kills them automatically)
  • Missing dependencies (ensure bun is installed)
  • Git worktree errors (handle uncommitted changes first)

The slash command provides detailed error messages and suggestions.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

81.63%
按下载量换算53

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills