一键导入
create-skill
Create opencode skills with correct structure, frontmatter, naming, and placement
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create opencode skills with correct structure, frontmatter, naming, and placement
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | create-skill |
| description | Create opencode skills with correct structure, frontmatter, naming, and placement |
Create opencode skills following these rules.
https://opencode.ai/docs/skills.md
config/opencode/skills/<name>/SKILL.md (nix-managed, symlinked to ~/.config/opencode/skills/<name>/SKILL.md).
OpenCode also scans .opencode/skills/, .claude/skills/, .agents/skills/ walking up from cwd to git root. Global: ~/.config/opencode/skills/, ~/.claude/skills/, ~/.agents/skills/.
YAML frontmatter required:
name — must match directory namedescription — max 1024 chars, specific enough for agent selectionOptional: license, compatibility, metadata (string map). Unknown fields ignored.
^[a-z0-9]+(-[a-z0-9]+)*$Skills appear in skill tool description as <available_skills> list (name + description). Agent calls skill({ name: "skill-name" }) to load full content into context.
Trust precise names over explanations. Flat lists over nesting.
Pattern-based, configured in opencode.json:
allow — loads immediatelydeny — hidden from agentask — user approves before loading{
"permission": {
"skill": {
"*": "allow",
"internal-*": "deny",
"experimental-*": "ask"
}
}
}
Custom agents (frontmatter): permission: { skill: { "pattern": "allow" } }
Built-in agents (opencode.json): agent: { "agent-name": { permission: { skill: { "pattern": "allow" } } } }
Custom agents: tools: { skill: false }
Built-in agents: agent: { "agent-name": { tools: { skill: false } } }
Omits <available_skills> section entirely.
SKILL.md all capsname + description