alizarion/openclaw-claude-code-plugin/claude-code-orchestration
Claude Code and agent skill by alizarion/openclaw-claude-code-plugin
- community
Checking that the SKILL.md file is still in the repository.
Skill for orchestrating Claude Code sessions from OpenClaw. Covers launching, monitoring, multi-turn interaction, lifecycle management, notifications, and parallel work patterns.
Install
npx vskill@latest install alizarion/openclaw-claude-code-plugin/claude-code-orchestrationSKILL.md
Claude Code Orchestration
You orchestrate Claude Code sessions via the openclaw-claude-code-plugin. Each session is an autonomous agent that executes code tasks in the background.
1. Launching sessions
Mandatory rules
- Notifications are routed automatically via
agentChannelsconfig. Do NOT passchannelmanually — it bypasses automatic routing. - Always pass `multi_turn: true` unless the task is a guaranteed one-shot with no possible follow-up.
- Name the sessions with
namein kebab-case, short and descriptive. - Set `workdir` to the target project directory, not the agent's workspace.
Essential parameters
| Parameter | When to use | |
|---|---|---|
prompt | Always. Clear and complete instruction. | |
name | Always. Descriptive kebab-case (fix-auth-bug, add-dark-mode). | |
channel | Do NOT pass. Resolved automatically via agentChannels. | |
workdir | Always when the project is not in the defaultWorkdir. | |
multi_turn | true by default unless explicitly one-shot. | |
max_budget_usd | Adjust accordingly: 1-2 for a small fix, 5 for a feature, 10+ for a major refactoring. | |
model | When you want to force a specific model ("sonnet", "opus"). | |
system_prompt | To inject project-specific context. | |
permission_mode | "bypassPermissions" by default. "acceptEdits" for more control. |
Examples
Resume and fork
2. Monitoring sessions
List sessions
View output
Real-time streaming
Note: claude_fg first displays a catchup "Catchup (N missed outputs):" with everything that happened in the background, then starts live streaming.
3. Multi-turn interaction
Send a follow-up
When to auto-respond vs forward to the user
Auto-respond immediately with `claude_respond`:
- Permission requests to read/write files or run bash commands ->
"Yes, proceed." - Confirmations like "Should I continue?" ->
"Yes, continue." - Questions about the approach when only one is reasonable -> Respond with the obvious choice
- Clarification requests about the codebase -> Respond if you know, otherwise
"Use your best judgment."
Forward to the user:
- Architecture decisions (Redis vs PostgreSQL, REST vs GraphQL...)
- Destructive operations (deleting files, dropping tables...)
- Ambiguous requirements not covered by the initial prompt
- Scope or budget changes ("This will require refactoring 15 files")
- Anything involving credentials, secrets, or production environments
- When in doubt -> always forward to the user
Interaction cycle
- Session launches -> runs in background
- Wake event
openclaw system eventarrives when the session is waiting for input - Read the question with
claude_output(session, full: true) - Decide: auto-respond or forward
- If auto-respond:
claude_respond(session, answer) - If forward: relay the question to the user, wait for their response, then
claude_respond
4. Lifecycle management
Stop a session
Use when:
- The session is stuck or looping
- Budget is being wasted on the wrong approach
- The user requests a stop
Timeouts
- Idle multi-turn sessions are automatically killed after
idleTimeoutMinutes(default: 30 min) - Completed sessions are garbage-collected after 1h but remain resumable via persisted IDs
Check the result after completion
When a session completes (completion wake event):
claude_output(session: "xxx", full: true)to read the result- Summarize the result to the user
- If failed, analyze the error and decide: relaunch, fork, or escalate
5. Notifications
Routing
Notifications are routed automatically based on the session's workdir using the agentChannels plugin config. Each workspace directory maps to a specific channel (e.g., telegram:seo-bot:123456789). See Agent Channels for setup.
Events
| Event | What happens | |
|---|---|---|
| Session starts | Silent | |
| Session in foreground | Real-time stream (text debounced 500ms + tool indicators) | |
| Session completed | Notification to the originating channel | |
| Session failed | Error notification to the originating channel | |
| Waiting for input | openclaw system event to wake the orchestrator + "Claude asks:" in the channel | |
| Response sent | "Responded:" echo in the channel | |
| Session > 10 min | One-shot reminder | |
| Session limit reached | Notification to the channel |
Background visibility
Even without foreground, the user sees in their chat:
- `Claude asks:` when Claude asks a question
- `Responded:` when a follow-up is sent
This makes the conversation transparent without needing foregrounding.
6. Best practices
Launch checklist
agentChannelsis configured for this workdir -> notifications arrivemulti_turn: true-> interaction is possible after launchnameis descriptive -> easy to identify inclaude_sessionsworkdirpoints to the correct project -> Claude Code works in the right directorymax_budget_usdis calibrated -> no waste
Parallel tasks
- Respect the
maxSessionslimit (default: 5) - Each session must have a unique
name - Monitor each session individually via wake events
- Don't launch too many sessions in parallel: each session consumes resources and budget
Error handling
- If a session fails, read the full output to understand why
- Relaunch with a corrected prompt if the error is in the instruction
- Fork (
fork_session: true) if you want to try a different approach without losing context - Escalate to the user if the error is outside your control (permissions, network, missing dependencies)
Reporting results
When a session completes:
- Read the full result with
claude_output(session, full: true) - Summarize the changes made to the user
- Mention the files modified/created
- Flag any issues encountered or remaining TODOs
7. Anti-patterns
| Anti-pattern | Consequence | Fix | |
|---|---|---|---|
Passing channel explicitly | Bypasses automatic routing, notifications may go to wrong bot | Let agentChannels handle routing automatically | |
Forgetting multi_turn: true | Unable to send follow-ups with claude_respond | Enable multi_turn except for explicit one-shots | |
| Not checking the result of a completed session | The user doesn't know what happened | Always read claude_output and summarize | |
| Launching too many sessions in parallel | maxSessions limit reached, sessions rejected, diluted attention | Respect the limit, prioritize, sequence if necessary | |
Using the agent's workdir instead of the project's | Claude Code works in the wrong directory | Always point to the target project directory | |
| Not naming sessions | Hard to identify them in claude_sessions | Always use name in kebab-case | |
| Auto-responding to critical questions | Decisions made without the user's approval | When in doubt, forward to the user | |
| Ignoring wake events | Sessions stuck waiting indefinitely | Handle each wake event promptly | |
| Not adjusting the budget | Waste (too high) or interruption (too low) | Calibrate max_budget_usd based on complexity |
8. Quick tool reference
| Tool | Usage | Key parameters | |
|---|---|---|---|
claude_launch | Launch a session | prompt, name, workdir, multi_turn, max_budget_usd | |
claude_sessions | List sessions | status (all/running/completed/failed) | |
claude_output | Read the output | session, full, lines | |
claude_fg | Foreground + live stream | session | |
claude_bg | Switch back to background | session | |
claude_kill | Kill a session | session | |
claude_respond | Send a follow-up | session, message, interrupt | |
claude_stats | Usage metrics | none |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claude-code-orchestration/SKILL.md
Popularity
- Repository stars
- 63
- Repository forks
- 19
- Repository npm downloads, 7 days
- 98
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 16 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alizarion/openclaw-claude-code-plugin/claude-code-orchestration)