← Back to list

agent-creator
by patrickhaahr
i use arch and neovim btw
⭐ 0🍴 0📅 Jan 19, 2026
SKILL.md
name: agent-creator description: 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.
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
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)
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon