command-creator

A skill for creating custom OpenCode commands, which are named prompts for repeatable tasks. It describes command files, arguments, shell output, included files, and configuration locations.

In plain words
What is it for?
Creating project or global commands such as test runners, using files or shell output in prompts, and configuring command behavior.
Why use it?
It turns recurring instructions into commands that can be run again with arguments and workspace context.

Skill for Claude CodeCodex

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/command-creator
Any agent
npx skills add grahamton/merchGent --skill command-creator
Clone the repo
git clone --depth 1 https://github.com/grahamton/merchGent

Made for: Claude Code, Codex.

Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,825 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 $0.00014 $0.01825
Opus 5 $0.00007 $0.00912
Sonnet 5 $0.00003 $0.00365
Haiku 4.5 $0.00001 $0.00183

Measured 2d ago against content hash fa6325505859, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

command-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 2d 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.

.opencode/skills/command-creator/SKILL.md · 353 lines

How it starts

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

Quick Usage (Already Configured)

Create a new command file

mkdir -p .opencode/commands

Create .opencode/commands/<name>.md with frontmatter and a prompt template.

Command file example

---
description: Run tests with coverage
agent: build
model: gpt-5.2-codex
---

Run the full test suite with coverage report and show any failures.
Focus on the failing tests and suggest fixes.

Prompt config essentials

  • Use $ARGUMENTS for all arguments, or $1, $2, $3 for positional args.
  • Use !\command`` to inject shell output into the prompt.
  • Use @path/to/file to include file contents in the prompt.

Notes from OpenCode docs

  • Command files live in .opencode/commands/ (project) or ~/.config/opencode/commands/ (global).
  • The markdown filename becomes the command name (e.g., test.md/test).
  • JSON config also supports commands in opencode.json under command.
  • Custom commands can override built-ins like /init, /undo, /redo, /share, /help.

Reference

Follow the official OpenCode command docs: https://opencode.ai/docs/commands/ Use the docs as the escape hatch when unsure.

Docs snapshot

Skip to content OpenCode

Search ⌘ K Intro Config Providers Network Enterprise Troubleshooting Migrating to 1.0 TUI CLI Web IDE Zen Share GitHub GitLab Tools Rules Agents Models Themes Keybinds Commands Formatters Permissions LSP Servers MCP servers ACP Support Agent Skills Custom Tools SDK Server Plugins Ecosystem On this page Overview Create command files Configure JSON Markdown Prompt config Arguments Shell output File references Options Template Description Agent Subtask Model Built-in Commands Create custom commands for repetitive tasks.

Custom commands let you specify a prompt you want to run when that command is executed in the TUI.

/my-command

Custom commands are in addition to the built-in commands like /init, /undo, /redo, /share, /help. Learn more.

Create command files Create markdown files in the commands/ directory to define custom commands.

Read the full file on GitHub · 353 lines

Files

What ships with it

2 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. 2d ago First seen · 353 lines · 14 tokens per session scan A fa6325505859

Subscribe to this mod's changes

command-creator is a skill published in the GitHub repository grahamton/merchGent (0 stars, last pushed 4mo ago), licensed MIT. It adds 14 tokens to every session and 1,825 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