From zenbu-powers
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies. Core orchestration skill for deciding when parallel agent dispatch is safe and effective in zenbu-powers projects.
npx claudepluginhub zenbuapps/zenbu-powers --plugin zenbu-powersThis skill uses the workspace's default tool permissions.
As the Orchestrator of zenbu-powers, you delegate tasks to specialized agents (`@wordpress-master`, `@react-master`, `@security-reviewer`, etc.) with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves...
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Share bugs, ideas, or general feedback.
As the Orchestrator of zenbu-powers, you delegate tasks to specialized agents (@wordpress-master, @react-master, @security-reviewer, etc.) with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
When you have multiple unrelated tasks (different PHP files, different React components, different failing tests, different reviews), handling them sequentially wastes time. Each task is independent and can happen in parallel.
Core principle: Dispatch one agent per independent problem domain. Let them work concurrently. Never share mutable state across parallel agents.
digraph when_to_use {
"Multiple tasks?" [shape=diamond];
"Are they independent?" [shape=diamond];
"Single agent handles all" [shape=box];
"One agent per domain" [shape=box];
"Shared files/state?" [shape=diamond];
"Sequential agents" [shape=box];
"Parallel dispatch" [shape=box];
"Multiple tasks?" -> "Are they independent?" [label="yes"];
"Are they independent?" -> "Single agent handles all" [label="no - related"];
"Are they independent?" -> "Shared files/state?" [label="yes"];
"Shared files/state?" -> "Parallel dispatch" [label="no"];
"Shared files/state?" -> "Sequential agents" [label="yes"];
}
Use parallel dispatch when:
@security-reviewer on PHP, @react-reviewer on TSX)Don't use parallel dispatch when:
Group tasks by what's affected:
@wordpress-master or @wordpress-reviewer@react-master or @react-reviewer@wordpress-master (WC-aware)@security-reviewer@workflow-master@doc-updaterEach domain is independent as long as the files they touch don't overlap.
Each agent gets:
Use a single message with multiple Agent tool calls (the CC harness runs them concurrently):
Agent(subagent_type: "zenbu-powers:wordpress-reviewer", ...) // review PHP files
Agent(subagent_type: "zenbu-powers:react-reviewer", ...) // review TSX files
Agent(subagent_type: "zenbu-powers:security-reviewer", ...) // security pass
All three run concurrently.
When agents return:
@conflict-resolverGood agent prompts are:
Example for zenbu-powers:
Review the PHP files changed in this PR for security issues:
- includes/api/class-orders-controller.php
- includes/models/class-order-repository.php
Focus on:
1. Capability checks (should use `current_user_can('edit_shop_orders')`)
2. Nonce verification for state-changing requests
3. Input sanitization via `wp_unslash()` + typed sanitization
4. Output escaping at boundary (use `esc_html()`, `esc_attr()`, `wp_kses_post()`)
5. SQL injection vectors in `$wpdb` calls (use `prepare()`)
Constraints:
- Do NOT modify files. Produce a review report only.
- Do NOT touch React / TSX files (another agent is handling those).
Return:
- List of issues found with severity (Critical / High / Medium / Low)
- File + line number for each issue
- Suggested fix (before/after diff)
❌ Too broad: "Review everything" — agent gets lost ✅ Specific: "Review PHP files in includes/api/ for security" — focused scope
❌ No context: "Fix the WC hook issue" — agent doesn't know where ✅ Context: Paste the hook name, the file path, and the error
❌ No constraints: Agent might refactor everything or touch files another parallel agent owns ✅ Constraints: "Do NOT touch includes/blocks/ — another agent is there"
❌ Vague output: "Fix it" — you don't know what changed ✅ Specific: "Return summary of root cause, files changed, and test results"
❌ Shared state: Two agents editing package.json or composer.json in parallel → guaranteed conflict
✅ Serialized writes: Run them sequentially, or let one agent own the manifest
| Situation | Why not parallel | Alternative |
|---|---|---|
Bumping plugin version in plugin.json + package.json + readme.txt | All three need the same version string; agents could race | Use /git-commit or one agent doing all three |
| Refactoring a hook that's called from 5 places | Changes propagate; sequential understanding needed | Single @wordpress-master with full scope |
| DB migration + model refactor | Migration must land first | Sequential pipeline |
| Failing tests across features that share a fixture | Shared fixture = shared state | Single @tdd-coordinator |
| User asks to explore an unknown bug | Exploratory; you don't yet know what's broken | Single @wordpress-master or Explore agent first |
Setup: PR changes both PHP (WC integration) and TSX (admin UI).
Dispatch:
@wordpress-reviewer → review PHP only (paths: includes/)@react-reviewer → review TSX only (paths: src/admin/)@security-reviewer → cross-cutting security pass on changed filesAll three can run in parallel because they produce reports, not edits. Integration step: you merge the three reports.
Setup: 3 unrelated failing tests after a refactor.
@tdd-coordinator (Team A) → fix tests/unit/order-repository-test.php
@tdd-coordinator (Team B) → fix tests/integration/cart-test.php
@react-master → fix src/admin/__tests__/dashboard.test.tsx
Parallel OK: each test file is its own domain. If you notice they share a fixture file, stop — serialize them.
Setup: Renaming a skill from old-name to new-name.
❌ @doc-updater → update rules/*.rule.md references
❌ @doc-manager → update CLAUDE.md references
❌ @claude-manager → update .claude-plugin/plugin.json
All three agents touch overlapping files (any of them might edit CLAUDE.md). Race → partial updates → inconsistent state.
Correct approach: Single agent + /aho-corasick-skill scan to guarantee global consistency. See using-zenbu-powers global-consistency section.
After agents return:
/aho-corasick-skill to catch stragglers