技能 效率工具 OpenViking资源检索

OpenViking资源检索

v20261016
ov-resources
用于在 OpenViking 中检索和阅读文档、代码仓库、URL 与笔记等资源。指导选择 find、grep、glob、list 工具,并从目录摘要逐步定位到具体文件,提升参考资料查找效率。
获取技能
81 次下载
概览

OpenViking Resources

Resources are documents a user added to OpenViking (files, repos, URLs).
They live in a file tree under viking://resources/ (and sometimes
viking://user/<id>/resources/ for user-private ones). Each directory has two
summaries next to its files:

  • .abstract.md — one paragraph: what the directory holds (L0)
  • .overview.md — a structured overview of its contents (L1)

Read summaries first and open full files last. The summaries exist so you can
decide where to look without reading everything.

Pick the tool

You know…Use
roughly what it is aboutfind(query, target_uri="viking://resources")
an exact word, name, or error stringgrep(uri, pattern=[...])
a file name or extensionglob(pattern, uri) e.g. **/*.pdf
where it islist(uri) and read(uris)

Default to find. Scope it with target_uri as soon as you know which
resource you are in — narrower scopes give better hits. Use search instead
of find only when the question is vague and needs intent analysis.

Drill down

  1. find returns URIs with a score. A hit on <dir>/.abstract.md means the

whole directory matched, not that the answer is in the abstract.

  1. read that directory's .overview.md to see what is inside.
  2. list the directory, or run a scoped find/grep inside it, to reach the

specific file.

  1. read the file. For long files, grep first and then read with

offset/limit around the match.

Stop as soon as you have what the task needs. Two or three targeted reads
beat ten broad ones.

Tips

  • If find returns nothing useful, list viking://resources to see what

exists, then search inside the closest directory.

  • Low scores (under ~0.4) are usually noise; rephrase with the domain's

own terms rather than raising limit.

  • Cite the viking:// URI of what you used so the user can open it.
  • To add a new resource, use add_resource with the file path or URL; do not

copy its text in with write.

信息
分类 效率工具
名称 ov-resources
版本 v20261016
大小 2.46KB
更新时间 2026-10-17
语言