Skills
Add Skill
POST
Add Skill
Add a skill to the knowledge base. Skills define capabilities that agents can invoke. OpenViking automatically detects and converts MCP tool definitions to skill format.
Or for directories with auxiliary files:
Output (Skill):
Skills are vectorized and indexed for semantic retrieval. Use
wait=true or call /api/v1/system/wait to ensure processing completes.Authentication
Requires API key authentication viaX-API-Key header.
Request Body
Skill data in one of four supported formats:
- Skill format (dict with name, description, content)
- MCP Tool format (dict with inputSchema - auto-converted)
- String (SKILL.md content with YAML frontmatter)
- Path (file or directory path)
Wait for vectorization to complete before returning
Timeout in seconds when
wait=trueSkill Data Formats
Format 1: Skill Dict
Format 2: MCP Tool (Auto-Converted)
OpenViking detects MCP format by the presence of
inputSchema and automatically converts it to skill format with generated markdown documentation.Format 3: SKILL.md String
Format 4: File Path
Response
Response status (
ok or error)Skill creation result
Request processing time in seconds
Examples
MCP Tool Conversion
When you provide a dict withinputSchema, OpenViking automatically converts it to skill format:
Input (MCP):
Best Practices
Use Clear Descriptions
Use Clear Descriptions
Use Kebab-Case for Names
Use Kebab-Case for Names
search-web✅searchWeb❌search_web❌
Include Comprehensive Content
Include Comprehensive Content
- Clear parameter descriptions with types
- When to use the skill
- Concrete examples
- Edge cases and limitations
Related Endpoints
- List Skills - View all skills
- Search Skills - Semantic search
- Remove Skill - Delete a skill
- Wait for Processing - Ensure vectorization completes
Add Skill
