What problem does it solve?
This Skill provides a robust bridge for seamless communication between the OpenWork UI and the OpenCode AI runtime, enabling efficient interaction through CLI, database access, and real-time MCP communication.
Core Features & Use Cases
- CLI Invocation: Execute OpenCode commands directly with prompts and receive structured JSON responses.
- Database Access: Query OpenCode's SQLite database for session history, messages, and cost data.
- MCP Bridge: Facilitate real-time, bidirectional communication for advanced features like permission prompts and streaming updates.
- Use Case: A developer can use this Skill to programmatically trigger code generation tasks in OpenCode, retrieve the results, and log them into a project management tool via the OpenWork UI.
Quick Start
Execute the opencode CLI tool with the prompt "Write a Python function to calculate Fibonacci numbers" in quiet JSON output mode.