ari-parallel-workflows
Spawn parallel agents for independent tasks using git worktrees
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Spawn parallel agents for independent tasks using git worktrees
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Discord slash commands, approval routing, channel policy, button interaction patterns for OpenClaw/ARI Discord integration
Obsidian vault integration patterns — vault-analyzer.ts, /ari-vault-* commands, morning briefing snippet, PARA structure, read-only enforcement
OpenClaw plugin development patterns — hooks, manifest structure, plugin SDK, APEX/CODEX enforcement
NOVA's P1 PayThePryce pipeline — market signal ingest, card detection, price monitoring, script generation, thumbnail generation, video assembly, approval gate
CHASE's P2 Pryceless Solutions pipeline — lead discovery, 5-criteria audit, LLM qualification, Prompt Forge 4-pass lock, demo generation, outreach approval gate
NOVA's thumbnail generation pipeline — Ideogram V3 via Fal.ai (primary) + DALL-E 3 fallback, 4-variant strategy, Pokemon TCG copyright rules,
| name | ari-parallel-workflows |
| description | Spawn parallel agents for independent tasks using git worktrees |
| triggers | ["/parallel","/spawn-agent","spawn agents","work in parallel","parallel tasks"] |
Spawn multiple agents to work on independent tasks simultaneously. Each agent runs in an isolated git worktree for safety and parallelism.
Good candidates for parallelization:
Not suitable for parallelization:
┌─────────────────────────────────────────────────────────────┐
│ Main Session │
│ ↓ │
│ /parallel "Task A" "Task B" "Task C" │
│ ↓ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Worker A│ │ Worker B│ │ Worker C│ ← Isolated worktrees│
│ │ branch-a│ │ branch-b│ │ branch-c│ │
│ └────┬────┘ └────┬────┘ └────┬────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌─────────────────────────────────────┐ │
│ │ Results Collection & Merge │ │
│ └─────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
/parallel "Add user authentication" "Add password reset" "Add email verification"
Creates 3 agents, each in their own worktree, working independently.
/agents status
Shows all running agents and their progress.
/agents collect <agent-id>
Gets results from a completed agent.
/agents cleanup
Removes completed agent worktrees and branches.
Under the hood, this skill uses AgentSpawner:
const spawner = new AgentSpawner(eventBus, projectRoot);
// Spawn an agent
const agent = await spawner.spawnInWorktree(
'Implement feature X',
'feature-x'
);
// Check status (called every 15min by scheduler)
await spawner.checkAgents();
// Collect results
const result = await spawner.collectResults(agent.id);
// Cleanup
await spawner.cleanup(agent.id, { deleteBranch: true });
Agents report progress through marker files:
| File | Purpose |
|---|---|
.ari-task.md | Original task description |
.ari-progress | JSON with progress % and message |
.ari-completed | JSON with results (success) |
.ari-failed | Error message (failure) |
When agents complete, their branches need merging:
| Strategy | Use Case |
|---|---|
replace | Single authoritative result |
append | Combine independent work |
selective | Cherry-pick best parts |
The scheduler runs agent_health_check every 15 minutes:
# 1. Plan the parallel work
"We need to add auth, password reset, and email verification"
# 2. Verify independence
"These features share UserService but otherwise independent"
# 3. Spawn agents
/parallel \
"Add JWT authentication to Gateway" \
"Add password reset flow with email tokens" \
"Add email verification on signup"
# 4. Monitor
/agents status
→ agent_abc123: 45% - Implementing JWT validation
→ agent_def456: 20% - Setting up email templates
→ agent_ghi789: 80% - Finishing verification endpoint
# 5. Review & merge when complete
/agents collect agent_abc123
→ [Shows diff and summary]
# 6. Cleanup
/agents cleanup