opencode-tui-safety

Enforce safe OpenCode TUI plugin practices via structured logging and event validation.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/shynlee04/idumb-plugin --skill opencode-tui-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-tui-safety
Source: https://github.com/shynlee04/idumb-plugin/tree/main/.claude/skills/opencode-tui-safety
Command: npx skills add https://github.com/shynlee04/idumb-plugin --skill opencode-tui-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

OpenCode TUI safety guidelines help AI-driven plugins avoid visual pollution, enforce structured logging, and interact with the Terminal UI through safe, event-driven patterns.

Core Features & Use Cases

  • Enforces no console.log pollution in plugins; promotes structured logging with client.app.log
  • Guides safe interaction with TUI events rather than direct UI access
  • Provides performance and reliability guardrails for 60 FPS rendering
  • Helps troubleshooting and best practices for safe plugin development

Quick Start

Audit your plugin code for console.log usage and replace it with structured logging using client.app.log().

Frequently Asked Questions about opencode-tui-safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent console pollution in OpenCode TUI plugins?

To prevent console pollution in OpenCode TUI plugins, you must eliminate direct console.log usage and replace it with structured logging via the client.app.log() method. This enforces safe, event-driven interaction patterns.

What is the best way to handle TUI events safely in OpenCode plugin development?

The best way to handle TUI events safely is by interacting with the Terminal UI through safe, event-driven patterns rather than direct UI access. This ensures your plugin maintains rendering performance and reliability.

Why does my OpenCode TUI plugin drop frames during rendering?

Your OpenCode TUI plugin drops frames during rendering when it violates 60 FPS performance guardrails. Applying safe plugin development practices and structured logging helps troubleshoot and enforce these reliability standards.

Does OpenCode plugin development require structured logging patterns?

Yes, OpenCode plugin development requires structured logging patterns to avoid visual pollution. You must validate events and route logs through client.app.log() instead of standard console outputs to adhere to safety standards.

When do I need to audit my code for OpenCode TUI safety?

You need to audit your code for OpenCode TUI safety when building or modifying terminal UI integrations. This ensures your logging, event handling, and rendering adhere to safety standards and avoid visual pollution.