/lessons:import [source] [space]from lessons
Bulk-load entries into a vexicon space using HybridClient.
Ships in lessons. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write a one-off conversion script in the scratchpad and run it with the pinned vexicon release. The script talks to the same databases as the MCP server, so what it writes is what later searches find.
Call the get_settings tool first. Its vexicon field gives the release (requirement) and the database paths (chroma, index_db), and settings.device gives the device.
vexicon_describe_space. If it does not exist, ask the user for its readme and embedding model rather than inventing them, download the model with vexicon_download_embedding_model, then create the space with vexicon_create_space. The library only loads models already on disk.embedding_max_tokens from the space. Each entry's text must fit in half of it; longer text is truncated silently when embedded. Split or summarize the source accordingly.Pure conversion first, one add_entries call at the end. Parse the source into NewEntry objects, which validate the ID pattern, then write them in one batch so a failure leaves the space untouched.
cat > <scratchpad>/import.py <<'EOF'
from pathlib import Path
from vexicon import Device, HybridClient, NewEntry
SPACE = "..."
SOURCE = Path(r"...")
def entries_from(source: Path) -> list[NewEntry]:
# Read the source, split it into units, and return one NewEntry per unit.
# id: kebab-case, derived from the source. meta: scalars or lists of scalars.
...
with HybridClient(
Path(r"<vexicon.chroma>"),
Path(r"<vexicon.index_db>"),
device=Device("<settings.device>"),
) as client:
entries = entries_from(SOURCE)
client.add_entries(SPACE, entries)
print(f"added {len(entries)} entries to {SPACE}")
EOF
uv run --no-project --with "<vexicon.requirement>" python <scratchpad>/import.py
Replace each <...> with the value from get_settings.
meta values must be str, int, float, bool, or lists of those. created_at is set by the library; do not put it in meta. The keys readme, embedding_repo_id, and embedding_max_tokens are reserved on spaces, not entries.
Errors to expect: DuplicateEntryIdsError when IDs repeat in the batch, EntriesExistError listing the IDs already stored, and SpaceNotIndexedError when the space name is wrong. Fix the conversion and rerun rather than catching them.
The running MCP server keeps its own copy of Chroma in memory and does not see the new entries until it reloads, which happens after its idle timeout or when the user reconnects it with /mcp. Verify with vexicon_describe_space or vexicon_search after that.
Any text below names the source, the space, or narrows what to import.
$ARGUMENTSWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub estasney/agent-skills --plugin lessons2 skills in this plugin