architect
Architectural design session - analyze requirements, propose architecture, create design docs
Demonstrate parallel execution by launching multiple agents simultaneously
$ npx -y skills add cloudai-x/opencode-workflow --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/parallelContext preview
What this command does when you run it.
Demonstrate parallel execution by launching multiple agents simultaneously
description: Demonstrate parallel execution by launching multiple agents simultaneously agent: build
Demonstrates the parallel execution pattern from claude-workflow-v2 by launching multiple independent subagents in a single message.
> ALL Task calls MUST be in a SINGLE assistant message for true parallelism.
If Task calls are in separate messages, they run sequentially, negating the performance benefit.
Parse `$ARGUMENTS` to determine parallel tasks:
1. **Task-based**: Multiple independent tasks to execute 2. **Directory-based**: Multiple directories to analyze 3. **Perspective-based**: Multiple review angles on same code
If no arguments, demonstrate with a default parallel analysis of the project.
For parallelization, tasks must be:
Examples of good parallel candidates:
Launch ALL subagents in a SINGLE message using the Task tool:
In ONE message, spawn multiple Task calls: Task 1: "@code-reviewer Review the authentication module for quality issues" Task 2: "@security-auditor Check authentication for vulnerabilities" Task 3: "@test-architect Analyze test coverage for authentication"
Spawn in parallel: - Logic Reviewer: Focus on correctness and edge cases - Performance Reviewer: Focus on efficiency and bottlenecks - Security Reviewer: Focus on vulnerabilities - Maintainability Reviewer: Focus on code quality
Spawn in parallel: - Subagent 1: Analyze src/api/ - Subagent 2: Analyze src/models/ - Subagent 3: Analyze src/utils/
Spawn in parallel: - Type Checker: Run TypeScript/mypy - Linter: Run ESLint/ruff - Test Runner: Execute test suite - Security Scanner: Check for vulnerabilities
As each subagent completes: 1. Capture their output 2. Track completion status 3. Note any conflicts or overlapping findings
Combine all parallel outputs into unified report:
Parallel Execution Report ========================= Tasks Launched: [N] Execution Time: ~[max task time] (vs [sum of times] sequential) Speedup: ~[N]x Results by Subagent: -------------------- [Subagent 1 Name]: [Summary of findings] [Subagent 2 Name]: [Summary of findings] ... Cross-Cutting Findings: ----------------------- [Issues identified by multiple subagents] Conflicts/Overlaps: ------------------- [Any contradictory recommendations] Prioritized Actions: -------------------- 1. [Most critical issue] 2. [Second priority] ...
/parallel review src/auth/ /parallel analyze src/api | src/models | src/db /parallel verify /parallel "check types | run tests | lint code | security scan"
| Approach | 4 Tasks @ 30s each | Total Time | |----------|-------------------|------------| | Sequential | 30s + 30s + 30s + 30s | ~120s | | Parallel | All 4 run simultaneously | ~30s |
**Parallel execution is approximately Nx faster** where N = number of independent tasks.
1. **All in ONE message**: This is critical for true parallelism 2. **No dependencies**: Only parallelize independent tasks 3. **Resource awareness**: Don't spawn excessive parallel tasks 4. **Synthesis required**: Raw parallel output needs integration 5. **Conflict resolution**: Different agents may have conflicting advice
A universal OpenCode workflow setup with specialized agents, skills, commands, and plugins for any software project.
Architectural design session - analyze requirements, propose architecture, create design docs
Learning and teaching mode - explains decisions, provides context, educational approach