OpenCode: OpenCode Skills System

Last updated: 2026-08-31

--- title: OpenCode Skills and Usage description: Learn the Skills system with predefined specialized workflow capabilities order: 18 lang: en

Skills are OpenCode's predefined ability system, providing AI with specialized workflows and knowledge.

1. What You Will Learn


2. What are Skills

Skills are predefined prompt templates + workflows + knowledge bases that give AI specialized capabilities in specific domains.

Feature Description
On-demand loading Not pre-loaded, triggered by keywords
Templated Standardized workflows
Reusable One Skill works across multiple projects
Extensible Develop custom Skills

3. Skills Trigger Mechanism

Trigger Keywords Loaded Skill
"new feature", "develop", "module" brainstorming
"error", "failed", "bug", "exception" systematic-debugging
After plan approval writing-plans
"done", "fixed", "completed" verification-before-completion
Script writing, logic changes test-driven-development
Before commit requesting-code-review
Batch translation, multi-language subagent-driven-development

4. Core Skills

Skill Purpose
brainstorming Explore intent, needs, and design before creative work
writing-plans Convert specs into step-by-step implementation plans
executing-plans Execute plans step by step without deviation
systematic-debugging Understand root cause before fixing—don't guess
test-driven-development Write failing test → minimal impl → pass (RED-GREEN-REFACTOR)
verification-before-completion Run verification before claiming done—evidence before assertion
requesting-code-review Pre-commit security scan + quality gate + auto-fix
subagent-driven-development Dispatch sub-agents for parallel batch tasks

5. Custom Skills

Skills directory: ~/.config/opencode/skills/ (global) or .opencode/skills/ (project)

Each Skill is a Markdown file with frontmatter defining name, description, and triggers, plus body content with the workflow instructions.


❓ FAQ

Q Are Skills auto-loaded?
A No. Skills load on-demand when task keywords match. This saves tokens.
Q Skills vs AGENTS.md?
A AGENTS.md is project rules (what not to do); Skills are workflows (how to do specific tasks). They complement each other.

📖 Summary


📝 Exercises

  1. Basic: Trigger the brainstorming Skill in TUI and experience structured brainstorming.

  2. Intermediate: Trigger systematic-debugging Skill to debug a bug systematically.

  3. Advanced: Develop a custom Skill defining your team's code review workflow.

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏