Loading...
Loading...
This skill adds data(like resources) to OpenViking Context Database (aka. ov). Use when an agent needs to add files, data from URLs, or external knowledge during interactions. Trigger this tool when 1. is explicitly requested adding files or knowledge; 2. identifies valuable resources worth importing; 3. the user mentioned adding to OV/OpenViking/Context Database. This skill helps how to use CLI like `ov add-resource`, `ov add-skill` and `ov add-memory` to add resource data, skill files, memory files to OpenViking.
npx skill4agent add volcengine/openviking ov-add-dataadd-resourceov add-resourceviking://resources/# add a code repo from github or gitlab or a git address
ov add-resource https://github.com/volcengine/OpenViking
ov add-resource https://code.xxxx.org/viking/viking
ov add-resource git@code.xxxx.org:viking/viking.git
# add a file from url
ov add-resource https://arxiv.org/pdf/2602.09540
ov add-resource https://raw.githubusercontent.com/volcengine/OpenViking/main/README.md
# add a file from local filesystem
ov add-resource ./docs/api-spec.md
ov add-resource ./team_building.jpg
ov add-resource /User/volcengine/Documents/profile.pdf
ov add-resource /User/volcengine/Documents/project.docx
# add a zip file from local filesystem (will be unzipped on server)
ov add-resource ./docs-of-project.zip
# add a directory from local filesystem
ov add-resource /User/volcengine/Photo/Travels/2026/ --include "*.jpg,*.jpeg,*.png"
ov add-resource /User/volcengine/Documents/OV项目设计文档/--wait# Wait until semantic processing finishes
ov add-resource ./docs --wait
# Wait with timeout (in seconds)
ov add-resource https://example.com/docs --wait --timeout 60
# Fire and forget (default, without --wait)
ov add-resource ./docsov lsov treeviking://resources/viking://resources/--to--parent# The data will be imported as viking://resources/2026/2026-01-01/, which should not exist before
ov add-resource /User/volcengine/Photo/Travels/2026/2026-01-01/ --to "viking://resources/2026/2026-01-01/"
# The data will be imported under viking://resources/2026, which should exist and be a directory
ov add-resource /User/volcengine/Photo/Travels/2026/2026-01-02/ --parent "viking://resources/2026/"root_uri viking://resources/2026/2026-01-01~/.openviking/ovcli.confadd-memoryov add-memoryov add-memory --helpuserov add-memory "User's name is Bob, he participate in Global Hackathon in 2025-01-08, and won Champion."{role, content}ov add-memory '[
{"role": "user", "content": "I love traveling. Give me some options of Transport from Beijing to Shanghai."},
{"role": "assistant", "content": "You can use train, bus, or plane. Train is the fastest, but you need to book in advance. Bus is cheaper, but you need to wait. Plane is the most expensive, but you can get there any time of day."},
{"role": "user", "content": "I prefer train. I like sightseeing on the train. Can you give me the train schedule?"},
< ... more possible conversation about schedule and tickest need to be memorized ... >
]'memories_extracted 1ov add-memory '[
{"role": "user", "content": "Key facts about the ov_cli Rust crate"},
{"role": "assistant", "content": "1. runs faster than python cli\n2. uses HttpClient to connect openviking server\n3. Output formatting supports table and JSON modes\n4. Config lives at ~/.openviking/ovcli.conf"}
]'~/.openviking/ovcli.confadd-skillov add-skillviking://agent/skills/# Add from a single SKILL.md file
ov add-skill ./skills/my-skill/SKILL.md
# Add from a directory containing SKILL.md (includes auxiliary files)
ov add-skill ./skills/my-skill/--wait# Wait until semantic processing finishes
ov add-skill ./skills/my-skill/ --wait
# Wait with timeout (in seconds)
ov add-skill ./skills/my-skill/ --wait --timeout 60
# Fire and forget (default, without --wait)
ov add-skill ./skills/my-skill/uri viking://agent/skills/my-skill/---
name: skill-name
description: Brief description of the skill
allowed-tools:
- Tool1
- Tool2
tags:
- tag1
- tag2
---
## Including Auxiliary Files
When adding from a directory, all files in the directory are included as auxiliary files:
```bash
# Directory structure:
# ./skills/code-runner/
# ├── SKILL.md
# ├── helper.py
# └── templates/
# └── script.py
ov add-skill ./skills/code-runner/
# Both helper.py and templates/ are included~/.openviking/ovcli.conf