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.
npx agentmods add skills/pr-pm/prpm/creating-opencode-agentsnpx skills add pr-pm/prpm --skill creating-opencode-agentsgit clone --depth 1 https://github.com/pr-pm/prpmWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00034 | $0.01986 |
| Opus 5 | $0.00017 | $0.00993 |
| Sonnet 5 | $0.00007 | $0.00397 |
| Haiku 4.5 | $0.00003 | $0.00199 |
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 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.
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-20250514) |
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 keysubagent: Specialized assistant invoked by primary agents or@mentionsall: 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-20250514
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
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.
- 2d ago First seen · 345 lines · 34 tokens per session scan A b27c880e2a65
creating-opencode-agents is a skill published in the GitHub repository pr-pm/prpm (120 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 1,986 once invoked, about $0.0002 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-30.
Other skills, from other repositories
implement-fastapi-routes
The file docstring contains a description of the FastAPI routes we need to implement. Implement these routes.
react-router-client-loader
Do this in a clientLoader and use loaderData to render the component. DO NOT create mock data, new interfaces, or mock data loader functions. Instead, assume loaderData has all of the data you need to render the component.
refactor-on-instructions
Refactor this code following all the established coding rules. Pay very careful attention to each rule and instruction and update the referenced code.
architecture
Architecture Design Command 🏗️.
biome
Biome JavaScript/TypeScript linter and formatter.
laravel
Laravel PHP framework best practices.