From ai-tools
Execute complex multi-task workflows using parallel subagent coordination with automatic resource optimization
npx claudepluginhub waynebrantley/aitools --plugin ai-toolsThis skill uses the workspace's default tool permissions.
Execute complex tasks in parallel using multiple general-purpose subagents with intelligent resource-based coordination and iterative error resolution.
Retrieves texts, DMs, one-time codes, and inspects threads in ECC workflows. Provides evidence of exact sources checked for verification before replies.
Delivers expertise for HS tariff classification, customs documentation, duty optimization, restricted party screening, and trade compliance across jurisdictions.
Process documents with Nutrient API: convert formats (PDF, DOCX, XLSX, images), OCR scans (100+ languages), extract text/tables, redact PII, sign, fill forms.
Execute complex tasks in parallel using multiple general-purpose subagents with intelligent resource-based coordination and iterative error resolution.
Scope: Generic orchestration skill for complex multi-task workflows requiring parallel execution.
Simple usage:
/parallel-coding-workflow Implement user authentication across frontend and backend
With custom parallelism:
/parallel-coding-workflow --parallelism=6 Fix null reference errors across 12 files
That's it! The skill handles:
Use /parallel-coding-workflow when:
Do NOT use when:
IMPORTANT: Use the TodoWrite tool throughout this workflow to track progress and ensure ALL work items are completed.
Before starting parallel execution, create a comprehensive todo list:
TodoWrite:
1. Calculate optimal parallelism (pending)
2. Decompose task into work items (pending)
3. Implement work item: [Feature A] (pending)
4. Implement work item: [Feature B] (pending)
5. Implement work item: [Feature C] (pending)
... (one todo per work item)
N. Run consolidated testing (pending)
N+1. Fix any test failures (pending)
Mark each todo as in_progress when spawning its subagent, and completed when the subagent finishes successfully.
Automatic (Recommended): Install the calculate-parallelism skill for:
Manual (Default): Uses conservative default of 4 parallel agents
Resource Strategy:
run_in_background: true when spawning subagents. Always use foreground Task calls so you know exactly when each agent completes.Phase 1: Parallel Coding
Phase 2: Consolidated Testing
Phase 3: Iterative Fixes
/parallel-coding-workflow <task description>
# Custom parallelism (2-6 recommended)
/parallel-coding-workflow --parallelism=6 <task>
# Light workloads (more parallelism)
/parallel-coding-workflow --parallelism=6 --mem-per-agent=2 <task>
# Heavy workloads (less parallelism)
/parallel-coding-workflow --parallelism=3 --mem-per-agent=4 <task>
/parallel-coding-workflow Implement user authentication with login, logout, and session management across frontend and backend
Execution: Decomposes into [Frontend login UI, Backend auth API, Session store, Logout handler, Auth middleware, Frontend state], spawns 6 parallel coding agents, tests all changes, iteratively fixes failures.
/parallel-coding-workflow Fix null reference errors in order processing workflow (affects 12 files)
Execution: Batches 12 file fixes across 3 rounds of 4 parallel agents, tests all changes, fixes regressions iteratively.
/parallel-coding-workflow Refactor legacy payment processing to use new payment gateway API
Execution: Decomposes into [Update models, Migrate client, Refactor checkout, Update admin UI, Migrations, Update tests], executes in parallel batches, tests thoroughly, fixes issues until complete.
subagent_type="general-purpose"Phase 1 - Initial Planning:
1. Calculate optimal parallelism (in_progress)
2. Decompose task into work items (pending)
3. Implement frontend login UI (pending)
4. Implement backend auth API (pending)
5. Implement session storage (pending)
6. Implement auth middleware (pending)
7. Run consolidated testing (pending)
Phase 2 - Parallel Coding (MAX_PARALLEL=4):
1. Calculate optimal parallelism (completed)
2. Decompose task into work items (completed)
3. Implement frontend login UI (in_progress)
4. Implement backend auth API (in_progress)
5. Implement session storage (in_progress)
6. Implement auth middleware (in_progress)
7. Run consolidated testing (pending)
Phase 3 - Testing:
1-6. [All coding tasks] (completed)
7. Run consolidated testing (in_progress)
Phase 4 - Fix Iteration (if needed):
1-6. [All coding tasks] (completed)
7. Run consolidated testing (completed)
8. Fix auth API test failures (in_progress)
9. Fix session storage race condition (in_progress)
10. Re-run testing (pending)
Phase 5 - Complete:
1-9. [All tasks] (completed)
10. Re-run testing (completed)
Q: Do I need the calculate-parallelism skill? A: No, but recommended. Without it, defaults to 4 parallel agents. With it, automatically optimizes based on your system.
Q: What parallelism should I use manually?
A: 8GB RAM → --parallelism=2, 16GB RAM → --parallelism=4, 32GB+ RAM → --parallelism=6
Q: What if tasks keep failing? A: After 3 fix-test cycles, the skill escalates to user for guidance.
Q: Can I interrupt mid-execution? A: Yes, subagents terminate but completed work remains in codebase.
Skill uses default parallelism=4. For resource-aware execution, install calculate-parallelism from marketplace.
Reduce with --parallelism=2 or install calculate-parallelism for automatic management.
After 3 cycles, review failures manually or adjust task description to be more specific.
Remember: Designed for complex workflows where parallelism provides time savings. For simple tasks (1-2 files), direct implementation is more efficient.
Version: 1.0.0 License: MIT Author: Wayne Brantley