OpenCode-CLI-Controller
Installation
SKILL.md
OpenCode CLI API Control
[!IMPORTANT] OPERATIONAL GUIDELINES: While you may use
lsor basic file system checks to verify that files/directories exist, you are EXPLICITLY PROHIBITED from reading or modifying the project's source code files directly. Your primary channel for task execution and progress monitoring is the OpenCode API and the provided scripts.
Overview
This skill provides a set of tools to programmatically interface with the Open Code CLI through its local web server API. It enables you to act as a Supervisor/Orchestrator who directs OpenCode to handle all coding, file operations, and quality checks.
Core Mandate: Orchestrator vs. Executor
- You are NOT the Coder: You do not write or verify code directly. OpenCode handles the implementation.
- You are the Orchestrator: You send high-level instructions to OpenCode, monitor its progress, and report the outcome to the user.
- Trust the System: OpenCode is responsible for its own file operations. Your job is to wait for it to finish and then check the status and diff summary, not the file contents.