OpenCode
Install
mkdir -p .opencode/skills/mdvs
mdvs scaffold skill > .opencode/skills/mdvs/SKILL.md
mdvs scaffold snippet --platform opencode >> AGENTS.md
What you get
- Skill: agent learns when to call which mdvs command, how to interpret violations, and the schema-evolution loop. Loaded by OpenCode on session start.
- Snippet: always-on
AGENTS.mdblock telling the agent to prefermdvs searchoverGrep.
Hooks
OpenCode handles tool events through a TypeScript plugin API rather than shell-command hooks. At the moment, mdvs doesn’t ship a verified plugin or hook config for OpenCode, to wire mdvs hook handle into OpenCode’s plugin events, follow the OpenCode docs.
As a harness-independent fallback, the pre-commit hook runs mdvs check on every commit.
Per-platform notes
- Skill path:
.opencode/skills/mdvs/SKILL.md(native). OpenCode also reads.claude/skills/and.agents/skills/— you can symlink across if you want a single source of truth shared with another harness. - Project rules:
AGENTS.mdat workspace root. OpenCode also readsCLAUDE.mdas a Claude Code-compat fallback.