/antigravity:notebook-kbfrom antigravity
Queries a local SQLite RAG database built from documents to produce grounded, cited answers — totals, timelines, entity lookups, and tables — without reloading source text into context.
Ships in antigravity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/agy:notebook <folder> | <objective> analyzes a folder of documents and compiles a queryable
SQLite database docs/agy/notebook/<slug>/notebook.db: documents, chunks (+FTS5 / optional vectors), entities, events, relations, citations. Every fact row carries a quote and a source
document. This skill is how you USE that DB to do real work — deterministically, with citations, and
without pulling the documents back into Claude's context.
/agy:notebook-query) for structured / aggregate / grounding work: totals of
amounts by category, "which documents mention <person/org/term>", timelines, entity rosters,
exporting a table, verifying a figure against its source. SQL is exact and auditable; prose is not./agy:notebook-ask for an open-ended prose answer grounded in the summaries.notebook.db is missing → run /agy:notebook <folder> | <objective>. If it's older than the newest *.facts.json → rebuild (Phase 1.5):
python "<plugin>/scripts/notebook_db.py" "<OUTDIR>" "<objective>" (~1s, pure Python).python - "<OUTDIR>/notebook.db" "<SQL>" <<'PY'
import sqlite3, sys, json
con = sqlite3.connect("file:%s?mode=ro" % sys.argv[1], uri=True); con.row_factory = sqlite3.Row
try: print(json.dumps([dict(r) for r in con.execute(sys.argv[2])], ensure_ascii=False, indent=2, default=str))
except Exception as e: print("SQL_ERROR: %s" % e)
PY
Prefer the v_* views (they dedup by ent_key and keep citations). The schema + a recetas cookbook
live in the /agy:notebook-query command file — reuse those queries. Entity taxonomy:
persona | organizacion | monto | fecha | referencia.
doc_ref (or basename) of the document the row came from.monto_cents; divide by 100 only to display (no float drift).SELECT nn,tipo,basename FROM documents WHERE estado='no_procesado'. Never invent a name,
amount, date or reference — if it isn't a row in the DB, it isn't a fact.SELECT * FROM v_personas / v_organizaciones / v_referencias.SELECT * FROM v_timeline → a chronological briefing.v_montos total before presenting./agy:notebook-audit <folder> flags the same category with conflicting
amounts, the same person/org under two names, the same reference with different values, and gaps.By default retrieval is FTS5 keyword (always on, zero deps). For fuzzy/conceptual questions add a
vector layer: build with /agy:notebook <folder> | <objective> --semantic (needs pip install sqlite-vec; real embeddings need a GEMINI_API_KEY, else a keyword-ish lexical fallback). Then
/agy:notebook-query fuses keyword + vector ranking with RRF. Without it, keyword + structured SQL
already answer most aggregate/lookup work.
/agy:notebook <folder> | <objective> --background and check progress
with /agy:notebook-status <folder> (% done, ETA, pending docs). The sweep persists state every
wave, so it's resumable: re-run /agy:notebook and cached docs are skipped. No daemon.scripts/notebook_neon.py <OUTDIR> <notebook_name> (writes nbkb_export.sql, an isolated
nbkb schema), then run it via the Neon MCP (mcp__neon__run_sql). Only worth it for cross-folder
aggregation; the local notebook.db already answers single-folder questions..facts.json sidecars; the
.md summaries remain the human source of truth..md frontmatter and are
logged to _facts_errors.log — the document is still queryable by tipo/fecha/doc_ref.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub marcosnahuel/antigravity-plugin-cc --plugin antigravity2 skills in this plugin
Other plugins' skills for the same job