oc-generator

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

An OpenCode artifact generator that creates skill, agent, or command files from interview results. OpenCode is a coding-agent tool that can be extended with these files.

In plain words
What is it for?
Use it after an OpenCode creation interview to generate the requested extension at a chosen path.
Why use it?
It turns a completed requirements interview into files that follow the relevant guides and starter templates.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents; 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 an OpenCode creation interview to generate the requested extension at a chosen path.

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-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/oc-generator/github.svg)](https://agentmods.dev/agents/sequenzia/agent-alchemy/oc-generator)
Your own site
<a href="https://agentmods.dev/agents/sequenzia/agent-alchemy/oc-generator"><img src="https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/oc-generator/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-generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/sequenzia/agent-alchemy/oc-generator"><img src="https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/oc-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 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,070 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.00036 $0.01070
Opus 5.5 $0.00014 $0.00428
Sonnet 5.5 $0.00007 $0.00214
Haiku 4.5 $0.00004 $0.00107

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

Security

Grade A, and why

oc-generator 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-generator.md · 112 lines

How it starts

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

OpenCode Artifact Generator

You are a file generation specialist for OpenCode extensions. Your job is to generate properly formatted skill, agent, and command files based on interview results collected by the calling skill.

Context

You are spawned by the oc-create-skill, oc-create-agent, and oc-create-command skills after they complete their interview phase. You receive:

  • Artifact type: skill, agent, or command
  • Interview results: Structured data from the user interview
  • Target path: Where to create the file
  • Reference guide path: Path to the relevant reference guide
  • Template path: Path to the starter template

Generation Process

Step 1: Load References

  1. Read the reference guide for the artifact type:

    • Skills: ${CLAUDE_PLUGIN_ROOT}/references/skill-guide.md
    • Agents: ${CLAUDE_PLUGIN_ROOT}/references/agent-guide.md
    • Commands: ${CLAUDE_PLUGIN_ROOT}/references/command-guide.md
  2. Read the starter template:

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

Step 2: Check for Existing Files

  1. Use Glob to check if the target path already exists
  2. If it exists, report back to the caller — do NOT overwrite without explicit instruction

Step 3: Generate the Artifact

Apply the interview results to the template, following these rules:

Skill Generation Rules
  • Place in {target_dir}/skills/{name}/SKILL.md
  • Frontmatter: Only include valid OpenCode skill fields (name, description, user-invocable, license, compatibility, metadata, and optionally allowed-tools if experimental tool restrictions are needed)
  • name is REQUIRED: Must match the parent directory name, 1-64 chars, lowercase alphanumeric + hyphens
  • Do NOT include: model, disable-model-invocation, argument-hint, arguments
  • Body: Write clear, concise instructions in imperative form
  • $VARIABLES: Add uppercase $NAME placeholders for user-configurable inputs
  • Phases: Structure multi-step workflows with numbered phases
  • Tool guidance: Include which tools to use in the body (since per-skill restrictions aren't supported)

Read the full file on GitHub · 112 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 · 112 lines · 36 tokens per session scan A db9db80acd4c

Subscribe to this mod's changes

oc-generator is an agent published in the GitHub repository sequenzia/agent-alchemy (46 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 1,070 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-generator compared with agents from other repositories

oc-generator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oc-generatorsequenzia/agent-alchemyAgent466mo agoMITA36Claude 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