OpenCode Platform Customization

VerifiedSafe

Authoritative reference for OpenCode (sst/opencode) customization in gald3r projects. Covers .opencode/ layout, plugins, skills, MCP, and install verification.

Sby Skills Guide Bot
DevelopmentIntermediate
8/5/2026
Claude Code
#opencode#platform-integration#agent-config#skills-discovery#mcp

Recommended for

Automated summary

A reference documenting OpenCode (sst/opencode) customization in gald3r projects: the .opencode/ folder layout, opencode.json config, native skill discovery, AGENTS.md/CLAUDE.md instructions, JS/TS plugins, MCP, and install verification.

Strengths

  • Covers native lifecycle hooks through JS/TS plugins in .opencode/plugins/ (20 events including tool.execute.before/after and session.created)
  • Explains Agent Skills discovery across three directories (.opencode/skills, .claude/skills, .agents/skills)
  • Details local and remote MCP configuration with {env:}/{file:} substitution in opencode.json
  • Ships freshness metadata (crawl_max_age_days, last_doc_scan) and a help contract that avoids state writes on -h/--help

Limitations

  • OpenCode-only: gald3r g-hk-*.py Python hooks need a JS/TS shim and there is no first-class git pre-commit event
  • No glob-scoped rule engine comparable to .mdc, so conditional instruction targeting is limited
  • Accuracy is tied to the docs scan date and requires periodic re-crawling
When to use it

Use it to configure or verify OpenCode in a gald3r project: writing opencode.json, plugins, AGENTS.md, or MCP servers.

When not to use it

Avoid it for other platforms (Claude Code, Cursor) or for coding tasks unrelated to OpenCode customization.

Security analysis

Safe
Quality score74/100

The file is purely a documentation-style reference for OpenCode configuration. It contains no executable instructions, no destructive commands, no secret/credential handling, no obfuscation, and no attempt to disable safety controls. The only 'code-like' elements (`!bash` frontmatter, JS/TS plugin hooks) are described as features of the target platform rather than actions the agent is told to run. With no declared tools and no operational body, the listing risk is minimal.

Findings
  • •References external documentation URLs (opencode.ai/docs) but only as pointers, not fetched/executed by the skill
  • •Mentions OpenCode's `!bash` command frontmatter feature descriptively — no actual shell command is instructed
  • •No declared allowed-tools and no executable payload; content is a documentation/reference index
How this analysis is made

Examples

Add an MCP server
Add a local MCP server to my opencode.json that reads the GitHub token from {env:GITHUB_TOKEN} and explain how remote servers are configured.
Skills discovery check
Where does OpenCode look for SKILL.md files, and will it pick up the skills already in my .claude/skills directory?
Plugin hook
Write a .opencode/plugins/ JS plugin that hooks tool.execute.before to log every shell command before it runs.

name: g-skl-platform-opencode description: Authoritative reference for OpenCode (sst/opencode) customization in gald3r projects. Covers .opencode/ folder layout, opencode.json config, native skills discovery (.opencode/skills/ + .claude/skills/ + .agents/skills/), AGENTS.md/CLAUDE.md instructions, JS/TS plugin hooks, MCP, and gald3r install verification. crawl_max_age_days: 7 vault_doc_path: research/platforms/opencode/ vault_docs_url: https://opencode.ai/docs docs_url: https://opencode.ai/docs docs_url_secondary:

  • https://opencode.ai/docs/plugins/
  • https://opencode.ai/docs/agents/
  • https://opencode.ai/docs/skills/
  • https://opencode.ai/docs/commands/
  • https://opencode.ai/docs/rules/
  • https://opencode.ai/docs/mcp-servers/ last_doc_scan: 2026-06-02 capability_status: hooks: "✅ native lifecycle hooks via JS/TS plugins in .opencode/plugins/ (20 events incl. tool.execute.before/after, session.created, file.edited); gald3r g-hk-.py (python <path>) need a JS/TS shim; no first-class git pre-commit event" rules: "✅ AGENTS.md primary (CLAUDE.md fallback; AGENTS.md wins if both local) + opencode.json instructions array; no .mdc glob-scoped rule engine" skills: "✅ Agent Skills (SKILL.md) loaded on-demand via native skill tool; discovered in .opencode/skills / .claude/skills / .agents/skills" commands: "✅ custom commands .opencode/commands/.md ($ARGUMENTS/$1 + !bash; frontmatter description/agent/model/subtask)" agents: "✅ native primary agents (Build/Plan) + subagents (General/Explore/Scout) in .opencode/agents/ or opencode.json; @mention + Task tool" mcp: "✅ native — mcp field in opencode.json (local + remote), {env:}/{file:} substitution" token_budget: low subsystem_memberships: [PLATFORM_INTEGRATION]

HELP CONTRACT (T442 — cross-platform, non-substitutable)

If the invoking command's arguments are EXACTLY -h, --help, or help (one token, nothing else): do NOT run any operation of this skill. Respond ONLY with a compact usage card — the command's name, its one-line purpose, each documented argument/option on its own line (or "none"), and the path to its command file — then STOP. Read-only: no .gald3r/ writes, no state changes, no task/bug creation. This block lives in the SKILL (not a rule) because skills are the execution layer on every supported platform; rules are optional context on most.

Provisioned by gald3r platform install. Documentation: https://docs.gald3r.ai

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/opencode-platform-customization-msfn1a3a/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/opencode-platform-customization-msfn1a3a' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/opencode-platform-customization-msfn1a3a/download' --output '.skill-downloads/opencode-platform-customization-msfn1a3a/SKILL.md.part' && mv '.skill-downloads/opencode-platform-customization-msfn1a3a/SKILL.md.part' '.skill-downloads/opencode-platform-customization-msfn1a3a/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/opencode-platform-customization-msfn1a3a/SKILL.md' && test -s '.skill-downloads/opencode-platform-customization-msfn1a3a/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/g-skl-platform-opencode' && cp -R '.skill-downloads/opencode-platform-customization-msfn1a3a' '.claude/skills/g-skl-platform-opencode'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/opencode-platform-customization-msfn1a3a'

openskills read 'opencode-platform-customization-msfn1a3a'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/opencode-platform-customization-msfn1a3a/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills