[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GK8HBSSRJKAFTTFSAJEWG1":3,"skill-same:01M6GK8HBSSRJKAFTTFSAJEWG1":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":6,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":6,"updatedAt":61,"install":62,"resources":74},"01M6GK8HBSSRJKAFTTFSAJEWG1","vaultli",null,"Use when initializing, maintaining, validating, searching, documenting, or assembling context from a file-based knowledge base with the bundled vaultli CLI. Trigger on knowledge vaults, KB setup, .kbroot, YAML frontmatter, sidecar markdown, INDEX.jsonl, documenting SQL\u002Ftemplates\u002Fconfigs\u002Fscripts, validating stale or broken KB state, searching vault metadata, hydrating source assets, assembling retrieval context, or federated lookup across multiple vault roots.","weisberg\u002Fagile_agentic_analytics","weisberg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5054710?v=4","01M6GK0MXK350SV8PMZ0D040SB","Brian Weisberg","01M6GK0N2F8X600FCTKCB3X2ZF",1,"MIT","https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics\u002Fblob\u002Fmain\u002Fplugins\u002Fknowledge-base\u002Fskills\u002Fvaultli\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"cli","context","vaults","edit","write","read","scripts","sql","markdown","assemble","knowledge base","jsonl","across","Bash","false","knowledge","search","kb","broken","2026-11-10 10:12:30",false,"---\nname: vaultli\ndescription: >\n  Use when initializing, maintaining, validating, searching, documenting, or\n  assembling context from a file-based knowledge base with the bundled vaultli\n  CLI. Trigger on knowledge vaults, KB setup, .kbroot, YAML frontmatter,\n  sidecar markdown, INDEX.jsonl, documenting SQL\u002Ftemplates\u002Fconfigs\u002Fscripts,\n  validating stale or broken KB state, searching vault metadata, hydrating\n  source assets, assembling retrieval context, or federated lookup across\n  multiple vault roots.\ntriggers:\n  - \"vaultli\"\n  - \"validate knowledge base vault\"\n  - \"index KB vault\"\n  - \"search vault metadata\"\n  - \"assemble vault context\"\nallowed-tools:\n  - Read\n  - Write\n  - Edit\n  - Bash\nmutating: true\n\ndisable-model-invocation: false\n---\n\n# vaultli\n\nUse `vaultli` when the task is to make a file tree of knowledge assets\ndiscoverable, auditable, retrievable, and safe for later agents. It is the\nKnowledge Base plugin's bundled CLI for vault roots, YAML metadata, sidecar\ndocumentation, JSONL indexes, validation, metadata search, and deterministic\ncontext assembly.\n\nThe bundled implementation lives at `..\u002F..\u002Fvaultli\u002F` relative to this skill.\nEnabled plugin sessions also expose a wrapper at `bin\u002Fvaultli`, so normal use\nlooks like:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json \u003Ccommand> ...\n```\n\nFor deeper reference, read only what you need:\n\n- `..\u002F..\u002Fvaultli\u002FREADME.md` for the tool overview and command surface.\n- `..\u002F..\u002Fvaultli\u002Fvaultli-spec-v1.0.md` for the storage and metadata spec.\n- `..\u002F..\u002Fvaultli\u002FSKILL.md` for the original full tool operating guide.\n- `..\u002F..\u002Freferences\u002Fsamples\u002Fwalkthrough.md` for a synthetic sample vault flow.\n- `..\u002F..\u002Freferences\u002Fschemas\u002Fpage-types.md` for KB page type conventions.\n\n## Contract\n\nWhen this skill is used:\n\n- The source of truth is the file tree. `INDEX.jsonl` is a rebuildable cache.\n- Markdown pages carry YAML frontmatter inline.\n- Non-markdown assets become discoverable only through same-directory sidecar\n  markdown files such as `retention.sql.md`.\n- Generated metadata is treated as a draft and refined before claiming the KB\n  is high quality.\n- Bulk writes are previewed with `--dry-run` and narrowed with `--include` or\n  `--exclude` when the tree is large.\n- Every material edit is followed by `\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index` and\n  `\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate`.\n- Retrieval happens in two stages: search metadata first, then hydrate body or\n  source content with `resolve`, `cat`, or `context`.\n- `search --semantic` is token-overlap matching over indexed metadata, not a\n  vector database or full-text search engine.\n- Do not edit `INDEX.jsonl` directly.\n\n## When To Use\n\nUse this skill for:\n\n- Creating or finding KB vault roots.\n- Adding or repairing markdown frontmatter.\n- Creating sidecars for SQL, Jinja, JSON, YAML, TOML, scripts, configs, and\n  other non-markdown assets.\n- Bulk scaffolding, indexing, validation, search, hydration, context assembly,\n  federated lookup, and stale\u002Fbroken state audits.\n\n## When Not To Use\n\nDo not use `vaultli` as the primary tool for:\n\n- Current web facts. Use `current-research`, then file the result if needed.\n- Semantic\u002Fvector retrieval expectations. `vaultli` is metadata-first.\n- Editing large binary assets. Store or point to them, then document with a\n  sidecar.\n- Replacing citation, privacy, or filing judgment. Pair with `citation-fixer`\n  and `health`, and read `references\u002Fprivacy-and-security.md` and\n  `references\u002Fkb-filing-rules.md`, when those concerns matter.\n- Automatically fixing validation failures without inspecting what they mean.\n\n## Core Mental Model\n\nvaultli uses markdown to wrap knowledge, YAML frontmatter for metadata, and JSONL for rebuildable indexes.\n\nA typical vault:\n\n```text\nkb\u002F\n  .kbroot\n  INDEX.jsonl\n  concepts\u002Fdecision-quality.md\n  queries\u002Fretention.sql\n  queries\u002Fretention.sql.md\n  templates\u002Freport.j2\n  templates\u002Freport.j2.md\n```\n\nNative markdown files are indexed directly. Non-markdown files are indexed\nthrough sidecars. Sidecars keep the original asset valid in its native format\nand put retrievable metadata and prose in markdown.\n\n## Invocation Rules\n\nPrefer the plugin wrapper:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json --help\n```\n\nThe wrapper chooses a compatible bundled Rust binary if one has been built,\nthen falls back to the Python package with `PYTHONPATH` pointed at the plugin\nroot. In local development, the Python fallback requires `PyYAML`.\n\nUse `--json` in agent workflows unless the user explicitly wants human-only\nterminal output. JSON output makes failures parseable and prevents brittle\nscreen-scraping.\n\nAlways pass `--root \u003Cvault-root>` for commands that operate on a vault. Do not\ndepend on the shell's current directory unless root discovery is the task.\n\n## Command Selection\n\n| Need | Command |\n| --- | --- |\n| Create\u002Ffind root | `init \u003Cpath>`, `root \u003Cpath>` |\n| Preview IDs\u002Fmetadata | `make-id \u003Cfile> --root \u003Croot>`, `infer \u003Cfile> --root \u003Croot>` |\n| Add markdown | `add \u003Cfile> --root \u003Croot>` |\n| Add non-markdown sidecar | `scaffold \u003Cfile> --root \u003Croot>` |\n| Bulk scaffold | `ingest \u003Cpath> --root \u003Croot> --dry-run` |\n| Maintain fields | `set`, `unset`, `refresh` |\n| Rebuild\u002Faudit | `index --root \u003Croot>`, `validate --root \u003Croot>` |\n| Search\u002Fhydrate | `search`, `show`, `resolve`, `cat`, `context` |\n| Multi-vault\u002Fgit | `federated-search`, `git-info`, `dump-index` |\n\n## Workflow\n\nFor most maintenance work, run this loop:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json root .\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search \"retention query\" --root .\u002Fkb --limit 5\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json resolve queries\u002Fretention --root .\u002Fkb --body --source\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context --root .\u002Fkb --id queries\u002Fretention --token-budget 2000\n```\n\nIf `ingest --dry-run` shows too many changes, narrow it:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run --include 'queries\u002F*.sql'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run --exclude 'tmp\u002F**'\n```\n\nAfter reviewing the dry-run, run the write command intentionally:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --index --include 'queries\u002F*.sql'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\n### Creating A New Vault\n\nPick a root that belongs to the user or project, initialize only when `.kbroot`\nis missing, add or scaffold a few representative files, refine metadata, then\nindex and validate:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json init .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json add .\u002Fkb\u002Fconcepts\u002Fdecision-quality.md --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json scaffold .\u002Fkb\u002Fqueries\u002Fopen_tasks.sql --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\n`.kbroot` may contain conservative YAML defaults:\n\n```yaml\ndefaults:\n  author: brian\n  scope: personal\n  domain: knowledge-management\n```\n\nDefaults should never be used to hide per-file specificity.\n\n## Metadata Quality\n\nThe practical fields for useful retrieval are:\n\n- `id`: stable path-derived identifier, used by links and dependencies.\n- `title`: human-readable display name.\n- `description`: one precise sentence explaining what the page or asset is for.\n- `category`: useful type such as `person`, `company`, `concept`, `conversation`,\n  `source`, `query`, `template`, `runbook`, `report`, or `task`.\n- `tags`: flat, retrieval-friendly keywords.\n- `status`: `draft`, `active`, `review`, `deprecated`, or `archived`.\n- `scope`: `personal`, `team`, `org`, or `public`.\n- `related` and `depends_on`: soft links and structural prerequisites.\n- `source`: required for sidecars and relative to the sidecar.\n\nTreat `description` as the most valuable retrieval field. Replace generic\nscaffold text like \"Markdown document for...\" with specific language that\nanswers: \"When should an agent retrieve this?\"\n\nGood:\n\n```yaml\ndescription: >-\n  SQL query that finds overdue renewal tasks by account owner and priority for\n  weekly customer-success review.\ntags: [renewal, tasks, customer-success, sql]\ncategory: query\n```\n\nWeak:\n\n```yaml\ndescription: SQL query stored in the vault.\ntags: [query]\n```\n\n## Sidecar Workflow\n\nFor a non-markdown asset, keep the source file untouched and create a sidecar:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json scaffold .\u002Fkb\u002Fqueries\u002Fopen_tasks.sql --root .\u002Fkb\n```\n\nExpected files:\n\n```text\nkb\u002Fqueries\u002Fopen_tasks.sql\nkb\u002Fqueries\u002Fopen_tasks.sql.md\n```\n\nThe sidecar frontmatter must include:\n\n```yaml\nsource: .\u002Fopen_tasks.sql\n```\n\nFill the body with purpose, parameters, assumptions, usage, sample output, and\ndownstream consumers. `search` finds the sidecar metadata; `resolve --source`\nor `cat --source` retrieves the executable SQL\u002Ftemplate\u002Fconfig.\n\nSidecar rules:\n\n- The sidecar lives beside the source asset and is named `\u003Csource>.\u003Cext>.md`.\n- A broken `source` field makes validation fail.\n- Sidecar-backed hashes are based on source asset bytes.\n\n## Bulk Ingestion\n\nUse bulk ingestion when a directory already contains useful files but lacks KB\nmetadata.\n\nStart with a preview, slice large trees, then write in batches:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run --include 'queries\u002F*.sql'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run --exclude 'archive\u002F**'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --index --include 'queries\u002F*.sql'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\nAfter writing, manually improve generated metadata. The scaffold is allowed to\nbe mechanical; the curated KB should not stay mechanical.\n\n## Metadata Maintenance\n\nUse `set`, `unset`, and `refresh` for simple frontmatter changes:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json set queries\u002Fopen-tasks status active --root .\u002Fkb --index\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json set queries\u002Fopen-tasks scope team --root .\u002Fkb --index\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json unset queries\u002Fopen-tasks priority --root .\u002Fkb --index\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json refresh queries\u002Fopen-tasks --root .\u002Fkb --field tags --index\n```\n\nUse manual editing when changing prose, multi-line descriptions, relationship\nlists, or citations. After manual editing:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\nAvoid ID churn. If an ID changes because a file moved or was renamed, inspect\n`related`, `depends_on`, backlinks, citations, and external references.\n\n## Validation And Repair\n\nRun validation after every material batch:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\nCommon validation failures:\n\n| Code or symptom | Meaning | Usual fix |\n| --- | --- | --- |\n| Missing index | Index has not been built | `\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root \u003Croot>` |\n| Duplicate IDs | Two pages resolve to the same ID | Rename\u002Fmove one file or set a distinct ID if supported |\n| Broken source | Sidecar `source` target is missing | Fix path or restore the source asset |\n| Dangling related\u002Fdepends_on | Relationship points to a missing ID | Correct the ID or remove the stale link |\n| Stale index | Source files differ from index cache | Rebuild with `index` |\n| Invalid frontmatter | YAML is malformed or not a mapping | Repair the YAML delimiters and values |\n\n`validate` reports; it does not repair. Inspect failures before changing files,\nand sample 3-5 files before a broad repair.\n\n## Retrieval Workflow\n\nSearch first:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search \"renewal risk\" --root .\u002Fkb --limit 10\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search --root .\u002Fkb --category company --tag renewal-risk\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search \"open tasks\" --root .\u002Fkb --sort priority --order asc\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search \"decision quality\" --root .\u002Fkb --semantic --explain\n```\n\nThen hydrate:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json show companies\u002Facme-example --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json resolve companies\u002Facme-example --root .\u002Fkb --body\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json resolve queries\u002Fopen-tasks --root .\u002Fkb --body --source\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" cat queries\u002Fopen-tasks --root .\u002Fkb --source\n```\n\nUse `search` to shortlist, `show` for metadata, `resolve` for paths\u002Fbody\u002Fsource\nJSON, `cat` for raw text, and `context` for answer-ready bundles.\n\nDo not answer from `search` metadata alone when the body or source content\nmatters. Search results are pointers, not full evidence.\n\n## Context Assembly\n\nUse `context` when the next step is synthesis or answering:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context \"renewal risk\" --root .\u002Fkb --limit 5 --token-budget 3000\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context --root .\u002Fkb --id companies\u002Facme-example --related --token-budget 4000\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context --root .\u002Fkb --id queries\u002Fopen-tasks --no-dependencies\n```\n\n`context` is deterministic and useful for reproducible prompts. Still inspect\nwhether the bundle includes enough source evidence; add explicit IDs if search\nmissed important records.\n\n## Federated Search\n\nUse federated search when the question crosses source scopes:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json federated-search \"renewal risk\" \\\n  --vault .\u002Fpersonal-kb \\\n  --vault .\u002Fteam-kb \\\n  --per-vault-limit 5 \\\n  --limit 10\n```\n\nIn outputs and answers, preserve vault origin and privacy scope. Do not merge\npersonal and team facts without labeling their source.\n\n## Git And Change Awareness\n\nUse `git-info` when you need to know whether a vault or item is dirty before\nwriting, committing, migrating, or publishing:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json git-info --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json git-info queries\u002Fopen-tasks --root .\u002Fkb\n```\n\nIf the target file is dirty and the changes are not yours, read them and work\nwith them. Do not overwrite user edits to frontmatter or source assets.\n\n## Sample Vault Smoke Test\n\nThe Knowledge Base plugin ships a synthetic mini vault:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsamples\u002Fmini-vault\"\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsamples\u002Fmini-vault\"\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search --tag renewal-risk --root \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsamples\u002Fmini-vault\"\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context --root \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsamples\u002Fmini-vault\" --id companies\u002Facme-example --related\n```\n\nUse this fixture when checking whether the plugin wrapper, Python fallback,\nindexing, validation, sidecars, and retrieval flow are functioning.\n\n## Integration With Other KB Skills\n\n- `setup`: create or verify the first vault.\n- `health`: repair metadata and index\u002Fgraph state with `validate`, `set`,\n  `unset`, `refresh`, and `index` (health absorbed frontmatter-guard and\n  maintenance).\n- `ingest`, `media-ingest`, `conversation-ingestion`: make filed source assets\n  discoverable with sidecars.\n- `query`: use `search`, `resolve`, and `context` as the local retrieval\n  substrate (query absorbed search-modes, source-router, and graph-ops; see\n  `references\u002Fretrieval.md`).\n- `references\u002Fraw-source-storage.md` and `references\u002Fprivacy-and-security.md`:\n  check source pointers, large assets, `scope`, and sensitivity before broad\n  indexing or publishing.\n- `citation-fixer`: hydrate pages with `resolve --body` before repairing gaps.\n- `sample-vault`: keep fixtures, parity, and plugin-health checks current.\n\n## Output Format\n\nFor maintenance tasks:\n\n```text\nVAULTLI RESULT\nRoot: \u003Cvault root>\nOperation: \u003Cinit\u002Fadd\u002Fscaffold\u002Fingest\u002Findex\u002Fvalidate\u002Fsearch\u002Fcontext\u002F...>\nFiles changed: \u003Ccount and paths, or none>\nIndex: \u003Crebuilt\u002Fskipped\u002Fmissing>\nValidation: \u003Cpass\u002Ffail and issue count>\nResults: \u003Ckey IDs or records>\nNext action: \u003Cnone \u002F inspect failures \u002F refine metadata \u002F rerun command>\n```\n\nFor retrieval tasks:\n\n```text\nVAULTLI RETRIEVAL\nRoot: \u003Cvault root>\nQuery: \u003Cquery or IDs>\nMode: \u003Cmetadata\u002Ffilter\u002Fsemantic\u002Fcontext\u002Ffederated>\nMatches: \u003CIDs with titles>\nHydrated: \u003CIDs opened with body\u002Fsource>\nConfidence: \u003Chigh\u002Fmedium\u002Flow>\nGaps: \u003Cmissing body\u002Fsource\u002Fstale index\u002Fprivacy constraint>\n```\n\n## Troubleshooting\n\n- `vaultli: no bundled binary found and python3 is unavailable`: expose\n  `python3` or build the Rust binary.\n- `ModuleNotFoundError: yaml`: install `PyYAML` for the Python fallback.\n- `No .kbroot found`: run from inside a vault or pass the correct root path.\n- `INDEX_MISSING`: run `\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root \u003Croot>`.\n- Search misses obvious content: metadata may be too generic, the file may lack\n  frontmatter\u002Fsidecar, or the index may be stale.\n- Missing source content: check the sidecar `source` field and run `validate`.\n- `--jq` fails: the external `jq` binary is not installed; use first-class\n  filters when possible.\n- Rust and Python disagree: rerun Rust parity tests and inspect\n  `..\u002F..\u002Fvaultli\u002Fcore.py`.\n\n## Release And CI Checks\n\nBefore claiming vaultli-related changes are ready:\n\n```bash\npython3 \"${CLAUDE_PLUGIN_ROOT}\u002F..\u002Fplugin-manager\u002Fskills\u002Fplugin-health\u002Fscripts\u002Fplugin_audit.py\" --plugin knowledge-base --json\nuv run --no-project --with pytest --with numpy --with pandas --with pyyaml pytest tests\u002Ftest_knowledge_base tests\u002Ftest_plugins\nCARGO_TARGET_DIR=\"${CLAUDE_PLUGIN_DATA:-\u002Ftmp}\u002Fvaultli-target\" cargo test --locked\n```\n\nRun the Cargo command from `${CLAUDE_PLUGIN_ROOT}\u002Fvaultli\u002Frs`.\n\nThe repository also includes `.github\u002Fworkflows\u002Fknowledge-base-vaultli.yml` for\nCI coverage of the Python fallback, sample vault validation, plugin audits, and\nRust vaultli tests.\n\n## Anti-Patterns\n\n- Editing `INDEX.jsonl` by hand.\n- Treating metadata search as if it loaded document bodies.\n- Creating sidecars without a valid `source` field.\n- Leaving scaffolded descriptions generic.\n- Running broad bulk ingestion without `--dry-run`.\n- Changing IDs casually.\n- Mixing personal\u002Fteam\u002Forg\u002Fpublic vaults without scope labels.\n- Trusting `search --semantic` as vector retrieval.\n- Skipping `validate` after metadata or source changes.\n- Committing generated caches or Rust `target\u002F` artifacts.\n","# vaultli\n\nUse `vaultli` when the task is to make a file tree of knowledge assets\ndiscoverable, auditable, retrievable, and safe for later agents. It is the\nKnowledge Base plugin's bundled CLI for vault roots, YAML metadata, sidecar\ndocumentation, JSONL indexes, validation, metadata search, and deterministic\ncontext assembly.\n\nThe bundled implementation lives at `..\u002F..\u002Fvaultli\u002F` relative to this skill.\nEnabled plugin sessions also expose a wrapper at `bin\u002Fvaultli`, so normal use\nlooks like:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json \u003Ccommand> ...\n```\n\nFor deeper reference, read only what you need:\n\n- `..\u002F..\u002Fvaultli\u002FREADME.md` for the tool overview and command surface.\n- `..\u002F..\u002Fvaultli\u002Fvaultli-spec-v1.0.md` for the storage and metadata spec.\n- `..\u002F..\u002Fvaultli\u002FSKILL.md` for the original full tool operating guide.\n- `..\u002F..\u002Freferences\u002Fsamples\u002Fwalkthrough.md` for a synthetic sample vault flow.\n- `..\u002F..\u002Freferences\u002Fschemas\u002Fpage-types.md` for KB page type conventions.\n\n## Contract\n\nWhen this skill is used:\n\n- The source of truth is the file tree. `INDEX.jsonl` is a rebuildable cache.\n- Markdown pages carry YAML frontmatter inline.\n- Non-markdown assets become discoverable only through same-directory sidecar\n  markdown files such as `retention.sql.md`.\n- Generated metadata is treated as a draft and refined before claiming the KB\n  is high quality.\n- Bulk writes are previewed with `--dry-run` and narrowed with `--include` or\n  `--exclude` when the tree is large.\n- Every material edit is followed by `\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index` and\n  `\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate`.\n- Retrieval happens in two stages: search metadata first, then hydrate body or\n  source content with `resolve`, `cat`, or `context`.\n- `search --semantic` is token-overlap matching over indexed metadata, not a\n  vector database or full-text search engine.\n- Do not edit `INDEX.jsonl` directly.\n\n## When To Use\n\nUse this skill for:\n\n- Creating or finding KB vault roots.\n- Adding or repairing markdown frontmatter.\n- Creating sidecars for SQL, Jinja, JSON, YAML, TOML, scripts, configs, and\n  other non-markdown assets.\n- Bulk scaffolding, indexing, validation, search, hydration, context assembly,\n  federated lookup, and stale\u002Fbroken state audits.\n\n## When Not To Use\n\nDo not use `vaultli` as the primary tool for:\n\n- Current web facts. Use `current-research`, then file the result if needed.\n- Semantic\u002Fvector retrieval expectations. `vaultli` is metadata-first.\n- Editing large binary assets. Store or point to them, then document with a\n  sidecar.\n- Replacing citation, privacy, or filing judgment. Pair with `citation-fixer`\n  and `health`, and read `references\u002Fprivacy-and-security.md` and\n  `references\u002Fkb-filing-rules.md`, when those concerns matter.\n- Automatically fixing validation failures without inspecting what they mean.\n\n## Core Mental Model\n\nvaultli uses markdown to wrap knowledge, YAML frontmatter for metadata, and JSONL for rebuildable indexes.\n\nA typical vault:\n\n```text\nkb\u002F\n  .kbroot\n  INDEX.jsonl\n  concepts\u002Fdecision-quality.md\n  queries\u002Fretention.sql\n  queries\u002Fretention.sql.md\n  templates\u002Freport.j2\n  templates\u002Freport.j2.md\n```\n\nNative markdown files are indexed directly. Non-markdown files are indexed\nthrough sidecars. Sidecars keep the original asset valid in its native format\nand put retrievable metadata and prose in markdown.\n\n## Invocation Rules\n\nPrefer the plugin wrapper:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json --help\n```\n\nThe wrapper chooses a compatible bundled Rust binary if one has been built,\nthen falls back to the Python package with `PYTHONPATH` pointed at the plugin\nroot. In local development, the Python fallback requires `PyYAML`.\n\nUse `--json` in agent workflows unless the user explicitly wants human-only\nterminal output. JSON output makes failures parseable and prevents brittle\nscreen-scraping.\n\nAlways pass `--root \u003Cvault-root>` for commands that operate on a vault. Do not\ndepend on the shell's current directory unless root discovery is the task.\n\n## Command Selection\n\n| Need | Command |\n| --- | --- |\n| Create\u002Ffind root | `init \u003Cpath>`, `root \u003Cpath>` |\n| Preview IDs\u002Fmetadata | `make-id \u003Cfile> --root \u003Croot>`, `infer \u003Cfile> --root \u003Croot>` |\n| Add markdown | `add \u003Cfile> --root \u003Croot>` |\n| Add non-markdown sidecar | `scaffold \u003Cfile> --root \u003Croot>` |\n| Bulk scaffold | `ingest \u003Cpath> --root \u003Croot> --dry-run` |\n| Maintain fields | `set`, `unset`, `refresh` |\n| Rebuild\u002Faudit | `index --root \u003Croot>`, `validate --root \u003Croot>` |\n| Search\u002Fhydrate | `search`, `show`, `resolve`, `cat`, `context` |\n| Multi-vault\u002Fgit | `federated-search`, `git-info`, `dump-index` |\n\n## Workflow\n\nFor most maintenance work, run this loop:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json root .\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search \"retention query\" --root .\u002Fkb --limit 5\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json resolve queries\u002Fretention --root .\u002Fkb --body --source\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context --root .\u002Fkb --id queries\u002Fretention --token-budget 2000\n```\n\nIf `ingest --dry-run` shows too many changes, narrow it:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run --include 'queries\u002F*.sql'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run --exclude 'tmp\u002F**'\n```\n\nAfter reviewing the dry-run, run the write command intentionally:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --index --include 'queries\u002F*.sql'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\n### Creating A New Vault\n\nPick a root that belongs to the user or project, initialize only when `.kbroot`\nis missing, add or scaffold a few representative files, refine metadata, then\nindex and validate:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json init .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json add .\u002Fkb\u002Fconcepts\u002Fdecision-quality.md --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json scaffold .\u002Fkb\u002Fqueries\u002Fopen_tasks.sql --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\n`.kbroot` may contain conservative YAML defaults:\n\n```yaml\ndefaults:\n  author: brian\n  scope: personal\n  domain: knowledge-management\n```\n\nDefaults should never be used to hide per-file specificity.\n\n## Metadata Quality\n\nThe practical fields for useful retrieval are:\n\n- `id`: stable path-derived identifier, used by links and dependencies.\n- `title`: human-readable display name.\n- `description`: one precise sentence explaining what the page or asset is for.\n- `category`: useful type such as `person`, `company`, `concept`, `conversation`,\n  `source`, `query`, `template`, `runbook`, `report`, or `task`.\n- `tags`: flat, retrieval-friendly keywords.\n- `status`: `draft`, `active`, `review`, `deprecated`, or `archived`.\n- `scope`: `personal`, `team`, `org`, or `public`.\n- `related` and `depends_on`: soft links and structural prerequisites.\n- `source`: required for sidecars and relative to the sidecar.\n\nTreat `description` as the most valuable retrieval field. Replace generic\nscaffold text like \"Markdown document for...\" with specific language that\nanswers: \"When should an agent retrieve this?\"\n\nGood:\n\n```yaml\ndescription: >-\n  SQL query that finds overdue renewal tasks by account owner and priority for\n  weekly customer-success review.\ntags: [renewal, tasks, customer-success, sql]\ncategory: query\n```\n\nWeak:\n\n```yaml\ndescription: SQL query stored in the vault.\ntags: [query]\n```\n\n## Sidecar Workflow\n\nFor a non-markdown asset, keep the source file untouched and create a sidecar:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json scaffold .\u002Fkb\u002Fqueries\u002Fopen_tasks.sql --root .\u002Fkb\n```\n\nExpected files:\n\n```text\nkb\u002Fqueries\u002Fopen_tasks.sql\nkb\u002Fqueries\u002Fopen_tasks.sql.md\n```\n\nThe sidecar frontmatter must include:\n\n```yaml\nsource: .\u002Fopen_tasks.sql\n```\n\nFill the body with purpose, parameters, assumptions, usage, sample output, and\ndownstream consumers. `search` finds the sidecar metadata; `resolve --source`\nor `cat --source` retrieves the executable SQL\u002Ftemplate\u002Fconfig.\n\nSidecar rules:\n\n- The sidecar lives beside the source asset and is named `\u003Csource>.\u003Cext>.md`.\n- A broken `source` field makes validation fail.\n- Sidecar-backed hashes are based on source asset bytes.\n\n## Bulk Ingestion\n\nUse bulk ingestion when a directory already contains useful files but lacks KB\nmetadata.\n\nStart with a preview, slice large trees, then write in batches:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run --include 'queries\u002F*.sql'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --dry-run --exclude 'archive\u002F**'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json ingest .\u002Fkb --root .\u002Fkb --index --include 'queries\u002F*.sql'\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\nAfter writing, manually improve generated metadata. The scaffold is allowed to\nbe mechanical; the curated KB should not stay mechanical.\n\n## Metadata Maintenance\n\nUse `set`, `unset`, and `refresh` for simple frontmatter changes:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json set queries\u002Fopen-tasks status active --root .\u002Fkb --index\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json set queries\u002Fopen-tasks scope team --root .\u002Fkb --index\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json unset queries\u002Fopen-tasks priority --root .\u002Fkb --index\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json refresh queries\u002Fopen-tasks --root .\u002Fkb --field tags --index\n```\n\nUse manual editing when changing prose, multi-line descriptions, relationship\nlists, or citations. After manual editing:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\nAvoid ID churn. If an ID changes because a file moved or was renamed, inspect\n`related`, `depends_on`, backlinks, citations, and external references.\n\n## Validation And Repair\n\nRun validation after every material batch:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root .\u002Fkb\n```\n\nCommon validation failures:\n\n| Code or symptom | Meaning | Usual fix |\n| --- | --- | --- |\n| Missing index | Index has not been built | `\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root \u003Croot>` |\n| Duplicate IDs | Two pages resolve to the same ID | Rename\u002Fmove one file or set a distinct ID if supported |\n| Broken source | Sidecar `source` target is missing | Fix path or restore the source asset |\n| Dangling related\u002Fdepends_on | Relationship points to a missing ID | Correct the ID or remove the stale link |\n| Stale index | Source files differ from index cache | Rebuild with `index` |\n| Invalid frontmatter | YAML is malformed or not a mapping | Repair the YAML delimiters and values |\n\n`validate` reports; it does not repair. Inspect failures before changing files,\nand sample 3-5 files before a broad repair.\n\n## Retrieval Workflow\n\nSearch first:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search \"renewal risk\" --root .\u002Fkb --limit 10\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search --root .\u002Fkb --category company --tag renewal-risk\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search \"open tasks\" --root .\u002Fkb --sort priority --order asc\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search \"decision quality\" --root .\u002Fkb --semantic --explain\n```\n\nThen hydrate:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json show companies\u002Facme-example --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json resolve companies\u002Facme-example --root .\u002Fkb --body\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json resolve queries\u002Fopen-tasks --root .\u002Fkb --body --source\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" cat queries\u002Fopen-tasks --root .\u002Fkb --source\n```\n\nUse `search` to shortlist, `show` for metadata, `resolve` for paths\u002Fbody\u002Fsource\nJSON, `cat` for raw text, and `context` for answer-ready bundles.\n\nDo not answer from `search` metadata alone when the body or source content\nmatters. Search results are pointers, not full evidence.\n\n## Context Assembly\n\nUse `context` when the next step is synthesis or answering:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context \"renewal risk\" --root .\u002Fkb --limit 5 --token-budget 3000\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context --root .\u002Fkb --id companies\u002Facme-example --related --token-budget 4000\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context --root .\u002Fkb --id queries\u002Fopen-tasks --no-dependencies\n```\n\n`context` is deterministic and useful for reproducible prompts. Still inspect\nwhether the bundle includes enough source evidence; add explicit IDs if search\nmissed important records.\n\n## Federated Search\n\nUse federated search when the question crosses source scopes:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json federated-search \"renewal risk\" \\\n  --vault .\u002Fpersonal-kb \\\n  --vault .\u002Fteam-kb \\\n  --per-vault-limit 5 \\\n  --limit 10\n```\n\nIn outputs and answers, preserve vault origin and privacy scope. Do not merge\npersonal and team facts without labeling their source.\n\n## Git And Change Awareness\n\nUse `git-info` when you need to know whether a vault or item is dirty before\nwriting, committing, migrating, or publishing:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json git-info --root .\u002Fkb\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json git-info queries\u002Fopen-tasks --root .\u002Fkb\n```\n\nIf the target file is dirty and the changes are not yours, read them and work\nwith them. Do not overwrite user edits to frontmatter or source assets.\n\n## Sample Vault Smoke Test\n\nThe Knowledge Base plugin ships a synthetic mini vault:\n\n```bash\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsamples\u002Fmini-vault\"\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json validate --root \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsamples\u002Fmini-vault\"\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json search --tag renewal-risk --root \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsamples\u002Fmini-vault\"\n\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json context --root \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsamples\u002Fmini-vault\" --id companies\u002Facme-example --related\n```\n\nUse this fixture when checking whether the plugin wrapper, Python fallback,\nindexing, validation, sidecars, and retrieval flow are functioning.\n\n## Integration With Other KB Skills\n\n- `setup`: create or verify the first vault.\n- `health`: repair metadata and index\u002Fgraph state with `validate`, `set`,\n  `unset`, `refresh`, and `index` (health absorbed frontmatter-guard and\n  maintenance).\n- `ingest`, `media-ingest`, `conversation-ingestion`: make filed source assets\n  discoverable with sidecars.\n- `query`: use `search`, `resolve`, and `context` as the local retrieval\n  substrate (query absorbed search-modes, source-router, and graph-ops; see\n  `references\u002Fretrieval.md`).\n- `references\u002Fraw-source-storage.md` and `references\u002Fprivacy-and-security.md`:\n  check source pointers, large assets, `scope`, and sensitivity before broad\n  indexing or publishing.\n- `citation-fixer`: hydrate pages with `resolve --body` before repairing gaps.\n- `sample-vault`: keep fixtures, parity, and plugin-health checks current.\n\n## Output Format\n\nFor maintenance tasks:\n\n```text\nVAULTLI RESULT\nRoot: \u003Cvault root>\nOperation: \u003Cinit\u002Fadd\u002Fscaffold\u002Fingest\u002Findex\u002Fvalidate\u002Fsearch\u002Fcontext\u002F...>\nFiles changed: \u003Ccount and paths, or none>\nIndex: \u003Crebuilt\u002Fskipped\u002Fmissing>\nValidation: \u003Cpass\u002Ffail and issue count>\nResults: \u003Ckey IDs or records>\nNext action: \u003Cnone \u002F inspect failures \u002F refine metadata \u002F rerun command>\n```\n\nFor retrieval tasks:\n\n```text\nVAULTLI RETRIEVAL\nRoot: \u003Cvault root>\nQuery: \u003Cquery or IDs>\nMode: \u003Cmetadata\u002Ffilter\u002Fsemantic\u002Fcontext\u002Ffederated>\nMatches: \u003CIDs with titles>\nHydrated: \u003CIDs opened with body\u002Fsource>\nConfidence: \u003Chigh\u002Fmedium\u002Flow>\nGaps: \u003Cmissing body\u002Fsource\u002Fstale index\u002Fprivacy constraint>\n```\n\n## Troubleshooting\n\n- `vaultli: no bundled binary found and python3 is unavailable`: expose\n  `python3` or build the Rust binary.\n- `ModuleNotFoundError: yaml`: install `PyYAML` for the Python fallback.\n- `No .kbroot found`: run from inside a vault or pass the correct root path.\n- `INDEX_MISSING`: run `\"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fvaultli\" --json index --root \u003Croot>`.\n- Search misses obvious content: metadata may be too generic, the file may lack\n  frontmatter\u002Fsidecar, or the index may be stale.\n- Missing source content: check the sidecar `source` field and run `validate`.\n- `--jq` fails: the external `jq` binary is not installed; use first-class\n  filters when possible.\n- Rust and Python disagree: rerun Rust parity tests and inspect\n  `..\u002F..\u002Fvaultli\u002Fcore.py`.\n\n## Release And CI Checks\n\nBefore claiming vaultli-related changes are ready:\n\n```bash\npython3 \"${CLAUDE_PLUGIN_ROOT}\u002F..\u002Fplugin-manager\u002Fskills\u002Fplugin-health\u002Fscripts\u002Fplugin_audit.py\" --plugin knowledge-base --json\nuv run --no-project --with pytest --with numpy --with pandas --with pyyaml pytest tests\u002Ftest_knowledge_base tests\u002Ftest_plugins\nCARGO_TARGET_DIR=\"${CLAUDE_PLUGIN_DATA:-\u002Ftmp}\u002Fvaultli-target\" cargo test --locked\n```\n\nRun the Cargo command from `${CLAUDE_PLUGIN_ROOT}\u002Fvaultli\u002Frs`.\n\nThe repository also includes `.github\u002Fworkflows\u002Fknowledge-base-vaultli.yml` for\nCI coverage of the Python fallback, sample vault validation, plugin audits, and\nRust vaultli tests.\n\n## Anti-Patterns\n\n- Editing `INDEX.jsonl` by hand.\n- Treating metadata search as if it loaded document bodies.\n- Creating sidecars without a valid `source` field.\n- Leaving scaffolded descriptions generic.\n- Running broad bulk ingestion without `--dry-run`.\n- Changing IDs casually.\n- Mixing personal\u002Fteam\u002Forg\u002Fpublic vaults without scope labels.\n- Trusting `search --semantic` as vector retrieval.\n- Skipping `validate` after metadata or source changes.\n- Committing generated caches or Rust `target\u002F` artifacts.\n",{"name":5,"mutating":43,"triggers":44,"description":49,"allowed-tools":50,"disable-model-invocation":39},true,[5,45,46,47,48],"validate knowledge base vault","index KB vault","search vault metadata","assemble vault context","Use when initializing, maintaining, validating, searching, documenting, or assembling context from a file-based knowledge base with the bundled vaultli CLI. Trigger on knowledge vaults, KB setup, .kbroot, YAML frontmatter, sidecar markdown, INDEX.jsonl, documenting SQL\u002Ftemplates\u002Fconfigs\u002Fscripts, validating stale or broken KB state, searching vault metadata, hydrating source assets, assembling retrieval context, or federated lookup across multiple vault roots.\n",[51,52,53,32],"Read","Write","Edit","main","620031c5572a1f84fed2823ab8d77bb7702cd5c7","plugins\u002Fknowledge-base\u002Fskills\u002Fvaultli",0,"https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics","https:\u002F\u002Fgithub.com\u002Fweisberg","www.betafactory.com","2026-11-11 22:15:54",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":43},[64,67,70],{"tool":65,"command":66},"npx","npx skills add weisberg\u002Fagile_agentic_analytics --skill vaultli",{"tool":68,"command":69},"bunx","bunx skills add weisberg\u002Fagile_agentic_analytics --skill vaultli",{"tool":71,"command":72},"pnpm","pnpm dlx skills add weisberg\u002Fagile_agentic_analytics --skill vaultli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics\u002Fblob\u002Fmain\u002Fplugins\u002Fknowledge-base\u002Fskills\u002Fvaultli\u002FSKILL.md",[],[76,84,91,98,112,136],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"01M764C2BKRGN20MZX133PJ1W0","metric-reconciliation","Use when two reports disagree, a KPI needs reconciliation across sources, or actuals need to be compared with a plan, forecast vintage, or prior methodology. Align population, coverage, calendar, attribution, and observation windows before computing gaps. Identify missing slices and preserve unresolved residuals.","https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics\u002Fblob\u002Fmain\u002Fplugins\u002Flead-analyst\u002Fskills\u002Fmetric-reconciliation\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":83},"01M764BEYCZFSH1S50766ZBMZ0","analysis-handoff","Use to make a recurring SQL analysis reproducible, hand it to another analyst, or check whether an analysis bundle changed. Capture the exact query, metric definitions, inputs, source vintages, checks, and rerun steps in a portable folder without requiring a copy of row-level results.","https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics\u002Fblob\u002Fmain\u002Fplugins\u002Flead-analyst\u002Fskills\u002Fanalysis-handoff\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":83},"01M764AGGMGNNBB3F1MCXPBX3T","conversation-ingestion","File a conversation transcript or notes from an interview, research discussion, or support exchange. Preserve the raw material, capture decisions and actions, and update participant and company timelines. Trigger on 'process this conversation', 'ingest this conversation', 'file this transcript', or 'conversation notes to KB'. For standalone media use media-ingest. For source routing use ingest.","https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics\u002Fblob\u002Fmain\u002Fplugins\u002Fknowledge-base\u002Fskills\u002Fconversation-ingestion\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":38},"01M6GKH0CNX0V8JYCFTFT0C8TJ","minimal-skill","Minimal shared skill fixture for marketplace renderer and validator examples.","https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fminimal-plugin\u002Fskills\u002Fminimal-skill\u002FSKILL.md",[],[105,106,107,108,109,33,110,111],"minimal skill","minimal","shared","examples","fixture","marketplace","shared skill",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":38},"01M6GKGW83KH0GN15MQGXM4596","roadmap","Use this skill when the user wants a product roadmap, initiative sequencing, Now\u002FNext\u002FLater plan, quarterly roadmap, release theme map, product strategy-to-roadmap translation, or executive roadmap narrative. Trigger on phrases like \"build a roadmap\", \"roadmap these initiatives\", \"what should be now next later\", \"sequence this backlog\", \"quarterly product roadmap\", \"theme-based roadmap\", or \"plan the next two quarters\". Do NOT trigger for drafting or reviewing a single PRD (use prd-writer or prd-review), converting a PRD into an agentic PLAN.md (use prd-to-plan), or scoring\u002Franking a set of options without a time horizon (use prioritization).","https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics\u002Fblob\u002Fmain\u002Fplugins\u002Fproduct-manager\u002Fskills\u002Froadmap\u002FSKILL.md",[],[114,33,119,120,121,122,123,124,125,126,127,128,129,130,32,131,132,133,134,135],"time","backlog","trigger","ranking","true","strategy","map","now","use","sequencing","translation","agentic","scoring","theme","writer","SET","do",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":38},"01M6GKGQTF57NFBDM5NZ89CV06","prioritization","Use this skill when the user wants to rank, score, triage, or compare product opportunities, features, PRD requirements, backlog items, roadmap candidates, or initiatives using RICE, impact-effort, confidence, reach, value, effort, risk, or tradeoff analysis. Trigger on phrases like \"prioritize these features\", \"rank this backlog\", \"RICE score\", \"impact effort matrix\", \"what should we build first\", \"compare these initiatives\", or \"stack rank product bets\". Do NOT trigger for a time-based roadmap (use roadmap), writing or reviewing one PRD (use prd-writer or prd-review), turning a PRD into an agentic plan (use prd-to-plan), or analyzing experiment results (use ab-testing or experimentation skills).","https:\u002F\u002Fgithub.com\u002Fweisberg\u002Fagile_agentic_analytics\u002Fblob\u002Fmain\u002Fplugins\u002Fproduct-manager\u002Fskills\u002Fprioritization\u002FSKILL.md",[],[138,33,133,135,143,119,120,121,144,123,145,146,127,114,130,32,147,148,149,150],"risk","testing","writing","impact","requirements","analysis","compare","review"]