opencode-tool-compliance

Audit and enforce OpenCode plugin tool implementations for standardized structure, safety, and logging.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenCode Tool Compliance provides guidelines and templates to ensure custom tools for OpenCode plugins adhere to a standardized structure, robust error handling, and safe logging practices.

Core Features & Use Cases

  • Zod schema templates for argument validation and tool definitions.
  • Standard execute-function patterns and a consistent tool context contract.
  • Guidance for safe operation, logging, and error handling during plugin development.

Quick Start

Install the OpenCode tool-compliance template in your project and begin defining tools using the prescribed patterns.

Frequently Asked Questions about opencode-tool-compliance

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

FAQPage Schema
How do I enforce standardized structure and safety when creating OpenCode plugin tools?

OpenCode plugin tools require a standardized definition pattern with execute functions, context contracts, Zod schema validation for arguments, and TUI-safe logging to ensure consistency and safe operation across custom tool implementations.

What is the best way to validate arguments in OpenCode tool development?

The best way to validate arguments in OpenCode tool development is using Zod schema templates, which enforce robust argument validation and ensure tool definitions meet standardized compliance and safety requirements.

Can I use Zod schemas to define the execute function context for my plugin tools?

Yes, OpenCode plugin tools use Zod schemas to define argument validation and establish a consistent tool context contract, ensuring execute functions receive properly structured and validated inputs during execution.

Why does my OpenCode plugin tool need TUI-safe logging guidelines?

OpenCode plugin tools need TUI-safe logging guidelines to prevent terminal interface corruption during execution, ensuring error handling and operational logs display correctly without disrupting the interactive environment.

Does OpenCode tool compliance work for refactoring existing custom tools, or only new plugin development?

OpenCode tool compliance applies to both new plugin development and refactoring existing custom tools, auditing definitions, contexts, and logging to enforce standardized structure, robust error handling, and safe operation across implementations.

What are the limitations of standardizing OpenCode plugin contexts and error handling?

Limitations involve adhering strictly to prescribed tool definition patterns and execute function structures, as custom implementations deviating from Zod schema templates and context contracts may not pass compliance audits.