notebook-kb

notebook-kb is a skill for Claude Code from MarcosNahuel/antigravity-plugin-cc. It costs 108 tokens per session (1,323 once invoked), scanned A, original, MIT.

A local knowledge-base tool that turns a folder of documents into a searchable SQLite database. SQLite is a small file-based database, and the tool keeps source quotes and document references with its facts.

In plain words
What is it for?
Use it to total amounts by category, find documents mentioning a person or organization, build timelines, list entities or events, verify figures, export tables, or answer questions from a document collection.
Why use it?
It avoids repeatedly reading long documents and helps produce answers that can be checked against exact source passages. It is suited to precise lookups and calculations as well as grounded prose answers.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the antigravity plugin — 2 skills, 22 commands, 1 agent shipped together

Good fit Use it to total amounts by category, find documents mentioning a person or organization, build timelines, list entities or events, verify figures, export tables, or answer questions from a document collection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marcosnahuel/antigravity-plugin-cc/notebook-kb
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MarcosNahuel/antigravity-plugin-cc --skill notebook-kb
Clone the repo
git clone --depth 1 https://github.com/MarcosNahuel/antigravity-plugin-cc

Made for: Claude Code.

Or install antigravity, the plugin that ships this one along with the rest of its 2 skills, 22 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for notebook-kb

README.md
[![agentmods](https://agentmods.dev/badge/skills/marcosnahuel/antigravity-plugin-cc/notebook-kb/github.svg)](https://agentmods.dev/skills/marcosnahuel/antigravity-plugin-cc/notebook-kb)
Your own site
<a href="https://agentmods.dev/skills/marcosnahuel/antigravity-plugin-cc/notebook-kb"><img src="https://agentmods.dev/badge/skills/marcosnahuel/antigravity-plugin-cc/notebook-kb/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for notebook-kb

Your own site · 80×15
<a href="https://agentmods.dev/skills/marcosnahuel/antigravity-plugin-cc/notebook-kb"><img src="https://agentmods.dev/badge/skills/marcosnahuel/antigravity-plugin-cc/notebook-kb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,323 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.01323
Opus 5 $0.00054 $0.00661
Sonnet 5 $0.00022 $0.00265
Haiku 4.5 $0.00011 $0.00132

Measured 9d ago against content hash c4feff49dd53, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

notebook-kb scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/antigravity/skills/notebook-kb/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

notebook-kb — work against the local document RAG

/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.

Decision gate — when to use the DB

  • Use the DB (/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.
  • Use /agy:notebook-ask for an open-ended prose answer grounded in the summaries.
  • Build/refresh first if needed: if 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).

How to query (there is NO sqlite3 CLI — always Python, read-only)

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.

Citation contract (non-negotiable for trustworthy answers)

  • Every claim cites its source: doc_ref (or basename) of the document the row came from.
  • A SUM lists its contributing rows so the total is auditable line by line. Monetary math is in integer monto_cents; divide by 100 only to display (no float drift).
  • 0 rows → say "does not appear in the corpus", and surface coverage gaps: 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.

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 83 lines · 108 tokens per session scan A c4feff49dd53

Subscribe to this mod's changes

notebook-kb is a skill published in the GitHub repository MarcosNahuel/antigravity-plugin-cc (28 stars, last pushed 24d ago), licensed MIT. It adds 108 tokens to every session and 1,323 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

symfony:doctrine-events

React to Doctrine entity lifecycle in Symfony with attribute listeners (#[AsDoctrineListener]/#[AsEntityListener], ORM 3) and lifecycle callbacks.

dev-toolings/superpowers-symfony · 35 tokens

symfony:doctrine-batch-processing

Process large datasets with Doctrine (ORM 3 toIterable, flush+clear, bulk DQL) and memory management.

dev-toolings/superpowers-symfony · 32 tokens

symfony:doctrine-fetch-modes

Optimize Doctrine fetching with DTO hydration (SELECT NEW; partial removed in ORM 3), lazy loading, query hints, and DBAL 4 access.

dev-toolings/superpowers-symfony · 38 tokens

symfony:doctrine-migrations

Create and manage Doctrine migrations (lib 4.x) for schema versioning; handle dependencies, rollbacks, and production deployment.

dev-toolings/superpowers-symfony · 33 tokens

redis-expert

Expert-level Redis for caching, pub/sub, data structures, and high-performance applications. Use when the user mentions cache, pub/sub, in-memory stores, key-value stores, or NoSQL, or when the task involves Data Structures, Basic Operations, Advanced Patterns, or Redis Streams.

personamanagmentlayer/pcl · 61 tokens

dbt-expert

Expert-level dbt (data build tool), models, tests, documentation, incremental models, macros, and Jinja templating. Use when the user mentions analytics engineering, SQL, data transformation, Jinja, or testing, or when the task involves Project Structure and Configuration, Sources and Staging Models, Intermediate and…

personamanagmentlayer/pcl · 76 tokens