opencode-config

Manages OpenCode configuration files in JSON, and Markdown formats with precedence rules and validation scripts.

4|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/wojons/skills --skill opencode-config-wojons
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-config
Source: https://github.com/wojons/skills/tree/main/skills/opencode-config
Command: npx skills add https://github.com/wojons/skills --skill opencode-config-wojons

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex and often confusing process of configuring OpenCode, ensuring your settings are applied correctly and efficiently.

Core Features & Use Cases

  • Configuration Clarity: Understand JSON/JSONC and Markdown formats, and the critical precedence rules.
  • Practical Examples: Generate and validate configurations for models, permissions, tools, and modes.
  • Use Case: You need to set a specific AI model for your project and ensure it overrides any global settings. This Skill can help you create the correct opencode.json file and verify its precedence.

Quick Start

Use the opencode-config skill to create a project-specific opencode.json file with a custom model.

Frequently Asked Questions about opencode-config

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

FAQPage Schema
How do I configure OpenCode settings for a specific project?

OpenCode settings can be configured using JSON, JSONC, and Markdown formats. The system applies precedence rules to ensure project-specific files override global and custom configurations correctly.

What is the precedence order for OpenCode configuration files?

OpenCode configuration precedence follows a hierarchy where project-specific settings override custom settings, which in turn override global settings. This ensures local configurations take priority for your environment.

Can I use JSONC format for OpenCode configuration?

Yes, OpenCode supports JSONC format for configuration files, allowing comments and trailing commas. It also accepts standard JSON and Markdown formats for defining settings.

How do I validate my OpenCode configuration?

You can validate OpenCode configuration using dedicated validation scripts. The system performs research-driven verification to check settings against evolving configuration schemas.

Does OpenCode configuration support Markdown format?

Yes, OpenCode configuration supports Markdown format in addition to JSON and JSONC. This allows you to define settings, models, and permissions in a readable, document-friendly structure.

Why are my project-specific OpenCode settings not overriding global configurations?

Project-specific OpenCode settings may not override global configurations if the file format is invalid or schema verification fails. Use validation scripts to check settings against the current configuration schema.