Orchestrates complex development by delegating tasks to isolated coding agents across project worktrees.
Install
mkdir -p .claude/skills/parallel-zhukunpenglinyutong && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18654" && unzip -o skill.zip -d .claude/skills/parallel-zhukunpenglinyutong && rm skill.zipInstalls to .claude/skills/parallel-zhukunpenglinyutong
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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.Key capabilities
- →Plan parallel development tasks
- →Dispatch tasks to worktree agents
- →Configure task directories with PRDs and context files
- →Launch isolated coding agents
- →Understand Trellis workflow and project guidelines
How it works
The skill orchestrates multi-agent pipelines by planning tasks, configuring worktree environments, and dispatching coding agents based on user requirements.
Inputs & outputs
When to use parallel
- →Executing parallel features
- →Managing multi-agent coding workflows
- →Orchestrating worktree operations
About this skill
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:
- What feature to develop?
- Which modules are involved?
- 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:
- Evaluate requirement validity (may reject if unclear/too large)
- Analyze the codebase and specs
- Create and configure task directory
- Write
prd.mdwith acceptance criteria - 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:
- implement → Implement feature
- check → Check code quality
- finish → Final verification
- 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
When not to use it
- →When writing code directly in the main repository
- →When executing `git commit` directly
- →When complex analysis is not delegated before dispatch
Limitations
- →Does not write code directly
- →Does not execute `git commit` directly
- →Requires delegation of complex analysis to research agents
How it compares
This skill enables parallel development by orchestrating multiple isolated worktree agents, allowing for simultaneous work on independent features, unlike single-agent development.
Compared to similar skills
parallel side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| parallel (this skill) | 0 | 3mo | Review | Advanced |
| github-actions-templates | 7 | 3mo | No flags | Intermediate |
| autogpt-agents | 5 | 6mo | Review | Advanced |
| workflow-automation | 3 | 5mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
github-actions-templates
wshobson
Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.
autogpt-agents
davila7
Autonomous AI agent platform for building and deploying continuous agents. Use when creating visual workflow agents, deploying persistent autonomous agents, or building complex multi-step AI automation systems.
workflow-automation
ruvnet
Workflow creation, execution, and template management. Automates complex multi-step processes with agent coordination. Use when: automating processes, creating reusable workflows, orchestrating multi-step tasks. Skip when: simple single-step tasks, ad-hoc operations.
cli-commands
windmill-labs
MUST use when using the CLI.
create-worktree-skill
disler
Use when the user explicitly asks for a SKILL to create a worktree. If the user does not mention "skill" or explicitly request skill invocation, do NOT trigger this. Only use when user says things like "use a skill to create a worktree" or "invoke the worktree skill". Creates isolated git worktrees with parallel-running configuration.
hosted-agents
muratcankoylan
This skill should be used when the user asks to "build background agent", "create hosted coding agent", "set up sandboxed execution", "implement multiplayer agent", or mentions background agents, sandboxed VMs, agent infrastructure, Modal sandboxes, self-spawning agents, or remote coding environments.