{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "opencode-snippets Configuration",
"description": "Configuration file for the opencode-snippets plugin",
"type": "object",
"definitions": {
"booleanSetting": {
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["enabled", "disabled"] }],
"description": "Boolean setting that accepts true, false, \"enabled\", or \"disabled\""
}
},
"properties": {
"$schema": {
"type": "string",
"description": "JSON Schema URL for editor autocompletion"
},
"logging": {
"type": "object",
"description": "Logging settings",
"properties": {
"debug": {
"$ref": "#/definitions/booleanSetting",
"default": false,
"description": "Enable debug logging to file. Logs are written to $XDG_DATA_HOME/opencode/log/snippets/daily/ (or ~/.local/share/opencode/log/snippets/daily/ when unset)."
}
},
"additionalProperties": false
},
"experimental": {
"type": "object",
"description": "Experimental features (may change or be removed in future versions)",
"properties": {
"skillRendering": {
"$ref": "#/definitions/booleanSetting",
"default": false,
"description": "Enable skill rendering with name or syntax. When enabled, skill tags are replaced with the skill's content body. Skills are loaded from OpenCode's standard skill directories."
},
"skillLoading": {
"$ref": "#/definitions/booleanSetting",
"default": false,
"description": "Enable $id and #skill(name) syntax. When enabled, the visible user message shows a ↳ Loaded name placeholder while the model receives an OpenCode-style payload inserted immediately after that message."
},
"injectBlocks": {
"$ref": "#/definitions/booleanSetting",
"default": false,
"description": "Enable ... blocks for persistent context messages. When enabled, inject blocks in snippets are sent as separate user messages that persist throughout the agentic loop."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}