swarmvault
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.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 3.3w
- Forks
- 3.9k
01 前言 Front Matter
- name
- swarmvault
- license
- MIT
- version
- 0.7.30
- metadata
- {"openclaw":{"requires":{"anyBins":["swarmvault","vault"]},"install":[{"id":"node","kind":"node","package":"@swarmvaultai/cli","bins":["swarmvault","vault"],"label":"Install SwarmVault CLI (npm)"}],"emoji":"?️","homepage":"https://www.swarmvault.ai/docs"}}
- description
- 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.
02 资源文件 11
- 参考文档examples/example_usage.md223 B
- 参考文档examples/quickstart.md1.4 KB
- 参考文档examples/repo-workflow.md1.2 KB
- 参考文档examples/research-workflow.md1.4 KB
- 参考文档README.md13.6 KB
- 参考文档references/artifacts.md2.3 KB
- 参考文档references/commands.md2.4 KB
- 脚本scripts/alert_triager.py7.7 KB
- 脚本scripts/report_generator.py12.6 KB
- 参考文档TROUBLESHOOTING.md3.0 KB
- 参考文档validation/smoke-prompts.md2.9 KB
03 SKILL.md 正文
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-servewhen the user wants the fastest zero-config walkthrough before pointing SwarmVault at their own sources. - Use
swarmvault scan <directory> --no-servewhen 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.mdbefore compile or query work. It is the vault's operating contract. - If
wiki/graph/report.mdexists, use it before broad repo search.
Core loop
- Initialize a vault with
swarmvault initwhen needed. - Update
swarmvault.schema.mdbefore a serious compile. Use it for naming rules, categories, grounding, freshness expectations, and exclusions. - 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. - Ingest one-off inputs with
swarmvault ingest <path-or-url>, or ingest a whole repo tree withswarmvault ingest <directory>. Audio files usetasks.audioProviderwhen configured, and supported YouTube URLs go through direct transcript capture instead of generic URL ingest. - Use
swarmvault ingest --guide,swarmvault source add --guide,swarmvault source reload --guide,swarmvault source guide <id>, orswarmvault source session <id>when the human should integrate one source at a time before canonical pages change. Setprofile.guidedIngestDefault: trueinswarmvault.config.jsonto make guided mode the default; use--no-guideto override. Profiles usingguidedSessionMode: "canonical_review"stage approval-queued canonical edits;insights_onlyprofiles keep exploratory synthesis inwiki/insights/. Use--reviewonly for the lighter review-only path. - Use
swarmvault inbox importfor capture-style batches, thenswarmvault watch --lint --repowhen the workflow should stay automated. Add--code-onlywhen the refresh should stay AST-only and defer non-code semantic re-analysis to a latercompile. On tracked repos, code-only changes take that faster compile path automatically. Installswarmvault hook installwhen git checkouts and commits should trigger the same repo-aware code-only refresh automatically. - Compile with
swarmvault compile, usecompile --max-tokens <n>when the generated wiki must stay inside a bounded context budget, or usecompile --approvewhen changes should go through the local review queue first. - Resolve staged work with
swarmvault review list|show|accept|rejectandswarmvault candidate list|promote|archive. - Ask questions with
swarmvault query "<question>". It saves durable answers intowiki/outputs/by default; add--no-saveonly for ephemeral checks. When an embedding provider is configured, query can merge semantic page matches into local search;search.rerank: truelets the currentqueryProviderrerank the merged top hits before answering. - Use
swarmvault explore "<question>" --steps <n>for save-first multi-step research loops, or--format report|slides|chart|imagewhen the artifact should be presentation-oriented. - Run
swarmvault lintwhenever the schema changed, artifacts look stale, or compile/query results drift. Setprofile.deepLintDefault: trueinswarmvault.config.jsonwhen the advisory deep-lint pass should be the default, and use--no-deepwhen you need a structural-only run. Add--webonly when deep lint is enabled and awebSearch.tasks.deepLintProvideradapter is configured; web evidence is scoped to deep lint and does not change compile or query behavior. - Use
swarmvault mcpwhen another agent or tool should browse, search, and query the vault through MCP. - Use
swarmvault graph blast <target>when the user wants reverse-import impact analysis,swarmvault graph servewhen the live workspace or bookmarklet clipper will help,swarmvault diffwhen they need a graph-level change summary against the last committed baseline, orswarmvault graph export --html <output>/graph export --report <output>when sharing will help.graph exportalso supports--html-standalone,--json,--obsidian, and--canvasfor lighter or Obsidian-native sharing.
Working rules
- Prefer changing the schema before re-running compile when organization or grounding is wrong.
- Treat
wiki/andstate/as first-class outputs. Inspect them instead of trusting a single chat answer. - Prefer
wiki/graph/report.md,state/graph.json, and saved wiki pages over ad hoc broad search when they already exist. - Use
source addfor recurring files, directories, public GitHub repo roots, and docs hubs. Useingestandaddfor deliberate one-off inputs. - When the vault lives in a git repo,
ingest|compile|query --commitcan commitwiki/andstate/changes immediately after the run. - The default heuristic provider is a valid local/offline starting point. Add a model provider only when the user wants richer synthesis quality or optional capabilities such as embeddings, vision, image generation, or audio transcription. The recommended fully-local setup is Ollama + Gemma:
ollama pull gemma4then setproviders.llmto{ type: "ollama", model: "gemma4" }and pointtasks.compileProvider,tasks.queryProvider, andtasks.lintProviderat it. - Audio ingest needs
tasks.audioProviderto resolve to a provider that exposesaudiocapability. YouTube transcript ingest does not need a provider. Setgraph.communityResolutionwhen the user wants to pin community clustering instead of using the adaptive default. - If an OpenAI-compatible backend cannot satisfy structured generation, reduce its declared capabilities instead of forcing every task through it.
- Keep raw sources immutable. Put corrections in schema, new sources, or saved outputs rather than manually rewriting generated provenance.
Files and artifacts
swarmvault.schema.md: vault-specific compile and query rules.raw/sources/andraw/assets/: canonical source storage.wiki/: generated pages plus saved outputs.wiki/outputs/source-briefs/: saved onboarding briefs for managed sources.wiki/outputs/source-sessions/: resumable guided-session anchors plus question/answer history for one-source-at-a-time integration.wiki/outputs/source-reviews/: staged source-scoped review pages.wiki/outputs/source-guides/: staged source-integration guides for one-source-at-a-time workflows.wiki/dashboards/: recent sources, reading log, timeline, source sessions, source guides, research map, contradiction, and open-question dashboards.wiki/code/: module pages for ingested JavaScript, JSX, TypeScript (including.mts/.cts), TSX, Bash/shell script (with shebang-based detection for extensionless scripts), Python, Go, Rust, Java, Kotlin, Scala, Dart, Lua, Zig, C#, C, C++ (including.c/.cc/.cpp/.cxxand.h/.hh/.hpp/.hxx), PHP, Ruby, PowerShell (.ps1/.psm1/.psd1), Elixir (.ex/.exs), OCaml (.ml/.mli), Objective-C (.m/.mm), ReScript (.res/.resi), Solidity (.sol), Vue single-file components (.vue), HTML (.html/.htm), and CSS sources.state/extracts/: extracted markdown and JSON sidecars for PDF, the full Word family (.docx/.docm/.dotx/.dotm), RTF (.rtf), OpenDocument (ODT/ODP/ODS), EPUB, CSV/TSV, the full Excel family (.xlsx/.xlsm/.xlsb/.xls/.xltx/.xltm), the full PowerPoint family (.pptx/.pptm/.potx/.potm), Jupyter notebooks (.ipynb), BibTeX (.bib), Org-mode (.org), AsciiDoc (.adoc/.asciidoc), transcripts, Slack exports, email, calendar, audio transcripts, YouTube transcript captures, and image sources (.png/.jpg/.jpeg/.gif/.webp/.bmp/.tif/.tiff/.svg/.ico/.heic/.heif/.avif/.jxl), plus structured previews for config/data files (JSON/JSONC/JSON5/TOML/YAML/XML/INI/ENV/PROPERTIES/CFG/CONF) and content-sniffed text ingest for developer manifests (package.json,Cargo.toml,go.mod,LICENSE,.gitignore,Dockerfile,Makefile, and similar plaintext files).state/code-index.json: repo-aware code aliases and local import resolution data.wiki/projects/: project rollups over canonical pages.wiki/candidates/: staged concept and entity pages awaiting promotion.state/graph.json: compiled graph.state/search.sqlite: local search index.state/sources.jsonandstate/sources/<id>/: managed-source registry entries plus working sync state.state/approvals/: staged review bundles fromcompile --approve.state/sessions/: canonical session artifacts for compile, query, explore, lint, watch, review, and candidate actions.state/jobs.ndjson: watch-mode run log.
Agent integration
swarmvault install --agent codex|claude|cursor|goose|pi|gemini|opencode|aider|copilot|trae|claw|droidinstalls agent-specific rules into the current project.swarmvault install --agent claude|opencode|gemini|copilot --hookinstalls graph-first hook or plugin support for the agents that expose project hook APIs.swarmvault install --agent aiderinstallsCONVENTIONS.mdand wires.aider.conf.ymlto read it when that config is valid YAML.swarmvault mcpexposes tools and resources for page search, page reads, source listing, query, ingest, compile, and lint.
Defaults to preserve
- Keep raw source material immutable under
raw/. - Save useful answers unless the user explicitly wants ephemeral output.
- Prefer reviewable flows such as
compile --approve,review, andcandidatewhen a change should not activate silently. - Treat provider setup as part of serious vault operation. If only
heuristicis configured, say so clearly. - When a vault uses the
profileblock inswarmvault.config.json, respect it as the deterministic behavior layer.swarmvault.schema.mdstill defines the human intent layer.
04 同仓库更多 Skills
wealthville-pool-scoring
Score DeFi liquidity pools before providing liquidity. Returns a 0-100 pool score and an Enter/Hold/Exit/Reduce/Avoid verdict with calibrated confidence for ~68,800 Solana pools and 575 EVM pools, plus a public miss-inclusive track record. Use when asked whether a pool is worth LPing into, which pools look best right now, or how accurate the scores have actually been.
technical-debt-auditor
Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO/FIXME/HACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like "where should I focus refactoring", "find code smells", "audit my codebase", "what technical debt do we have", "prioritize cleanup work", or asks about code quality metrics. Also trigger when the user mentions "code rot", "legacy cleanup", "refactoring priorities", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say "technical debt" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.
readonly-sql-guard
Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production/ERP/analytics database (a "query" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write/DDL/side-effect/transaction-escape risks. Checks what a statement CALLS, not just its shape.
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
discernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.