Version: 1.3.0 Last Updated: 2026-01-13
This directory provides resources for integrating Universal Dev Standards with OpenCode.
Op 8F77 enCode is an open-source AI coding agent that can run as a terminal interface, desktop app, or IDE extension. This integration helps OpenCode understand your project and follow development standards.
-
AGENTS.md (Required): Project-level rules file, automatically loaded by OpenCode.
-
skills-mapping.md (Reference): Maps all 18 Claude Code skills to OpenCode equivalents.
-
opencode.json (Optional): Configuration example with permission settings and custom agents.
OpenCode supports multiple configuration levels:
| Type | File Location | Description |
|---|---|---|
| Project Rules | AGENTS.md |
Project root, auto-loaded |
| Global Rules | ~/.config/opencode/AGENTS.md |
Personal rules for all projects |
| Project Config | opencode.json |
JSON configuration |
| Global Config | ~/.config/opencode/opencode.json |
Global JSON config |
| Custom Agents | .opencode/agent/*.md |
Project-level agents |
| Global Agents | ~/.config/opencode/agent/*.md |
Global agents |
# Copy to your project root
cp integrations/opencode/AGENTS.md AGENTS.md
# Optional: Copy config file
cp integrations/opencode/opencode.json opencode.jsoncurl -o AGENTS.md https://raw.githubusercontent.com/AsiaOstrich/universal-dev-standards/main/integrations/opencode/AGENTS.mdopencode
/initNote: /init will append to existing AGENTS.md, not overwrite.
# Install UDS CLI globally
npm install -g universal-dev-standards
# Initialize project - select OpenCode as your AI tool
uds init
# Skills will be installed to .claude/skills/ (auto-detected by OpenCode)New in v3.5.0: OpenCode is now treated as a skills-compatible tool in the CLI. When only OpenCode (or Claude Code) is selected, minimal installation with skills is automatically offered.
Use uds check to verify your installation status and skills compatibility.
OpenCode's rule merging mechanism:
| Situation | Behavior |
|---|---|
/init with existing AGENTS.md |
Append new content, don't overwrite |
| Global + Project rules both exist | Merge both, project rules take precedence |
| Config files (opencode.json) | Merge, only conflicting keys are overwritten |
{
"$schema": "https://opencode.ai/config.json",
"instructions": ["AGENTS.md", "CONTRIBUTING.md"],
"permission": {
"edit": "ask",
"bash": "ask"
},
"agent": {
"code-reviewer": {
"description": "Reviews code following standards",
"mode": "subagent",
"tools": {"write": false, "edit": false}
}
}
}Key Options:
instructions: Reference additional rule files (useful for monorepos)permission: Require user confirmation for edits and bashagent: Define custom agents with specific capabilities
OpenCode is fully compatible with Claude Code skills. All 18 UDS skills work without modification.
| Claude Code | OpenCode |
|---|---|
CLAUDE.md |
AGENTS.md |
.claude/skills/ |
.opencode/skill/ (also reads .claude/skills/) |
settings.json |
opencode.json |
OpenCode searches for skills in this order:
.opencode/skill/<name>/SKILL.md(project)~/.config/opencode/skill/<name>/SKILL.md(global).claude/skills/<name>/SKILL.md(Claude-compatible ✅)
# Test skill loading in OpenCode
opencode
/commit # Should load commit-standards skillFor complete skills mapping and installation methods, see skills-mapping.md
| Version | Date | Changes |
|---|---|---|
| 1.3.0 | 2026-01-13 | Added UDS CLI installation option; OpenCode now skills-compatible in CLI |
| 1.2.0 | 2026-01-13 | Added skills-mapping.md; simplified README |
| 1.1.0 | 2026-01-13 | Added Claude Code migration guide |
| 1.0.0 | 2026-01-09 | Initial OpenCode integration |
This document is released under CC BY 4.0.