技能图谱SKILLSGROVE
技能图谱/办公文档/vibeknow/cli/vibeknow-doc

vibeknow-doc

安装

$npx skills add https://github.com/vibeknow/cli --skill vibeknow-doc
$git clone --depth 1 https://github.com/vibeknow/cli.git /tmp/cli && mkdir -p ~/.claude/skills && cp -r /tmp/cli/skills/vibeknow-doc ~/.claude/skills/vibeknow-doc
请帮我安装这个 Agent Skill:https://github.com/vibeknow/cli/tree/280830b5dbcb0422e54c8d1eb0b662a7de43e222/skills/vibeknow-doc ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITUpload documents to vectoria and check processing status. Use when: user wants to upload a document, check if a document is ready, or get a doc_id for use with vibeknow create.
以下 SKILL.md 内容转载自 vibeknow/cli(提交 280830b),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 vibeknow 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

vibeknow-doc

TRIGGER

  • Upload a document to vectoria for processing
  • Check document processing status
  • Get a doc_id for later use with vibeknow create --from <doc_id>

SKIP

  • Video generation or task management → use vibeknow-create
  • Auth, profile, environment setup → use vibeknow-core
  • RAG queries → not yet available

Core Concepts

  • doc upload: Uploads a local file to vectoria. Creates a knowledge base, polls until processing completes, and returns the doc_id + kb_id.
  • doc get: Fetches document status from vectoria. Requires both <doc_id> and --kb-id.
  • Document states: processing → completed or failed.
  • Relationship to create: vibeknow create --from <doc_id> uses an already-uploaded document. If you pass a file path or URL to create --from, it uploads automatically — you don't need doc upload first.

Quick Reference

Command Description
vibeknow doc upload <file> Upload a document to vectoria
vibeknow doc get <doc_id> --kb-id <kb_id> Fetch document status

For full flags and output examples, see commands.md.

Common Tasks

Upload a document and get its doc_id

vibeknow doc upload ./report.pdf
# Output includes doc_id and kb_id
vibeknow doc upload ./report.pdf --output json
# {"doc_id":"doc_abc123","kb_id":"kb_xyz789","status":"completed"}

Check if a document is ready

vibeknow doc get doc_abc123 --kb-id kb_xyz789

Upload then create video (two-step)

# Step 1: upload (useful if you want to reuse the doc_id)
result=$(vibeknow doc upload ./slides.pdf --output json)
doc_id=$(echo "$result" | jq -r '.doc_id')

# Step 2: create video from the uploaded doc
vibeknow create --from "$doc_id"

Note: For one-shot workflows, vibeknow create --from ./slides.pdf does both steps automatically.

Exit Code Handling

Exit Meaning Action
0 Success —
1 General error Read stderr
2 Invalid arguments Check file path exists, doc_id format
3 Auth error Run vibeknow auth status to inspect credential source. Re-login with vibeknow auth login (interactive) or set VIBEKNOW_TOKEN. See vibeknow-core for profile/diagnostics if installed.
130 User interrupt —

For full error reference, see errors.md.

Output Formats

vibeknow doc upload ./report.pdf                   # text (human-readable)
vibeknow doc upload ./report.pdf --output json      # structured JSON
vibeknow doc get doc_abc --kb-id kb_xyz --output json

References

查看许可证全文(MIT)
MIT License

Copyright (c) 2026 vibeknow

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.