[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75YB921850BFWQVFHKNRZ3D":3,"skill-same:01M75YB921850BFWQVFHKNRZ3D":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M75YB921850BFWQVFHKNRZ3D","memex:embed:reembed",null,"Re-encode EVERY documents row (NULL and non-NULL) using the currently-configured provider. Use after a deliberate provider or model change — old embeddings are dimensionally or semantically incomparable with new ones. Destructive — overwrites existing embeddings. Has a confirmation gate.","nitekeeper\u002Fmemex","nitekeeper","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130331363?v=4","01M75Y8ZMS1S9AFVBJN1DY5116","01M75Y8ZNHA5WFYR4A94NKZN76",0,"MIT","https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex\u002Fblob\u002Fmain\u002Finternal\u002Fembed\u002Freembed\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: memex:embed:reembed\ndescription: Re-encode EVERY documents row (NULL and non-NULL) using the currently-configured provider. Use after a deliberate provider or model change — old embeddings are dimensionally or semantically incomparable with new ones. Destructive — overwrites existing embeddings. Has a confirmation gate.\n---\n\n# memex:embed:reembed\n\n## When to use\n\nYou changed `MEMEX_EMBEDDING_PROVIDER` (e.g., switched from openai → voyage) or the model env var (e.g., `MEMEX_OPENAI_MODEL` from `text-embedding-3-small` → `text-embedding-3-large`). Existing embeddings from the old config are incompatible with the new one — different dimensions, different vector space, different cosine semantics.\n\nThis skill regenerates every row's embedding under the current config. Heavier than `backfill` (touches every row, not just NULL ones), so it's gated by a confirmation prompt.\n\n## Inputs\n\n- (optional) `batch_size` — commit every N rows. Default 100.\n- (optional) `dry_run` — preview the change without writes. Default false.\n- (optional) `force` — skip the model-change-check warning. Default false.\n\n## Recipe\n\n### Step 1 — Detect drift between active config and what's recorded\n\n```python\nfrom scripts import embeddings\ndrift = embeddings.detect_model_change()\n```\n\n`drift` is `None` if the active provider\u002Fmodel matches what's recorded in `registry.json:__embedding_model__`, otherwise a dict:\n\n```python\n{\"active\":   {\"provider\": ..., \"model\": ..., \"dim\": ...},\n \"recorded\": {\"provider\": ..., \"model\": ..., \"dim\": ...},\n \"changed\":  [\"provider\"|\"model\"|\"dim\", ...]}\n```\n\nIf `drift is None` and `force` is not set, ask the user: \"No model change detected — active provider\u002Fmodel match what's recorded. Re-embed anyway? (y\u002Fn)\". Only proceed on yes.\n\nIf `drift is not None`, summarize the change for the user:\n\n```\nModel change detected:\n  was:  \u003Crecorded.provider> \u002F \u003Crecorded.model> ({recorded.dim}-dim)\n  now:  \u003Cactive.provider>   \u002F \u003Cactive.model>   ({active.dim}-dim)\nChanged: \u003Cchanged list>\n\nRe-embedding will overwrite all existing embeddings in\n~\u002F.memex\u002Findex.db. Continue? (y\u002Fn)\n```\n\nWait for confirmation. STOP on no.\n\n### Step 2 — (optional) Dry run\n\n```python\npreview = embeddings.reembed_all(dry_run=True)\n```\n\n`preview` includes `previous_recorded` so the user can see what's being replaced. Useful for cost-estimating against an API.\n\n### Step 3 — Run the reembed\n\n```python\nresult = embeddings.reembed_all()\n```\n\nPer-row errors are counted in `errors`; failed rows keep their previous (now-stale) embedding. Re-running picks up retries naturally.\n\n### Step 4 — Report\n\n```\nRe-embed complete (provider=\u003Cp>, model=\u003Cm>, dim=\u003Cd>):\n  was:        \u003Cprevious_recorded.provider\u002Fmodel\u002Fdim>\n  considered: \u003CN>\n  encoded:    \u003CM>\n  errors:     \u003CE>\n```\n\nIf `errors > 0`, urge the user to investigate — partial re-embeds mean some rows are still on the old model and will return bad cosine scores.\n\n## Errors\n\nSame provider-SDK \u002F env-var errors as `backfill`. Per-row encoding errors are counted, not raised.\n\n## Notes\n\n- Destructive by definition: existing non-NULL embeddings are overwritten. There's no rollback. If you want to keep the old embeddings, snapshot `~\u002F.memex\u002Findex.db` before running.\n- API cost: encodes every document once. Cost-estimate with `dry_run` before running on a large Index; Voyage \u002F Local are cheaper \u002F free.\n- If you only want to fill NULL rows (e.g., you just added a key and never had embeddings before), use `memex:embed:backfill` — it's idempotent and doesn't touch existing data.\n- The recorded `__embedding_model__` in `registry.json` is updated automatically when `encode()` runs — no separate step needed to sync registry state.\n","# memex:embed:reembed\n\n## When to use\n\nYou changed `MEMEX_EMBEDDING_PROVIDER` (e.g., switched from openai → voyage) or the model env var (e.g., `MEMEX_OPENAI_MODEL` from `text-embedding-3-small` → `text-embedding-3-large`). Existing embeddings from the old config are incompatible with the new one — different dimensions, different vector space, different cosine semantics.\n\nThis skill regenerates every row's embedding under the current config. Heavier than `backfill` (touches every row, not just NULL ones), so it's gated by a confirmation prompt.\n\n## Inputs\n\n- (optional) `batch_size` — commit every N rows. Default 100.\n- (optional) `dry_run` — preview the change without writes. Default false.\n- (optional) `force` — skip the model-change-check warning. Default false.\n\n## Recipe\n\n### Step 1 — Detect drift between active config and what's recorded\n\n```python\nfrom scripts import embeddings\ndrift = embeddings.detect_model_change()\n```\n\n`drift` is `None` if the active provider\u002Fmodel matches what's recorded in `registry.json:__embedding_model__`, otherwise a dict:\n\n```python\n{\"active\":   {\"provider\": ..., \"model\": ..., \"dim\": ...},\n \"recorded\": {\"provider\": ..., \"model\": ..., \"dim\": ...},\n \"changed\":  [\"provider\"|\"model\"|\"dim\", ...]}\n```\n\nIf `drift is None` and `force` is not set, ask the user: \"No model change detected — active provider\u002Fmodel match what's recorded. Re-embed anyway? (y\u002Fn)\". Only proceed on yes.\n\nIf `drift is not None`, summarize the change for the user:\n\n```\nModel change detected:\n  was:  \u003Crecorded.provider> \u002F \u003Crecorded.model> ({recorded.dim}-dim)\n  now:  \u003Cactive.provider>   \u002F \u003Cactive.model>   ({active.dim}-dim)\nChanged: \u003Cchanged list>\n\nRe-embedding will overwrite all existing embeddings in\n~\u002F.memex\u002Findex.db. Continue? (y\u002Fn)\n```\n\nWait for confirmation. STOP on no.\n\n### Step 2 — (optional) Dry run\n\n```python\npreview = embeddings.reembed_all(dry_run=True)\n```\n\n`preview` includes `previous_recorded` so the user can see what's being replaced. Useful for cost-estimating against an API.\n\n### Step 3 — Run the reembed\n\n```python\nresult = embeddings.reembed_all()\n```\n\nPer-row errors are counted in `errors`; failed rows keep their previous (now-stale) embedding. Re-running picks up retries naturally.\n\n### Step 4 — Report\n\n```\nRe-embed complete (provider=\u003Cp>, model=\u003Cm>, dim=\u003Cd>):\n  was:        \u003Cprevious_recorded.provider\u002Fmodel\u002Fdim>\n  considered: \u003CN>\n  encoded:    \u003CM>\n  errors:     \u003CE>\n```\n\nIf `errors > 0`, urge the user to investigate — partial re-embeds mean some rows are still on the old model and will return bad cosine scores.\n\n## Errors\n\nSame provider-SDK \u002F env-var errors as `backfill`. Per-row encoding errors are counted, not raised.\n\n## Notes\n\n- Destructive by definition: existing non-NULL embeddings are overwritten. There's no rollback. If you want to keep the old embeddings, snapshot `~\u002F.memex\u002Findex.db` before running.\n- API cost: encodes every document once. Cost-estimate with `dry_run` before running on a large Index; Voyage \u002F Local are cheaper \u002F free.\n- If you only want to fill NULL rows (e.g., you just added a key and never had embeddings before), use `memex:embed:backfill` — it's idempotent and doesn't touch existing data.\n- The recorded `__embedding_model__` in `registry.json` is updated automatically when `encode()` runs — no separate step needed to sync registry state.\n",{"name":5,"description":7},"main","63a7b54c6f668f8d3211623b3199c39105162c68","internal\u002Fembed\u002Freembed","https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex","https:\u002F\u002Fgithub.com\u002Fnitekeeper","Go with the flow!","2026-09-22 07:17:04",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add nitekeeper\u002Fmemex --skill \"memex:embed:reembed\"",{"tool":36,"command":37},"bunx","bunx skills add nitekeeper\u002Fmemex --skill \"memex:embed:reembed\"",{"tool":39,"command":40},"pnpm","pnpm dlx skills add nitekeeper\u002Fmemex --skill \"memex:embed:reembed\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex\u002Fblob\u002Fmain\u002Finternal\u002Fembed\u002Freembed\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M75YC1J4D3Y84T5DV40V337Y","run","Use to invoke any Memex v2.0 operation. Routes user-facing intents (ingest, ask, capture, lint, synthesize, dashboard) and agent-facing CRUD primitives to the right internal procedure.","https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex\u002Fblob\u002Fmain\u002Fskills\u002Frun\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M75YBYMEKDRW88VSACQ8BXHH","memex:steward:reconcile-orphan","Authorized fix-up of a flagged orphan. Four actions — delete-index (remove documents row), repair (backfill row_id when target exists), reindex (re-run Librarian; deferred), note (acknowledge). Raises OrphanNotFoundError when index_id is unknown or, for repair, already linked.","https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex\u002Fblob\u002Fmain\u002Finternal\u002Fsteward\u002Freconcile-orphan\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M75YBVWGDMMATQAPY3S2KYQX","memex:steward:dashboard","Launch a loopback-only, read-only HTTP dashboard over Memex — per-store summary, the federated index, knowledge communities, the code-navigation graph, and the agent registry, plus keyword search, a click-to-read content overlay, and an interactive 3D knowledge-graph view.","https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex\u002Fblob\u002Fmain\u002Finternal\u002Fsteward\u002Fdashboard\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M75YBS1Y5QYT1JZWN7D90DT0","memex:steward:audit","Run a full integrity audit across the Memex Index and all registered stores. Detects orphans, broken relations, schema drift. Writes a structured audit report to ~\u002F.memex\u002Faudits\u002F. Read-only — never auto-fixes.","https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex\u002Fblob\u002Fmain\u002Finternal\u002Fsteward\u002Faudit\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M75YBQ7622SDEJDCHC02W8HQ","memex:steward:audit-store","Run an integrity audit scoped to a single registered store (reverse orphans + schema drift). Lighter than full audit.","https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex\u002Fblob\u002Fmain\u002Finternal\u002Fsteward\u002Faudit-store\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M75YBKEHA8KVK5FM22F4MWJW","memex:index:write","Direct write to the federated Index — the lower-level primitive that memex:brain:ingest and memex:brain:capture build on. Use when a consumer (Atelier, custom plugin) needs to add a document to its own store and have it indexed by the Librarian, without going through the Brain layer. Routes through Librarian subagent + Memex Core.","https:\u002F\u002Fgithub.com\u002Fnitekeeper\u002Fmemex\u002Fblob\u002Fmain\u002Finternal\u002Findex\u002Fwrite\u002FSKILL.md",[],[]]