agent-creator

agent-creator is a skill for OpenCode from grahamton/merchGent. It costs 22 tokens per session (317 once invoked), scanned A, original, MIT.

A helper for creating specialised OpenCode agents, which are AI agents configured for particular coding tasks. It sets GPT-5.2-Codex as the default model for new agents unless another workflow needs a different one.

In plain words
What is it for?
It is for creating project or global OpenCode agent files with defined roles, models, and tool access.
Why use it?
It avoids repeatedly writing the configuration and choosing the default model for each new agent.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions subagents; mentions Codex; mentions OpenCode.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/grahamton/merchgent/agent-creator
Any agent
npx skills add grahamton/merchGent --skill agent-creator
Clone the repo
git clone --depth 1 https://github.com/grahamton/merchGent

Made for: OpenCode.

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 agent-creator

README.md
[![agentmods](https://agentmods.dev/badge/skills/grahamton/merchgent/agent-creator.svg)](https://agentmods.dev/skills/grahamton/merchgent/agent-creator)
Your own site
<a href="https://agentmods.dev/skills/grahamton/merchgent/agent-creator"><img src="https://agentmods.dev/badge/skills/grahamton/merchgent/agent-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00022 $0.00317
Opus 5 $0.00011 $0.00159
Sonnet 5 $0.00004 $0.00063
Haiku 4.5 $0.00002 $0.00032

Measured 5d ago against content hash 2ea9ec52ac55, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

agent-creator 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 5d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (client.ts, first-call.ts, load-env.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.opencode/skills/agent-creator/SKILL.md · 52 lines

What it actually says

Quick Usage (Already Configured)

Create a project agent

opencode agent create

Agent file locations

  • Project agents: .opencode/agents/<name>.md
  • Global agents: ~/.config/opencode/agents/<name>.md

Default model

Use gpt-5.2-codex as the default model for new agents unless a workflow needs a different model.

Minimal agent template

---
description: One-line description of what the agent does
mode: subagent
model: gpt-5.2-codex
tools:
  write: false
  edit: false
  bash: false
---
You are a specialized agent. Describe your task, boundaries, and expected output.

Notes from OpenCode docs

  • Agent files are markdown with YAML frontmatter.
  • The markdown filename becomes the agent name.
  • Set mode to primary, subagent, or all.
  • If no model is specified, subagents inherit the caller model.
  • tools controls per-agent tool access.

Reference

Follow the official OpenCode agent docs: https://opencode.ai/docs/agents/

First-Time Setup (If Not Configured)

  1. Run opencode agent create and choose project scope.
  2. Paste in the default template above and adjust tools as needed.
Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 52 lines · 22 tokens per session scan A 2ea9ec52ac55

Subscribe to this mod's changes

agent-creator is a skill published in the GitHub repository grahamton/merchGent (0 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 317 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories