Automated summary
Adds a skill to the OpenViking knowledge base via a REST API, supporting multiple formats including MCP tool definitions with automatic conversion.
Strengths
- Supports multiple input formats (skill object, MCP tool, markdown string, file path)
- Automatic conversion of MCP tool definitions to skill format with generated documentation
- Vectorization and indexing for semantic retrieval
- Can include auxiliary files when adding from a directory
Limitations
- Requires API key authentication
- Asynchronous processing may require explicit wait parameter
- Tied to the OpenViking platform
Use this API when you need to dynamically extend the skill catalog of an OpenViking agent with new tools or capabilities.
Do not use it if you are looking to integrate capabilities into a system not based on OpenViking or if you prefer static configuration without an API.
Security analysis
SafeThe SKILL.md file is purely API documentation for adding skills to a knowledge base. It contains no executable code, dangerous commands, obfuscated content, or instructions that could cause harm if followed. There are no declarations of allowed-tools, and the content is informational.
No concerns found
How this analysis is madeExamples
Add a skill named 'search-web' that searches the web for current information. The skill should take a query parameter (required) and an optional limit parameter (default 10). Use the HttpClient and JsonParser tools.Create a new skill from this MCP tool definition: name 'calculator', description 'Perform mathematical calculations', with an inputSchema that requires an 'expression' string.Add all skills from the directory './my-skills/' to the knowledge base and wait for vectorization to complete.title: Add Skill api: POST /api/v1/skills
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.
<Note> Skills are vectorized and indexed for semantic retrieval. Use `wait=true` or call `/api/v1/system/wait` to ensure processing completes. </Note>Authentication
Requires API key authentication via X-API-Key header.
Request Body
<ParamField body="data" type="object | string" required> 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) </ParamField>
Skill Data Formats
Format 1: Skill Dict
{
"name": "search-web",
"description": "Search the web for current information",
"content": "# search-web\n\nSearch the web for current information.\n\n## Parameters\n- **query** (string, required): Search query\n- **limit** (integer, optional): Max results, default 10",
"allowed_tools": ["HttpClient", "JsonParser"],
"tags": ["web", "search"]
}
Format 2: MCP Tool (Auto-Converted)
{
"name": "calculator",
"description": "Perform mathematical calculations",
"inputSchema": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "Mathematical expression to evaluate"
}
},
"required": ["expression"]
}
}
<Info>
OpenViking detects MCP format by the presence of `inputSchema` and automatically converts it to skill format with generated markdown documentation.
</Info>
Format 3: SKILL.md String
---
name: code-runner
description: Execute code in various languages
allowed-tools:
- FileSystem
- ProcessRunner
tags:
- code
- execution
---
# code-runner
Execute code in various languages safely.
## Parameters
- **language** (string, required): Programming language
- **code** (string, required): Code to execute
- **timeout** (integer, optional): Timeout in seconds
Format 4: File Path
{
"data": "./skills/search-web/SKILL.md"
}
Or for directories with auxiliary files:
{
"data": "./skills/code-runner/"
}
Response
<ResponseField name="status" type="string"> Response status (`ok` or `error`) </ResponseField> <ResponseField name="result" type="object"> Skill creation result <Expandable title="Result Object"> <ResponseField name="status" type="string"> Creation status (`success`) </ResponseField><ResponseField name="uri" type="string">
URI where skill was stored (e.g., `viking://agent/skills/search-web/`)
</ResponseField>
<ResponseField name="name" type="string">
Skill name in kebab-case
</ResponseField>
<ResponseField name="auxiliary_files" type="number">
Number of auxiliary files included (when adding from directory)
</ResponseField>
</Expandable>
</ResponseField>
<ResponseField name="time" type="number">
Request processing time in seconds
</ResponseField>
Examples
<CodeGroup>curl -X POST http://localhost:1933/api/v1/skills \
-H "Content-Type: application/json" \
-H "X-API-Key: your-key" \
-d '{
"data": {
"name": "search-web",
"description": "Search the web for current information",
"content": "# search-web\n\nSearch the web for current information.\n\n## Parameters\n- **query** (string, required): Search query\n- **limit** (integer, optional): Max results, default 10"
}
}'
curl -X POST http://localhost:1933/api/v1/skills \
-H "Content-Type: application/json" \
-H "X-API-Key: your-key" \
-d '{
"data": {
"name": "calculator",
"description": "Perform mathematical calculations",
"inputSchema": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "Mathematical expression to evaluate"
}
},
"required": ["expression"]
}
}
}'
# Add from skill dict
skill = {
"name": "search-web",
"description": "Search the web for current information",
"content": """
# search-web
Search the web for current information.
## Parameters
- **query** (string, required): Search query
- **limit** (integer, optional): Max results, default 10
"""
}
result = client.add_skill(skill)
print(f"Added: {result['uri']}")
# Add from MCP tool (auto-converted)
mcp_tool = {
"name": "calculator",
"description": "Perform mathematical calculations",
"inputSchema": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "Mathematical expression to evaluate"
}
},
"required": ["expression"]
}
}
result = client.add_skill(mcp_tool)
print(f"Added: {result['uri']}")
# Add from file
result = client.add_skill("./skills/search-web/SKILL.md")
print(f"Added: {result['uri']}")
# Add from directory (includes auxiliary files)
result = client.add_skill("./skills/code-runner/")
print(f"Added: {result['uri']}")
print(f"Auxiliary files: {result['auxiliary_files']}")
# Add from file
openviking add-skill ./skills/search-web/SKILL.md
# Add from directory and wait for processing
openviking add-skill ./skills/code-runner/ --wait
</CodeGroup>
<ResponseExample>
{
"status": "ok",
"result": {
"status": "success",
"uri": "viking://agent/skills/search-web/",
"name": "search-web",
"auxiliary_files": 0
},
"time": 0.15
}
{
"status": "ok",
"result": {
"status": "success",
"uri": "viking://agent/skills/code-runner/",
"name": "code-runner",
"auxiliary_files": 3
},
"time": 0.25
}
</ResponseExample>
MCP Tool Conversion
When you provide a dict with inputSchema, OpenViking automatically converts it to skill format:
Input (MCP):
{
"name": "search_web",
"description": "Search the web",
"inputSchema": {
"type": "object",
"properties": {
"query": {"type": "string", "description": "Search query"},
"limit": {"type": "integer", "description": "Max results"}
},
"required": ["query"]
}
}
Output (Skill):
---
name: search-web
description: Search the web
---
# search-web
Search the web
## Parameters
- **query** (string) (required): Search query
- **limit** (integer) (optional): Max results
## Usage
This tool wraps the MCP tool `search-web`. Call this when the user needs functionality matching the description above.
Best Practices
<AccordionGroup> <Accordion title="Use Clear Descriptions"> ```python # Good - specific and actionable skill = { "name": "search-web", "description": "Search the web for current information using Google", ... }# Less helpful - too vague
skill = {
"name": "search",
"description": "Search",
...
}
```
</Accordion>
<Accordion title="Use Kebab-Case for Names">
- `search-web` ✅
- `searchWeb` ❌
- `search_web` ❌
</Accordion>
<Accordion title="Include Comprehensive Content">
- Clear parameter descriptions with types
- When to use the skill
- Concrete examples
- Edge cases and limitations
</Accordion>
</AccordionGroup>
Related Endpoints
- List Skills - View all skills
- Search Skills - Semantic search
- Remove Skill - Delete a skill
- Wait for Processing - Ensure vectorization completes
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/add-skill-mmh8qqi2/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/add-skill-mmh8qqi2' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/add-skill-mmh8qqi2/download' --output '.skill-downloads/add-skill-mmh8qqi2/SKILL.md.part' && mv '.skill-downloads/add-skill-mmh8qqi2/SKILL.md.part' '.skill-downloads/add-skill-mmh8qqi2/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/add-skill-mmh8qqi2/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.