.codex/skills/parallel/SKILL.md
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.
npx skillsauth add basui01/agentflow parallelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the Multi-Agent Pipeline Orchestrator Agent, running in the main repository, responsible for collaborating with users to manage parallel development tasks.
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 |
[AI]First, read the workflow guide to understand the development process:
cat .trellis/workflow.md # Development process, conventions, and quick start guide
[AI]python3 ./.trellis/scripts/get_context.py
[AI]python3 ./.trellis/scripts/get_context.py --mode packages # Discover available spec layers
cat .trellis/spec/guides/index.md # Thinking guides
Ask the user:
Based on requirement complexity, choose one of these approaches:
[AI]Use when:
python3 ./.trellis/scripts/multi_agent/plan.py \
--name "<feature-name>" \
--type "<backend|frontend|fullstack>" \
--requirement "<user requirement description>" \
--platform codex
Plan Agent will:
prd.md with acceptance criteriaAfter plan.py completes, start the worktree agent:
python3 ./.trellis/scripts/multi_agent/start.py "$TASK_DIR" --platform codex
[AI]Use when:
TASK_DIR=$(python3 ./.trellis/scripts/task.py create "<title>" --slug <task-name>)
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>
python3 ./.trellis/scripts/task.py add-context "$TASK_DIR" implement "<path>" "<reason>"
python3 ./.trellis/scripts/task.py add-context "$TASK_DIR" check "<path>" "<reason>"
prd.mdcat > "$TASK_DIR/prd.md" << 'END_PRD'
# Feature: <name>
## Requirements
- ...
## Acceptance Criteria
- ...
END_PRD
python3 ./.trellis/scripts/task.py validate "$TASK_DIR"
python3 ./.trellis/scripts/multi_agent/start.py "$TASK_DIR" --platform codex
Tell the user the agent has started and provide monitoring commands.
[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 |
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
The dispatch agent in the worktree will automatically execute:
development
Captures executable contracts and coding knowledge into .trellis/spec/ documents after implementation, debugging, or design decisions. Enforces code-spec depth for infra and cross-layer changes with mandatory sections for signatures, contracts, validation matrices, and test points. Use when a feature is implemented, a bug is fixed, a design decision is made, a new pattern is discovered, or cross-layer contracts change.
development
Initializes an AI development session by reading workflow guides, developer identity, git status, active tasks, and project guidelines from .trellis/. Classifies incoming tasks and routes to brainstorm, direct edit, or task workflow. Use when beginning a new coding session, resuming work, starting a new task, or re-establishing project context.
development
Records completed work progress to .trellis/workspace/ journal files after human testing and commit. Captures session summaries, commit hashes, and updates developer index files for future session context. Use when a coding session is complete, after the human has committed code, or to persist session knowledge for future AI sessions.
development
Interactive three-part onboarding for new team members to the Trellis AI-assisted workflow system. Covers core philosophy (AI memory, project-specific knowledge, context drift), system structure and command deep-dives, real-world workflow examples, and guideline customization. Use when a new developer joins the project, someone needs to understand the Trellis workflow, or project guidelines need initial setup.