What problem does it solve?
OpenCode plugin developers often struggle to provide responsive, user-friendly feedback and prompts during complex workflows. This skill provides a framework for integrating TUI elements, toasts, and session-driven prompts to create interactive plugins.
Core Features & Use Cases
- Toast notifications to display status, success, and error messages during tool execution.
- User messaging via session prompts with noReply to communicate with users without triggering AI responses.
- Prompt manipulation through appendPrompt and helper APIs to guide user input and maintain context.
- Use Case: Create a plugin that guides a user step-by-step through a data-cleaning task, with live progress updates and inline suggestions.
Quick Start
Install the OpenCode SDK in your plugin workspace and begin scaffolding a new plugin that integrates the UI features. Then run and test the plugin locally to verify toasts, prompts, and prompt suggestions in a test session.