opencode-agent-creator
Skill2 starsChanged 8 months agoMITView on GitHub
Expert guide for creating, configuring, and managing Opencode Agents. Use this skill when the user wants to create a new agent or modify an existing one. Only works for opencode agents.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- tumf/skillstheir own version, first seen Mar 24, 2026
- julweber/ai_agent_skillsword for word, first seen Mar 20, 2026
Other versions2 projects use a version of this.
Word for word · 1
- julweber/ai_agent_skills★ 2100% same
Edited · 0
None found.
Wrote their own version · 1
- tumf/skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-agent-skills-assistantSkill
- ansibleSkill
- artificial-analysisSkill
- cavemanSkill
- claude-cliSkill
- code-doctorSkill
- code-summarizerSkill
- codex-cliSkill
- concourse-ciSkill
- dev-brainstormingSkill
- docker-cliSkill
- file-organizerSkill
- frontend-web-developerSkill
- github-actions-cicdSkill
- github-cliSkill
- gitlab-ci-cdSkill
- grill-meSkill
- gtd-assistantSkill
- herdr-cliSkill
- hf-cliSkill
- karpathy-guidelinesSkill
- kestraSkill
- list-large-filesSkill
- list-most-intensive-processesSkill
- llama-cppSkill
- llm-wikiSkill
- mermaidSkill
- morning-ritualSkill
- obsidian-masterSkill
- obsidian-open-loops-collectorSkill
- opencode-cliSkill
- pi-cliSkill
- pi-subagents-masterSkill
- planka-development-flowSkill
- plnk-cliSkill
- ponytailSkill
- product-prd-brainstormingSkill
- python-api-developerSkill
- ralph-prd-converterSkill
- ralph-prd-generatorSkill
- release-managementSkill
- rest-testsuite-skillSkill
- skill-loaderSkill
- design-taste-frontendSkill
- terraformSkill
- tmux-coderSkill
- tmux-specialistSkill
- trello-cliSkill
- tts-conversationSkill
- uvSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Create new Primary or Subagents.
- Distinctive: line 21
If the user hasn't provided all details, ask for:
- Very specific: line 30
Create a Markdown file (e.g., agent-name.md).
- Very specific: line 69
Check Directory: Ensure the target directory exists (mkdir -p).
- Very specific: line 70
Write File: Use the write tool to save the file.
- Distinctive: line 79
write - Create new files or overwrite existing ones
- Distinctive: line 80
read - Read file contents from your codebase
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
This skill provides the knowledge and procedures to create Opencode Agents. Agents are defined using Markdown files with YAML frontmatter for configuration and the file body for the system prompt.
Capabilities
- Create new Primary or Subagents.
- Configure agent permissions (tools, bash, tasks).
- Set model parameters (temperature, specific models).
- Save agent definitions to Project (
.opencode/agent/) or Global (~/.config/opencode/agent/) scopes.
Usage
1. Gather Requirements
If the user hasn't provided all details, ask for:
- Scope: Assume Global (
~/.config/opencode/agent/) unless the user explicitly requests "Project" scope. - Name: What should the agent be called? (e.g.,
security-auditor,react-expert) - Role/Goal: What is the agent's primary purpose?
- Mode:
primary(full interaction) orsubagent(specialized task)? - Tools: What tools should be enabled/disabled? (e.g.,
bash: false,write: false)
2. Construct the Agent File
Create a Markdown file (e.g., agent-name.md).
File Location
- Global:
~/.config/opencode/agent/<agent-name>.md(Default) - Project:
.opencode/agent/<agent-name>.md(Only if requested)
File Format
The file MUST start with YAML frontmatter followed by the system prompt.
---
description: <Short description for the UI/autocomplete>
mode: <primary|subagent>
model: <optional: specific-model-id>
temperature: <optional: 0.0-1.0>
hidden: <optional: true|false> (Only for subagents)
tools:
<tool_name>: <true|false>
# Examples:
# bash: false
# write: true
permission:
<tool_name>: <allow|ask|deny>
# bash permissions can be granular:
# bash:
# "git status": allow
# "*": ask
---
<System Prompt Body>
You are the <Agent Name>. Your goal is...
Instructions:
- ...
- ...3. Execution
- Check Directory: Ensure the target directory exists (
mkdir -p). - Write File: Use the
writetool to save the file. - Confirm: Inform the user the agent has been created and how to use it (e.g., "Switch using Tab" or "Invoke via @name").
Configuration Reference
built-in tools in opencode
- bash - Execute shell commands in your project environment
- edit - Modify existing files using exact string replacements
- write - Create new files or overwrite existing ones
- read - Read file contents from your codebase
- grep - Search file contents using regular expressions
- glob - Find files by pattern matching
- list - List files and directories in a given path
- lsp - Interact with your configured LSP servers to get code intelligence features like definitions, references, hover info, and call hierarchy (experimental)
- patch - Apply patches to files
- skill - Load a skill (a SKILL.md file) and return its content in the conversation
- todowrite - Manage todo lists during coding sessions
- todoread - Read existing todo lists
- webfetch - Fetch web content
- websearch - Search the web for information
- question - Ask the user questions during execution
Permissions
- Tools:
edit,bash,webfetchcan be set toask,allow, ordeny. Task: Control which subagents can be called.
permission: task: "*": deny "specific-agent": allow
Models
Common overrides:
- Planning: Lower temperature (0.1)
- Creative: Higher temperature (0.7)
References
- Opencode agents documentation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

