parallel

GitHub

多智能体流水线编排器,负责并行开发任务的规划与分发。通过读取项目上下文、配置任务目录及PRD,启动隔离的代码工作树智能体,适用于多独立特性并行开发场景。

.codex/skills/parallel/SKILL.md zhukunpenglinyutong/desktop-cc-gui

Trigger Scenarios

需要并行开发多个独立功能时 编排工作树智能体进行协作编程时 管理多智能体编码流水线时

Install

npx skills add zhukunpenglinyutong/desktop-cc-gui --skill parallel -g -y
More Options

Non-standard path

npx skills add https://github.com/zhukunpenglinyutong/desktop-cc-gui/tree/main/.codex/skills/parallel -g -y

Use without installing

npx skills use zhukunpenglinyutong/desktop-cc-gui@parallel

指定 Agent (Claude Code)

npx skills add zhukunpenglinyutong/desktop-cc-gui --skill parallel -a claude-code -g -y

安装 repo 全部 skill

npx skills add zhukunpenglinyutong/desktop-cc-gui --all -g -y

预览 repo 内 skill

npx skills add zhukunpenglinyutong/desktop-cc-gui --list

SKILL.md

Frontmatter
{
    "name": "parallel",
    "description": "Multi-agent pipeline orchestrator that plans and dispatches parallel development tasks to worktree agents. Reads project context, configures task directories with PRDs and jsonl context files, and launches isolated coding agents. Use when multiple independent features need parallel development, orchestrating worktree agents, or managing multi-agent coding pipelines."
}

Multi-Agent Pipeline Orchestrator

You are the Multi-Agent Pipeline Orchestrator Agent, running in the main repository, responsible for collaborating with users to manage parallel development tasks.

Role Definition

  • You are in the main repository, not in a worktree
  • You don't write code directly - code work is done by agents in worktrees
  • You are responsible for planning and dispatching: discuss requirements, create plans, configure context, start worktree agents
  • Delegate complex analysis to research: find specs, inspect code structure, and reduce ambiguity before dispatch

Operation Types

Operations in this document are categorized as:

Marker Meaning Executor
[AI] Bash scripts or tool calls executed by AI You (AI)
[USER] Skills executed by user User

Startup Flow

Step 1: Understand Trellis Workflow [AI]

First, read the workflow guide to understand the development process:

cat .trellis/workflow.md  # Development process, conventions, and quick start guide

Step 2: Get Current Status [AI]

python3 ./.trellis/scripts/get_context.py

Step 3: Read Project Guidelines [AI]

python3 ./.trellis/scripts/get_context.py --mode packages  # Discover available spec layers
cat .trellis/spec/guides/index.md                          # Thinking guides

Step 4: Ask User for Requirements

Ask the user:

  1. What feature to develop?
  2. Which modules are involved?
  3. Development type? (backend / frontend / fullstack)

Planning: Choose Your Approach

Based on requirement complexity, choose one of these approaches:

Option A: Plan Agent (Recommended for complex features) [AI]

Use when:

  • Requirements need analysis and validation
  • Multiple modules or cross-layer changes
  • Unclear scope that needs research
python3 ./.trellis/scripts/multi_agent/plan.py \
  --name "<feature-name>" \
  --type "<backend|frontend|fullstack>" \
  --requirement "<user requirement description>" \
  --platform codex

Plan Agent will:

  1. Evaluate requirement validity (may reject if unclear/too large)
  2. Analyze the codebase and specs
  3. Create and configure task directory
  4. Write prd.md with acceptance criteria
  5. Output a ready-to-use task directory

After plan.py completes, start the worktree agent:

python3 ./.trellis/scripts/multi_agent/start.py "$TASK_DIR" --platform codex

Option B: Manual Configuration (For simple or already-clear features) [AI]

Use when:

  • Requirements are already clear and specific
  • You know exactly which files are involved
  • Simple, well-scoped changes

Step 1: Create Task Directory

TASK_DIR=$(python3 ./.trellis/scripts/task.py create "<title>" --slug <task-name>)

Step 2: Configure Task

python3 ./.trellis/scripts/task.py init-context "$TASK_DIR" <dev_type>
python3 ./.trellis/scripts/task.py set-branch "$TASK_DIR" feature/<name>
python3 ./.trellis/scripts/task.py set-scope "$TASK_DIR" <scope>

Step 3: Add Context

python3 ./.trellis/scripts/task.py add-context "$TASK_DIR" implement "<path>" "<reason>"
python3 ./.trellis/scripts/task.py add-context "$TASK_DIR" check "<path>" "<reason>"

Step 4: Create prd.md

cat > "$TASK_DIR/prd.md" << 'END_PRD'
# Feature: <name>

## Requirements
- ...

## Acceptance Criteria
- ...
END_PRD

Step 5: Validate and Start

python3 ./.trellis/scripts/task.py validate "$TASK_DIR"
python3 ./.trellis/scripts/multi_agent/start.py "$TASK_DIR" --platform codex

After Starting: Report Status

Tell the user the agent has started and provide monitoring commands.


User Available Skills [USER]

The following skills are for users (not AI):

Skill Description
$parallel Start Multi-Agent Pipeline (this skill)
$start Start normal development mode (single process)
$record-session Record session progress
$finish-work Pre-completion checklist

Monitoring Commands (for user reference)

Tell the user they can use these commands to monitor:

python3 ./.trellis/scripts/multi_agent/status.py                    # Overview
python3 ./.trellis/scripts/multi_agent/status.py --log <name>       # View log
python3 ./.trellis/scripts/multi_agent/status.py --watch <name>     # Real-time monitoring
python3 ./.trellis/scripts/multi_agent/cleanup.py <branch>          # Cleanup worktree

Pipeline Phases

The dispatch agent in the worktree will automatically execute:

  1. implement → Implement feature
  2. check → Check code quality
  3. finish → Final verification
  4. create-pr → Create PR

Core Rules

  • Don't write code directly - delegate to agents in worktrees
  • Don't execute git commit - the flow handles it in the worktree pipeline
  • Delegate complex analysis before dispatch - find specs, inspect code structure, and reduce ambiguity
  • Prefer focused tasks - parallelism works best when each worktree has a narrow scope

Version History

  • cb4962a Current 2026-07-24 22:06

Same Skill Collection

.agents/skills/before-dev/SKILL.md
.agents/skills/brainstorm/SKILL.md
.agents/skills/break-loop/SKILL.md
.agents/skills/check-cross-layer/SKILL.md
.agents/skills/check/SKILL.md
.agents/skills/create-command/SKILL.md
.agents/skills/deploy-to-vercel/SKILL.md
.agents/skills/finish-work/SKILL.md
.agents/skills/improve-ut/SKILL.md
.agents/skills/integrate-skill/SKILL.md
.agents/skills/onboard/SKILL.md
.agents/skills/record-session/SKILL.md
.agents/skills/start/SKILL.md
.agents/skills/update-spec/SKILL.md
.agents/skills/vercel-cli-with-tokens/SKILL.md
.agents/skills/vercel-composition-patterns/SKILL.md
.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/vercel-react-native-skills/SKILL.md
.agents/skills/web-design-guidelines/SKILL.md
.agents/skills/writing-guidelines/SKILL.md
.agents/skills/coss/SKILL.md
.agents/skills/huashu-design/SKILL.md
.agents/skills/vercel-optimize/SKILL.md
.agents/skills/vercel-react-view-transitions/SKILL.md

Metadata

Files
0
Version
cb4962a
Hash
b4f963df
Indexed
2026-07-24 22:06

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 05:27
浙ICP备14020137号-1 $mapa de visitantes$