creating-opencode-agents

creating-opencode-agents is a skill for Claude Code from pr-pm/prpm. It costs 34 tokens per session (1,982 once invoked), scanned A, original, MIT.

A guide for creating OpenCode agents, which are specialized AI assistants configured for particular development tasks.

In plain words
What is it for?
It helps create project or global agents, choose whether they are primary or supporting assistants, set their instructions, and configure models, tools, and permissions.
Why use it?
It explains the file format, available settings, tool access, and permissions so an agent behaves as intended.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions OpenCode.

Good fit It helps create project or global agents, choose whether they are primary or supporting assistants, set their instructions, and configure models, tools, and permissions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pr-pm/prpm/creating-opencode-agents
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.

Any agent
npx skills add pr-pm/prpm --skill creating-opencode-agents
Clone the repo
git clone --depth 1 https://github.com/pr-pm/prpm

Made for: Claude Code.

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 creating-opencode-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/pr-pm/prpm/creating-opencode-agents/github.svg)](https://agentmods.dev/skills/pr-pm/prpm/creating-opencode-agents)
Your own site
<a href="https://agentmods.dev/skills/pr-pm/prpm/creating-opencode-agents"><img src="https://agentmods.dev/badge/skills/pr-pm/prpm/creating-opencode-agents/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 creating-opencode-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/pr-pm/prpm/creating-opencode-agents"><img src="https://agentmods.dev/badge/skills/pr-pm/prpm/creating-opencode-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,982 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 13
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Excessive Agency · line 265
    Skill grants unrestricted tool access without appropriate constraints. An agent with unfettered tool access can perform arbitrary actions including file modification, network requests, and code execution.
    Fix: Restrict tool access to only the tools required for the skill's stated purpose. Use an explicit allowlist rather than granting blanket access.
How audits are shown
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.00034 $0.01982
Opus 5.5 $0.00014 $0.00793
Sonnet 5.5 $0.00007 $0.00396
Haiku 4.5 $0.00003 $0.00198

Measured 28d ago against content hash 4c6b1b40d204, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

creating-opencode-agents 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 28d 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/skills/creating-opencode-agents/SKILL.md · 345 lines

How it starts

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

Creating OpenCode Agents

Expert guidance for creating OpenCode AI agents with proper configuration, tools, and permissions.

When to Use

Use when:

  • User asks to create an OpenCode agent
  • Need specialized AI assistant for specific tasks
  • Building domain-focused development tools
  • Configuring agent tools and permissions

Don't use for:

  • OpenCode plugins (use creating-opencode-plugins skill)
  • OpenCode slash commands (different format)
  • Generic AI prompts (not OpenCode-specific)

Quick Reference

File Location

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

Minimal Agent Structure

---
description: Brief explanation of the agent's purpose
mode: all
---

System prompt content here...

Required Fields

  • description (string): Brief explanation of the agent's purpose (REQUIRED)

Optional Fields

Field Type Description
mode primary | subagent | all How agent can be used (default: all)
model string Override model (e.g., anthropic/claude-sonnet-4-6)
temperature number Response randomness 0.0-1.0
prompt string Path to prompt file: {file:./path/to/prompt.txt}
maxSteps number Maximum iterations (unlimited if unset)
tools object Enable/disable tools with boolean values
permission object Tool access: ask, allow, or deny
disable boolean Deactivate the agent

Agent Modes

  • primary: Main assistant for direct interaction, switchable via Tab key
  • subagent: Specialized assistant invoked by primary agents or @mentions
  • all: Default; usable in both contexts

Common Patterns

Code Reviewer (Read-Only)

---
description: Reviews code for best practices and security
mode: subagent
model: anthropic/claude-sonnet-4-6
temperature: 0.1
tools:
  write: false
  edit: false
  bash: false
  read: true
  grep: true
  glob: true
permission:
  edit: deny
  bash: deny
---

# Code Review Agent

You are an expert code reviewer with deep knowledge of software engineering principles.

## Instructions

- Check for code smells and anti-patterns
- Verify test coverage
- Ensure documentation exists
- Review error handling and security
- Suggest improvements with examples

## Review Checklist

- [ ] Code follows project conventions
- [ ] Tests are comprehensive
- [ ] No security vulnerabilities
- [ ] Documentation is clear

Read the full file on GitHub · 345 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. 28d ago Changed 4c6b1b40d204
  2. 1mo ago First seen · 345 lines · 34 tokens per session scan A b27c880e2a65

Subscribe to this mod's changes

creating-opencode-agents is a skill published in the GitHub repository pr-pm/prpm (123 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 1,982 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

Other skills, from other repositories

best-practices

Transforms vague prompts into optimized Claude Code prompts. Adds verification, specific context, constraints, and proper phasing. Invoke with /best-practices.

MoizIbnYousaf/Ai-Agent-Skills · 35 tokens

testing-for-system-prompt-leakage

Extract and defend system prompts plus embedded secrets and routing logic.

adriannoes/awesome-agentic-ai · 21 tokens

writing-video-prompts

Writes the motion prompt for a video clip — what moves, how the camera behaves, the physics and the audio, in the shape the chosen model wants. Works from a brief alone, from a start frame, from a source video, or from a storyboard sheet where each panel becomes a cut. Handles one clip or a whole set, returning one…

SupercmoHQ/superCMO-skills · 102 tokens

red-teaming-llms-with-garak

Run NVIDIA garak probe suites against an LLM endpoint to test for jailbreaks, prompt injection, data leakage, and toxic generation, then interpret the hit-rate report for triage and reporting.

adriannoes/awesome-agentic-ai · 49 tokens

llm-prompt-optimizer

Use when improving prompts for any LLM. Applies proven prompt engineering techniques to boost output quality, reduce hallucinations, and cut token usage.

tmolavi/mcp-agent-skills-hub · 35 tokens

programasweights

Compile a natural-language spec into a tiny neural function that runs locally with ProgramAsWeights (PAW). Use it for fuzzy text-in / text-out tasks that a regex can't handle but that are too slow, costly, or overkill to send to a full LLM on every item - classify, categorize, label, or tag text (sentiment, urgency…

programasweights/skills · 215 tokens