Overview
Skills are reusable capabilities that can be loaded by agents to perform specific tasks. Skills are defined in Markdown files with metadata and can be discovered from local directories or remote repositories.List Skills
Endpoint
List all available skills or get a specific skill by name
Query Parameters
If provided, returns a single skill with full content
Response
Array of skill summary objects (when listing)
Skill Summary Object
Unique skill identifier
Detailed description of what the skill does
Brief one-line description
License information (e.g., “MIT”)
Array of compatible agent types or systems
Full Skill Object
When querying by name, includes all summary fields plus:Full skill content (Markdown)
Additional metadata from the skill definition
Response Example (List)
Response Example (Single Skill)
Get Skill by Name
Query Parameters
Skill name to retrieve
Optional repository path to search for skills (in addition to global skills)
Status Codes
| Status Code | Description |
|---|---|
200 | Success |
404 | Skill not found |
Error Response
Reload Skills
Endpoint
Reload skills from disk and database
Response
Always
true when successfulNumber of skills loaded
Response Example
Discover Skills
Endpoint
Discover skills from a repository path
Query Parameters
Path to repository to scan for skills
Response
Returns discovered skill definitions from the specified path.Clone Skill Repository
Endpoint
Clone a skill repository from a Git URL
Request Body
Git repository URL to clone
Directory within the repository containing skills
Response
Returns success status and cloned repository information.Upload Skill Zip
Endpoint
Upload skill(s) as a zip file
Request Body
Multipart form data with a single file field:Zip file containing skill definitions
Response
Returns success status and information about uploaded skills.Skill Directory Structure
Skills are discovered from the following locations:- Global Skills:
~/.config/opencode/skills/ - Project Skills:
<project-root>/skills/ - Database Skills: Postgres database (for serverless deployments)
Skill File Format
Skills are Markdown files with YAML front matter:Serverless Environments
On serverless platforms (Vercel, AWS Lambda), skills are:- Stored in the Postgres database
- Loaded on-demand from the database
- Can be uploaded via the upload endpoint