Add parallel execution capabilities to existing Claude Code commands
Add parallel execution to commands for batch processing multiple files or targets. Use when analyzing independent data sources like reading multiple files, running security scans, or aggregating research from several locations.
/plugin marketplace add lpasqualis/lpclaude/plugin install lpclaude-config@lpclaude-marketplace[command-name] [optional-specific-requirements]commands/Analyze an existing command and add parallelization capabilities when appropriate.
First, read the target command file:
/, determine path: /namespace:command → namespace/command.md.claude/commands/ first, then ~/.claude/commands/Only add parallelization if the command performs:
Do NOT parallelize:
If parallelization is appropriate:
workers/[command-name]-workers/workers/[namespace]-[name]-workers/Store in appropriate subdirectory:
workers/[command-name]-workers/[worker-type].mdworkers/[namespace]-[name]-workers/[worker-type].mdYou are a specialized worker for parallel [analysis-type].
Analyze the provided [target] for [specific-criteria].
Return results in structured format:
- Item: [target-identifier]
- Status: [result-summary]
- Details: [specific-findings]
This task operates without conversation context.
For multiple [targets]:
- Read template: Read('workers/[namespace]-[name]-workers/analyzer.md')
(or 'workers/[command-name]-workers/analyzer.md' for simple commands)
- Use Task tool with subagent_type: 'general-purpose'
- Process up to 10 [targets] in parallel
- Aggregate results and present unified findings
Ensure the updated command:
Note: If the command has disable-model-invocation: true, preserve it - parallel execution capability doesn't change whether Claude should invoke it programmatically.
$ARGUMENTS