跳到正文
Skillpedia
调研33k · #8803

swarmvault

它能做什么

这项技能设置一个本地知识库,由你的智能体将其维护为维基。适合想收集笔记、书籍和链接等资料,并在之后查询的人。

适用场景

  • ✓当你想把一个包含笔记、书籍或转录稿的文件夹变成可搜索的维基时。
  • ✓当你希望 AI 维护一个持久的知识库,并随着新资料加入而更新时。
  • ✓当你的项目已有 SwarmVault 配置文件,并且你想使用该知识库时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/swarmvault/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/swarmvault/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请用我研究文件夹中的 PDF 和笔记建立一个知识库,方便我以后搜索。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会创建一个知识库文件夹,包含结构定义,添加你的资料,并将其编译成相互链接的 Markdown 页面、关系图和一个可以在电脑上阅读的仪表盘。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

SwarmVault

Use this skill when the user wants a local-first knowledge vault built on the LLM Wiki pattern — three layers (raw sources, wiki, schema) where the LLM maintains a durable wiki between you and raw sources. Also use it when the project already contains swarmvault.config.json or swarmvault.schema.md.

For onboarding, examples, command references, or troubleshooting, read the bundled README.md, examples/, references/, and TROUBLESHOOTING.md before improvising workflow advice.

Quick checks

  • Work from the vault root.
  • If the vault does not exist yet, run swarmvault init.
  • Use swarmvault demo --no-serve when the user wants the fastest zero-config walkthrough before pointing SwarmVault at their own sources.
  • Use swarmvault scan <directory> --no-serve when the user wants the fastest scratch pass over a local repo or docs tree without manually stepping through init + ingest + compile first.
  • Read swarmvault.schema.md before compile or query work. It is the vault's operating contract.
  • If wiki/graph/report.md exists, use it before broad repo search.

Core loop

  1. Initialize a vault with swarmvault init when needed.
  2. Update swarmvault.schema.md before a serious compile. Use it for naming rules, categories, grounding, freshness expectations, and exclusions.
  3. Use swarmvault source add <input> when the input is a recurring local file, local directory, public GitHub repo root, or docs hub that should stay registered.
  4. Ingest one-off inputs with swarmvault ingest <path-or-url>, or ingest a whole repo tree with swarmvault ingest <directory>. Audio files use tasks.audioProvider when configured, and supported YouTube URLs go through direct transcript capture instead of generic URL ingest.
  5. Use swarmvault ingest --guide, swarmvault source add --guide, swarmvault source reload --guide, swarmvault source guide <id>, or swarmvault source session <id> when the human should integrate one source at a time before canonical pages change. Set profile.guidedIngestDefault: true in swarmvault.config.json to make guided mode the default; use --no-guide to override. Profiles using guidedSessionMode: "canonical_review" stage approval-queued canonical edits; insights_only profiles keep exploratory synthesis in wiki/insights/. Use --review only for the lighter review-only path.
  6. Use swarmvault inbox import for capture-style batches, then swarmvault watch --lint --repo when the workflow should stay automated. Add --code-only when the refresh should stay AST-only and defer non-code semantic re-analysis to a later compile. On tracked repos, code-only changes take that faster compile path automatically. Install swarmvault hook install when git checkouts and commits should trigger the same repo-aware code-only refresh automatically.
  7. Compile with swarmvault compile, use compile --max-tokens <n> when the generated wiki must stay inside a bounded context budget, or use compile --approve when changes should go through the local review queue first.
  8. Resolve staged work with swarmvault review list|show|accept|reject and swarmvault candidate list|promote|archive.
  9. Ask questions with swarmvault query "<question>". It saves durable answers into wiki/outputs/ by default; add --no-save only for ephemeral checks. When an embedding provider is configured, query can merge semantic page matches into local search; search.rerank: true lets the current queryProvider rerank the merged top hits before answering.
  10. Use swarmvault explore "<question>" --steps <n> for save-first multi-step research loops, or --format report|slides|chart|image when the artifact should be presentation-oriented.
  11. Run swarmvault lint whenever the schema changed, artifacts look stale, or compile/query results drift. Set profile.deepLintDefault: true in swarmvault.config.json when the advisory deep-lint pass should be the default, and use --no-deep when you need a structural-only run. Add --web only when deep lint is enabled and a webSearch.tasks.deepLintProvider adapter is configured; web evidence is scoped to deep lint and does not change compile or query behavior.
  12. Use swarmvault mcp when another agent or tool should browse, search, and query the vault through MCP.
  13. Use swarmvault graph blast <target> when the user wants reverse-import impact analysis, `swarmvault graph
常见问题

知识库存放在哪里?

这项技能被描述为本地优先,意思是它把文件写入你自己的电脑。

它能使用哪些类型的资料?

描述中列出了书籍、笔记、转录稿、导出文件、数据集、幻灯片、文件、URL 和代码。

我能先试用再添加自己的文件吗?

可以。这项技能提到了一个演示命令,可以在添加你自己的资料之前快速了解流程。

详情

作者的原始描述

Use SwarmVault when the user needs a local-first knowledge vault that writes durable markdown, graph, search, dashboard, review, and MCP artifacts to disk from books, notes, transcripts, exports, datasets, slide decks, files, URLs, code, and recurring source workflows.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8803
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能