From acpx
Multi-agent orchestrator — delegates coding tasks to other AI coding CLIs (Gemini, Codex, Cursor, Copilot, Claude, Kiro, Qwen, Droid, etc.) via acpx, a headless CLI for the Agent Client Protocol (ACP). Use this skill whenever the user wants another agent to handle part of the work, run multiple agents in parallel, get a second opinion from a different model, or orchestrate multi-agent workflows. Trigger aggressively on: "use gemini/codex/cursor for...", "delegate to...", "have codex review...", "let gemini do the frontend", "split this across agents", "run agent...", "second opinion", "multi-agent", "acpx", "让gemini/codex做...", "分发任务", "用其他agent", "交给codex", or any mention of delegating work to a specific AI coding tool. Even if the user just names another agent casually ("gemini could do this faster"), consider triggering this skill.
How this skill is triggered — by the user, by Claude, or both
Slash command
/acpx:acpxThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Delegate coding tasks to other AI coding CLIs via `acpx`, a headless CLI client for the Agent Client Protocol (ACP). You are the orchestrator — you decompose work, dispatch to the right agents, collect results, and synthesize the final output.
Delegate coding tasks to other AI coding CLIs via acpx, a headless CLI client for the Agent Client Protocol (ACP). You are the orchestrator — you decompose work, dispatch to the right agents, collect results, and synthesize the final output.
Before first use, check that acpx is installed and discover available agents:
which acpx || npm i -g acpx@latest
acpx --version
Before dispatching to any agent, you must verify it exists. Run this check and parse the output:
acpx --help
The Commands section lists all registered agents. If the user's requested agent is NOT in the list, do not attempt to run it. Instead: tell the user it's not available, show the list of agents that are available, and suggest the best alternative for their task. Only proceed with dispatch after confirming the target agent is listed.
Routing guidance (use as soft defaults — always defer to user preference):
| Task Type | Recommended Agents | Why |
|---|---|---|
| Frontend / UI | gemini, cursor | Fast iteration, visual understanding |
| Code review | codex, claude | Thorough analysis, catches subtle issues |
| Backend / infra | claude, codex | Strong at architecture, system design |
| Rapid prototyping | gemini, codex | Fast turnaround |
| Cloud / AWS | kiro | AWS-specialized |
If the user specifies an agent, use that agent regardless of the table above.
All global flags (--cwd, --approve-all, --format, --model, --timeout, etc.) go before the agent name. Agent-specific flags (-s, --no-wait, -f) go after.
exec)For self-contained tasks that need no follow-up. The agent runs, returns output, and exits — no session is persisted.
acpx --cwd "$(pwd)" --approve-reads --format json <agent> exec "<task description>"
Use exec when:
For tasks that require back-and-forth conversation or multiple steps.
# Create a named session
acpx --cwd "$(pwd)" <agent> sessions new --name <task-name>
# Send prompts to it
acpx --cwd "$(pwd)" --approve-reads <agent> -s <task-name> "<prompt>"
# Continue the conversation — the agent remembers prior context
acpx --cwd "$(pwd)" --approve-reads <agent> -s <task-name> "<follow-up>"
# Read what happened
acpx --cwd "$(pwd)" <agent> sessions history <task-name>
acpx --cwd "$(pwd)" <agent> sessions read <task-name>
Use sessions when:
--no-wait)Run multiple agents concurrently. --no-wait queues the prompt and returns immediately.
acpx --cwd "$(pwd)" --approve-reads gemini -s ui-task --no-wait "implement login form per docs/login-spec.md"
acpx --cwd "$(pwd)" --approve-reads codex -s review-task --no-wait "review src/auth/ for security issues"
Then poll for completion:
acpx --cwd "$(pwd)" codex -s review-task status
acpx --cwd "$(pwd)" gemini -s ui-task status
And read results:
acpx --cwd "$(pwd)" codex sessions read review-task
acpx --cwd "$(pwd)" gemini sessions read ui-task
Agents work in isolation — they don't share your conversation context. You must explicitly provide what they need.
--cwd "$(pwd)" so the agent operates in the correct project directory.-f: acpx codex exec -f /tmp/task-brief.md.After agents complete work:
acpx <agent> sessions read <name> or sessions history <name> --limit 5 to see what the agent did.Best for: large tasks with independent subtasks (e.g., "build this full-stack feature").
--no-wait and named sessions.Worked example — user says "Build a user settings page with API endpoint":
# Confirm user consent before using --approve-all (writes files)
# User approved: proceed with dispatch
# Fan-out: frontend + backend in parallel
acpx --cwd "$(pwd)" --approve-all gemini -s settings-ui --no-wait \
"Create a React settings page at src/components/Settings.tsx. It should have form fields for name, email, and notification preferences. Use the existing Button and Input components from src/components/ui/. The API endpoint will be PATCH /api/users/settings."
acpx --cwd "$(pwd)" --approve-all codex -s settings-api --no-wait \
"Create a PATCH /api/users/settings endpoint in src/api/routes/users.ts. Accept JSON body with fields: name (string), email (string), notifications (boolean). Validate input, update the database, return the updated user object. Follow the patterns in the existing routes."
# Poll until done
acpx --cwd "$(pwd)" gemini -s settings-ui status
acpx --cwd "$(pwd)" codex -s settings-api status
# Fan-in: read results and verify integration
acpx --cwd "$(pwd)" gemini sessions read settings-ui
acpx --cwd "$(pwd)" codex sessions read settings-api
Then read the generated files, verify the frontend calls the correct API endpoint, fix any mismatches, and report to the user.
Best for: sequential refinement (generate → review → fix).
Best for: quality-critical code that benefits from a separate reviewer.
Always clean up after workflows complete:
# List active sessions
acpx --cwd "$(pwd)" <agent> sessions list
# Close completed sessions
acpx --cwd "$(pwd)" <agent> sessions close <name>
# Cancel in-flight work if needed
acpx --cwd "$(pwd)" <agent> cancel
--approve-reads — agents can read files but cannot write without explicit approval.--approve-all only when the user explicitly says the agent should make changes (write files, run commands).--deny-all only when passing all context inline in the prompt and the agent needs zero tool access. Note: most tasks — including reviews and explanations — require the agent to read files, so --approve-reads is almost always the correct minimum. Reserve --deny-all for cases like "explain this concept" where no file access is needed.--approve-all, especially on production code.| Situation | Action |
|---|---|
Agent not in acpx --help list | Tell user it's not installed. Suggest alternatives from available agents. |
| Agent process fails to start | Run acpx <agent> status to diagnose. Check acpx config show for misconfig. |
| Session times out | Check acpx <agent> -s <name> status. If stuck, acpx <agent> cancel and retry. |
--format json returns malformed output | Fall back to text format: drop --format json. Parse the text output. |
| Agent produces wrong/broken code | Don't silently retry. Show the user what went wrong, suggest a different agent or revised prompt. |
Use this to decide whether and how to delegate:
exec for one-off, well-scoped tasks: reviews, explanations, single-file changes.npx claudepluginhub royisme/agent-skills --plugin acpxOrchestrates Claude Code's native agents for parallel multi-domain tasks like comprehensive code analysis, feature reviews, and security audits requiring diverse expertise.
Orchestrates Codex agents for code implementation, file modifications, codebase research, security audits, testing, and multi-step execution workflows.
Orchestrates multiple parallel agents to decompose large tasks like migrations, multi-file refactors, or batch work using the Double Diamond methodology.