memex:core:create-store
Create a new Memex-managed SQLite store from a directory of SQL migration files. Use when a consumer (Atelier, Brain, custom) needs a fresh project- or domain-scoped store. Memex creates the file with WAL pragmas, installs the universal migrations table, applies each .sql file in lexical order, and registers the store in the global registry.
- License 许可
- MIT
- 所属仓库
- nitekeeper/memex
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- memex:core:create-store
- description
- Create a new Memex-managed SQLite store from a directory of SQL migration files. Use when a consumer (Atelier, Brain, custom) needs a fresh project- or domain-scoped store. Memex creates the file with WAL pragmas, installs the universal migrations table, applies each .sql file in lexical order, and registers the store in the global registry.
03 SKILL.md 正文
memex:core:create-store
When to use
A consumer needs a new SQLite store provisioned. Typical callers:
- A workspace agent setting up
<repo>/.memex/store.dbfor project work. - An installer seeding a default store like
~/.memex/article.db. - A test fixture creating a disposable store.
Inputs
name— globally unique store namepath— absolute filesystem path for the new SQLite filemigrations_dir— directory containing.sqlmigration files
Invocation
scripts/stores.py:create_store(name, path, migrations_dir)
Errors
ValueError: Store already registered— pick a different name or usememex:core:migratesqlite3.OperationalError— invalid migration SQL
04 同仓库更多 Skills
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.
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.
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.
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 ~/.memex/audits/. Read-only — never auto-fixes.
memex:steward:audit-store
Run an integrity audit scoped to a single registered store (reverse orphans + schema drift). Lighter than full audit.
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.