opencode-agent-creator-skill: The Markdown Factory for Building Better Agents

A meta-skill that turns OpenCode into an agent-making system, with schemas, workflows, permission patterns, and self-audits instead of ad hoc prompts.

10 min read • View on GitHub • More from rodrigolagodev

A wide workshop scene where a craftsperson feeds a blueprint into a press that stamps out several agent dossiers. Templates, permission seals, and audit checklists sit around the table like tools in a print shop. The image explains the repo’s central idea: agent creation becomes a repeatable manufacturing process, not a one-off prompt.
The repo treats agent creation like production line work: inputs, constraints, and review steps shape the output before it ever reaches the user.
Key Takeaways

A Skill That Writes Skills

The weird thing about opencode-agent-creator-skill is that it does not try to be a generator in the usual sense. It does not lean on a script to stamp out files. It uses Markdown, YAML frontmatter, and workflow documents to teach an LLM how to manufacture other agent definitions.

That makes the repo feel less like a tool and more like a process spec. The LLM is the runtime. The repository is the contract.

That is the thesis worth keeping in view. The project is not saying code is bad. It is saying that when the target system is already conversational and probabilistic, the safest generator may be a documented procedure with constraints, examples, and review steps.

The Architecture Is Documentation

The file tree is the product. SKILL.md acts as the orchestrator. templates/ holds reusable blueprints. references/ defines schema, tool policy, and anti-patterns. workflows/ describes the sequence of actions the LLM should follow when creating, auditing, or upgrading an agent.

The repo’s logic is staged: request, triage, schema, permissions, review, output. The point is not raw generation, but controlled transformation.

That structure matters because there is no hidden application layer doing the hard work behind the curtain. The logic is expressed in documents the model can read and follow. In practice, the repo turns file organization into behavior.

SKILL.md
├─ templates/
│  ├─ db-admin.md
│  ├─ security-auditor.md
│  └─ ...
├─ references/
│  ├─ frontmatter-spec.md
│  ├─ permission-patterns.md
│  └─ anti-patterns.md
└─ workflows/
   ├─ create-new-agent.md
   ├─ audit-agent.md
   └─ upgrade-agent.md

Why Markdown Beats a Script Here

A script can generate files fast. A workflow can ask questions, interpret gaps, and adapt to nuance. That difference is the whole argument here.

ApproachStrengthWeak spotBest use
Ad hoc prompt-based agentsQuick to startDrifts fast, hard to reproduceExploration and prototypes
Scripted code generationDeterministic outputRigid when requirements are fuzzyStable, narrow transforms
Documentation-driven workflowReadable, auditable, adaptableDepends on the model following instructionsAgent creation with context and policy
A close-up of a hand placing a transparent stencil over a frontmatter document. Through the stencil, schema fields and example blocks snap into alignment while a second hand closes a permission gate labeled bash: deny. The image explains how structure and least-privilege controls shape the agent before it is written.
The repo’s discipline is visible at the document level. Schema and permission patterns do the work that a more permissive prompt would leave to chance.

The Guardrails: Context, Permissions, and Audit Loops

This is where the project stops being clever and starts looking mature. The research points to a context-first principle, strict frontmatter schema, permission patterns that prefer least privilege, and a self-correction loop that grades outputs against a rubric.

The point is not just safety. It is consistency. Open-ended agent creation tends to fail in the same ways: too many tools, vague behavior, inconsistent file formats, and hand-wavy instructions that are impossible to audit later.

This plugin adds an `agent-create` tool that lets the LLM create reusable, specialized agents without leaving your conversation.

Igor Warzocha, Project Creator · IgorWarzocha/Opencode-Agent-Creator-Plugin

That quote describes the broader category well. This repo’s twist is to make that creation path explicit, documented, and reviewable. Instead of trusting the model to improvise a good agent spec, it forces the model through a sequence: gather context, choose a template, apply schema, constrain tools, then audit the result.

GuardrailUnsafe patternSafer pattern
Context handlingAct on partial instructionsPause and request missing details
Tool accessGive the agent broad defaultsDeclare a narrow allow list
SchemaLet metadata driftUse a fixed frontmatter shape with examples
Quality controlAccept first-pass outputRun an audit and self-correction loop

What It Means to Build Professional-Grade Agents

The larger idea here is not about one repository. It is about what happens when teams stop treating agents like prompts and start treating them like artifacts. Artifacts have schemas. They have permissions. They have review steps. They have naming conventions and upgrade paths.

That shift matters because agent systems fail in organizational ways, not just technical ones. The problem is rarely that the model cannot write text. The problem is that no one has agreed on the shape of the text, who can invoke which tools, or how to tell if the output is safe enough to ship.

This repo answers with process. Not glamorous process. The kind that keeps things understandable when more people touch the system.

Maturity signalWhat it means
Templates as first-class assetsReusable roles instead of one-off prompts
References as policyBehavior is documented, not tribal
Workflows as state machinesCreation follows a predictable path
Audit loopsThe system can correct itself before it is trusted