home / skills / duc01226 / easyplatform / code-parallel
This skill orchestrates parallel and sequential phases from a plan, coordinating agents to maximize efficiency while validating assumptions with code evidence.
npx playbooks add skill duc01226/easyplatform --skill code-parallelReview the files below or copy the command above to add this skill to your agents.
---
name: code-parallel
description: "[Implementation] ⚡ Execute parallel or sequential phases based on plan structure"
argument-hint: [plan-path]
infer: true
---
Execute plan: <plan>$ARGUMENTS</plan>
**⚠️ MUST READ before implementation:**
- `.claude/skills/shared/anti-hallucination-protocol.md` — Assumption validation, evidence chains, context anchoring
- `.ai/docs/backend-code-patterns.md` — Backend code patterns
- `.ai/docs/frontend-code-patterns.md` — Frontend code patterns
**Core Rule:** Verify every assumption with actual code evidence before making changes. If confidence < 90%, investigate further or ask user.
**IMPORTANT:** Activate needed skills. Ensure token efficiency. Sacrifice grammar for concision.
## Workflow
### 1. Plan Analysis
- Read `plan.md` from given path
- **Check for:** Dependency graph, Execution strategy, Parallelization Info, File Ownership matrix
- **Decision:** IF parallel-executable → Step 2A, ELSE → Step 2B
### 2A. Parallel Execution
1. Parse execution strategy (which phases concurrent/sequential, file ownership)
2. Launch multiple `fullstack-developer` agents simultaneously for parallel phases
- Pass: phase file path, environment info, file ownership boundaries
3. Wait for parallel group completion, verify no conflicts
4. Execute sequential phases (one agent per phase after dependencies)
5. Proceed to Step 3
### 2B. Sequential Execution
Follow `./.claude/workflows/primary-workflow.md`:
1. Use main agent step by step
2. Read `plan.md`, implement phases one by one
3. Use `project-manager` for progress updates
4. Use `ui-ux-designer` for frontend
5. Run type checking after each phase
6. Proceed to Step 3
### 3. Testing
- Use `tester` for full suite (NO fake data/mocks)
- If fail: `debugger` → fix → repeat
### 4. Code Review
- Use `code-reviewer` for all changes
- If critical: fix → retest
### 5. Project Management & Docs
- If approved: `project-manager` + `docs-manager` in parallel (update plans, docs, roadmap)
- If rejected: fix → repeat
### 6. Onboarding
- Guide user step by step (1 question at a time)
### 7. Final Report
- Summary, guide, next steps
- Ask to commit (use `git-manager` if yes)
**Examples:**
- Parallel: "Phases 1-3 parallel, then 4" → Launch 3 agents → Wait → Launch 1 agent
- Sequential: "Phase 1 → 2 → 3" → Main agent implements each phase
## IMPORTANT Task Planning Notes
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed
This skill executes development plans by orchestrating parallel or sequential phases according to the plan structure. It verifies assumptions with code evidence, activates required agent roles, runs tests and reviews, and produces a final report with next steps. The goal is safe, efficient multi-agent implementation with clear ownership and minimal conflicts.
The skill reads the plan file, extracts dependency graphs, execution strategy, parallelization hints, and file ownership boundaries. If the plan allows parallel work, it launches multiple fullstack developer agents for concurrent phases, waits for completion, and then runs dependent sequential phases. For strictly sequential plans, it drives a single main agent through each phase, using specialized roles (project manager, UI/UX, tester, debugger, code reviewer) at the right steps. Every assumption must be validated with concrete code evidence before changes.
How do you decide parallel vs sequential?
I parse the plan for dependency graph and file ownership; independent phases with no shared files go parallel, otherwise I run sequentially.
What if tests fail after parallel work?
Run the debugger agent to fix failures, re-run the full test suite, and only proceed after passing tests and code-reviewer sign-off.