Skip to main content
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.
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 via X-API-Key header.

Request Body

object | string
required
Skill data in one of four supported formats:
  1. Skill format (dict with name, description, content)
  2. MCP Tool format (dict with inputSchema - auto-converted)
  3. String (SKILL.md content with YAML frontmatter)
  4. Path (file or directory path)
boolean
default:"false"
Wait for vectorization to complete before returning
number
default:"null"
Timeout in seconds when wait=true

Skill 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

Or for directories with auxiliary files:

Response

string
Response status (ok or error)
object
Skill creation result
number
Request processing time in seconds

Examples

MCP Tool Conversion

When you provide a dict with inputSchema, OpenViking automatically converts it to skill format: Input (MCP):
Output (Skill):

Best Practices

  • search-web
  • searchWeb
  • search_web
  • Clear parameter descriptions with types
  • When to use the skill
  • Concrete examples
  • Edge cases and limitations