franky47/dotfiles/create-agent
Claude Code and agent skill by franky47/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Guide for creating custom OpenCode agents using markdown files with YAML frontmatter
Install
npx vskill@latest install franky47/dotfiles/create-agentSKILL.md
The same SKILL.md was published earlier as franky47/dotfiles/create-agent.
Create Agent
Create custom OpenCode agents using markdown files with YAML frontmatter - the preferred method for readability and version control.
Markdown Format (Recommended)
Create ~/.config/opencode/agents/my-agent.md:
File locations:
- Global:
~/.config/opencode/agents/*.md - Project:
.opencode/agents/*.md
Key Configuration
| Option | Description | Example | |
|---|---|---|---|
description | When to use this agent (required) | "Code reviewer" | |
mode | primary (Tab-switchable) or subagent (@mention) | subagent | |
permission | Tool access control: allow, ask, or deny | edit: deny | |
temperature | 0.0-1.0 (lower=focused) | 0.3 |
Common Patterns
Read-Only Research Agent
Restricted Primary Agent
Code Review Subagent
Prompt Design
Effective prompts include:
- Clear role: "You are a..."
- Responsibilities: "Your tasks are..."
- Constraints: "You MUST NOT..."
- Output format: "Structure responses as..."
- Examples: 1-2 sample interactions
- Tone guidelines: "Be concise and professional."
Tool Reference
Common permissions to configure:
read/grep/glob- Code explorationedit/bash- File operations (deny for safety)webfetch/websearch- Internet accesstask- Invoking other subagentsquestion- Interactive user prompts
Use allow, ask, or deny values. Use object syntax for granular control:
Permissions
Control approvals in YAML:
Permission Key for File Writes
Important: Theeditkey controls ALL file modification tools:edit,write,patch, andmultiedit.There is no separate `write:` key — it is silently ignored if present. Always useedit:to restrict file writes.
Wildcard Path Patterns
Gotcha:**is NOT a true globstar — it requires a literal/separator to work. Use*.mdfor filesdirectly inside a directory; use**/*.mdonly when files are guaranteed to be in subdirectories.
Rule Evaluation Order
Last matching rule wins. Always put the "*" catch-all first, specific overrides after:
external_directory and edit: Are Independent
Gotcha:external_directoryonly gates access to out-of-project paths. Theedit:permission rulesstill run independently on top. You must configure both for agents that write to paths outside the project.
Best Practices
- Start restrictive: Read-only by default
- Use `edit: deny` to block all file writes (not
write: deny— that key doesn't exist) - Use `*.md` not `/*.md`** for files directly inside a directory
- Configure both `external_directory` and `edit:` when writing outside the project root
- Specific descriptions: Help model know when to invoke
- Test incrementally: Verify tool access works
- Iterate: Refine prompts based on usage
Full Example
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdot-config/opencode/skills/create-agent/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/franky47/dotfiles/create-agent)