Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计异常

worktree-fleet工作树舰队

Agent Skill

worktree-fleet 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

412

周安装

17

GitHub Stars

公开资料未说明

下载量

135
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/quickcall-dev/skills --skill worktree-fleet

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 信息。

  • 适合围绕代码变更或协作事项进行整理。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围及是否会触发命令执行或文件读写。
  • worktree-fleet 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Worktree Fleet

A skill for running N independent agents in parallel, each isolated in its own git worktree on its own branch. Independence is validated before anything spawns — if two workers declare overlapping target_files, the skill refuses with a clear conflict message.

Decision tree — which fleet?

You want to run multiple agents in parallel. Which fleet?

1. Are the tasks independent (no shared files, no shared state)?
   YES → worktree-fleet  ← YOU ARE HERE
   NO  → continue

2. Does the work need iteration with a reviewer making accept/iterate decisions?
   YES → iterative-fleet
   NO  → continue

3. Is the work a one-shot DAG (each agent runs to completion, dependencies via depends_on)?
   YES → dag-fleet
   NO  → continue

4. None of the above?
   → You're the orchestrator. Open multiple Claude Code sessions.

When to use THIS skill

  • Tasks touch non-overlapping files (different modules, different docs, etc.)
  • You want merge-safe isolation — each worker on its own branch, no mid-flight conflicts possible
  • The merge decision is yours — after workers complete, you choose merge order / strategy
  • You want independent branches in git that you can inspect, cherry-pick, or discard

When NOT to use this skill

  • Workers need to coordinate or read each other's output → dag-fleet with depends_on
  • Tasks overlap files (even partially) → fix the task split first, then come back
  • You want headless workers + reviewer-in-loop → iterative-fleet
  • Work fits in the current conversation → use Claude Code's built-in Agent tool directly

fleet.json schema

{
  "fleet_name": "refactor-utils",
  "type": "worktree",
  "config": {
    "max_concurrent": 4,
    "model": "sonnet",
    "fallback_model": "haiku"
  },
  "workers": [
    {
      "id": "rename-foo",
      "task": "Rename foo() to baz() in src/utils/foo.ts and all callers",
      "target_files": ["src/utils/foo.ts", "src/**/*.test.ts"],
      "branch": "rename-foo-to-baz",
      "type": "code-run",
      "max_turns": 30,
      "max_budget_usd": 2.0
    }
  ]
}

New fields vs dag-fleet:

  • target_files (required per worker) — list of file globs this worker will touch. Overlap across workers = launch refuses with exit 2.
  • branch (required per worker) — git branch name for this worker's worktree. Must not already exist.

Worker type override (Claude only): Worktree workers always need Bash for git commit. If you set type to read-only, write, or reviewer, launch.sh will automatically override to code-run with a warning. The worktree itself provides isolation — Bash restrictions are unnecessary here. This override does not apply to codex workers (codex uses sandbox modes).

Provider support: Set "provider": "codex" at config or per-worker level to use OpenAI Codex CLI instead of Claude. Codex workers use --sandbox workspace-write (needed for git commit). See dag-fleet SKILL.md for full codex provider documentation (model aliases, reasoning_effort, limitations).

Default max_turns is 100 (not 50 like dag-fleet). Worktree workers typically edit, test, and commit — they need headroom.

Available scripts

ScriptWhen to callArgs
launch.shValidate independence, create worktrees, spawn workers in tmux<fleet-root> [--dry-run]
status.shPer-worktree progress, cost, completion state<fleet-name-or-root> [--json]
merge.shPrint merge plan (files changed, line counts) — no auto-merge<fleet-name-or-root>
cleanup.shRemove git worktrees, requires --force<fleet-name-or-root> --force

Launch procedure

  1. Set FLEET_ROOT to an absolute path.
  2. Create $FLEET_ROOT/fleet.json with the schema above.
  3. For each worker, create $FLEET_ROOT/workers/{id}/prompt.md. Include: Save ALL output to $FLEET_ROOT/workers/{id}/output/ — use absolute paths.
  4. Run: bash ${CLAUDE_SKILL_DIR}/scripts/launch.sh $FLEET_ROOT
  5. --dry-run validates independence without creating worktrees or spawning workers.
  6. ALWAYS tell the user the exact status command so they can monitor manually: bash ${CLAUDE_SKILL_DIR}/scripts/status.sh <fleet-name-or-root> This is mandatory after every launch. The user must be able to check status without asking you.

IMPORTANT: Worker prompts MUST instruct the worker to commit its changes before exiting:

When you are done, commit your changes on the current branch with a descriptive message.

Without this, changes stay as unstaged modifications and cannot be merged via git merge.

After workers complete

  1. Run merge.sh to see what each branch changed.
  2. Decide your merge strategy (in-order, cherry-pick, etc.).
  3. Merge manually — the skill does NOT auto-merge.
  4. Run cleanup.sh --force to remove worktrees.

Rationalizations to reject

Agent saysRebuttal
"The tasks overlap slightly but I can manage"Overlapping target_files = reject. No exceptions. Fix the task split first. If you think you can manage it, you're wrong — merge conflicts in parallel worktrees are unrecoverable.
"I'll skip --dry-run since I wrote the fleet.json carefully"Then dry-run will be fast. Run it. The independence validator catches things you didn't think of (glob overlap, bidirectional fnmatch).
"Two workers both need the config file, but in different sections"Same file = overlap. The validator doesn't know about "sections." Split the config change into a separate sequential step, or have one worker own it.
"I'll auto-merge since the branches are clean"Never auto-merge. Run merge.sh, read the output, decide strategy. The whole point of worktree-fleet is that the operator owns the merge decision.
"I can skip cleanup — the worktrees aren't hurting anything"Worktrees hold branch locks. Stale worktrees block future branch creation and waste disk. Run cleanup.sh --force when done.

STRICT RULES

  1. Never skip --dry-run validation for new fleet configurations.
  2. Never merge without reviewing merge.sh output first.
  3. cleanup.sh requires --force — no accidental removals.
  4. Worktrees persist until you explicitly clean them up. They will not auto-remove.

$ARGUMENTS

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

35.08%
按下载量换算47

Claude

28.73%
按下载量换算39

Cursor

21.3%
按下载量换算29

Gemini CLI

9.44%
按下载量换算13

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/quickcall-dev/skills --skill worktree-fleet 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills