A modified OpenClaw skill for delegating coding tasks to OpenCode via background processes.
This is a modified version of the OpenClaw coding-agent skill, adapted to work exclusively with OpenCode.
This skill provides patterns and workflows for using OpenCode effectively in your projects. It includes guidance on:
- Running OpenCode tasks with PTY (pseudo-terminal) for proper interactive output
- Executing one-shot tasks for quick prompts
- Running background tasks for longer operations
- Managing parallel tasks with git worktrees
- Reviewing pull requests safely
# Run a simple task
bash pty:true workdir:~/project command:"opencode run 'Add error handling to API calls'"# Run longer tasks in background
bash pty:true workdir:~/project background:true command:"opencode run 'Build a REST API for todos'"# Check session status
process action:poll sessionId:XXX
# View output
process action:log sessionId:XXX- OpenCode CLI installed
- Bash tool with PTY support
- Git (for PR reviews)
SKILL.md- OpenCode skill definition with full documentation
MIT