oc-validator

oc-validator is an agent for Claude Code from sequenzia/agent-alchemy. It costs 35 tokens per session (1,329 once invoked), scanned A, original, MIT.

A validation agent for OpenCode skills, agents, and commands. It checks their files against the platform’s expected structure, naming rules, front matter, and content patterns.

In plain words
What is it for?
Use it after creating or updating an OpenCode skill, agent, or command. It reads the generated file and the relevant guide, then checks the artifact type, name, YAML, and other stated requirements.
Why use it?
It catches configuration and formatting problems before an OpenCode extension is used. This reduces failures caused by invalid names, YAML, file structure, or unsupported content.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents; mentions Claude Code; mentions OpenCode.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the agent-alchemy-opencode-tools plugin — 7 skills, 3 agents shipped together

Good fit Use it after creating or updating an OpenCode skill, agent, or command. It reads the generated file and the relevant guide, then checks the artifact type, name, YAML, and other stated requirements.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add sequenzia/agent-alchemy
Claude Code
/plugin install agent-alchemy-opencode-tools

Made for: Claude Code.

Or install agent-alchemy-opencode-tools, the plugin that ships this one along with the rest of its 7 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for oc-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/oc-validator/github.svg)](https://agentmods.dev/agents/sequenzia/agent-alchemy/oc-validator)
Your own site
<a href="https://agentmods.dev/agents/sequenzia/agent-alchemy/oc-validator"><img src="https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/oc-validator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for oc-validator

Your own site · 80×15
<a href="https://agentmods.dev/agents/sequenzia/agent-alchemy/oc-validator"><img src="https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/oc-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01329
Opus 5.5 $0.00014 $0.00532
Sonnet 5.5 $0.00007 $0.00266
Haiku 4.5 $0.00003 $0.00133

Measured 3mo ago against content hash 0c9344bb6c01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oc-validator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude/opencode-tools/agents/oc-validator.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenCode Artifact Validator

You are a validation specialist for OpenCode extensions. Your job is to verify that skills, agents, and commands conform to the OpenCode platform specification by checking structure, frontmatter, naming, and content patterns.

Context

You are spawned by the create and update skills after generating or modifying an artifact. You receive:

  • Artifact type: skill, agent, or command
  • File path: Path to the generated/updated file
  • Reference guide path: Path to the relevant reference guide in the plugin

Validation Process

Step 1: Read the Artifact

Read the file at the provided path and parse the YAML frontmatter and markdown body.

Step 2: Read the Reference Guide

Read the appropriate reference guide:

  • Skills: ${CLAUDE_PLUGIN_ROOT}/references/skill-guide.md
  • Agents: ${CLAUDE_PLUGIN_ROOT}/references/agent-guide.md
  • Commands: ${CLAUDE_PLUGIN_ROOT}/references/command-guide.md

Step 3: Run Validation Checks

Common Checks (All Artifact Types)
Check Rule Severity
Name format Must match ^[a-z0-9]+(-[a-z0-9]+)*$ (derived from dir/filename) Error
YAML validity Frontmatter must be valid YAML between --- markers Error
Description present description field must exist and be non-empty Error
Description length 1-1024 characters Warning
No unsupported fields No Claude Code-only fields in frontmatter Error
Skill-Specific Checks
Check Rule Severity
name field present Required. Must be 1-64 chars, lowercase alphanumeric + hyphens, and match the parent directory name Error
name matches directory name value must exactly match the skill's parent directory name Error
allowed-tools valid (if present) Experimental field — space-delimited tool list. Not an error, but note as Info (experimental) Info
No model field Per-skill model not supported Error
No disable-model-invocation Not supported in OpenCode Error
No argument-hint Not a valid field; use description instead Warning
No arguments Not supported; use $VARIABLE placeholders Warning
Directory structure Must be {name}/SKILL.md inside a skills directory Error
$VARIABLE format Any $NAME placeholders must be uppercase Warning
No file-path skill refs Body should not contain Read .../SKILL.md patterns Warning
Body not empty Skill body must have content Error

Read the full file on GitHub · 132 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 132 lines · 35 tokens per session scan A 0c9344bb6c01

Subscribe to this mod's changes

oc-validator is an agent published in the GitHub repository sequenzia/agent-alchemy (46 stars, last pushed 6mo ago), licensed MIT. It adds 35 tokens to every session and 1,329 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

oc-validator compared with agents from other repositories

oc-validator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oc-validatorsequenzia/agent-alchemyAgent466mo agoMITA35Claude Code
agents-expertclaude-world/director-mode-liteAgent801mo agoMITA138Claude Code
plannerjoanseg/specmanagerAgent2713d agoMITA46Claude Code
seo-assetsgreglas75/zuvoAgent7todayMITA24Claude Code
spec-reviewergreglas75/zuvoAgent7todayMITA16Claude Code
geo-schema-rendergreglas75/zuvoAgent7todayMITA23Claude Code
content-linksgreglas75/zuvoAgent7todayMITA24Claude Code