/notebook-graph
Turn a notebook knowledge base into a knowledge GRAPH — a node-link graph.json + a self-contained interactive graph.html — with NO agy calls and NO extra deps. Derives edges from entity co-occurrence within documents (works even though agy rarely emits explicit relations) plus
$ npx -y skills add MarcosNahuel/antigravity-plugin-cc --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/notebook-graph
Context preview
What this command does when you run it.
Turn a notebook knowledge base into a knowledge GRAPH — a node-link graph.json + a self-contained interactive graph.html — with NO agy calls and NO extra deps. Derives edges from entity co-occurrence within documents (works even though agy rarely emits explicit relations) plus
Command definition
notebook-graph.mddescription: Turn a notebook knowledge base into a knowledge GRAPH — a node-link graph.json + a self-contained interactive graph.html — with NO agy calls and NO extra deps. Derives edges from entity co-occurrence within documents (works even though agy rarely emits explicit relations) plus any explicit relations. See who/what connects to what, and the hub entities. Complements /agy:notebook-query (exact SQL) and /agy:graph (Graphify, for code).
argument-hint: "<folder>"
context: fork
allowed-tools: Bash, Read
Build a graph view of the `notebook.db` that `/agy:notebook` compiled — instantly, locally, free. agy rarely fills the explicit `relaciones` array, so this derives edges from **entity co-occurrence within each document** (the relational signal that needs no LLM) plus any explicit relations present.
Raw user request: $ARGUMENTS
Phase 0 — Build the graph (ONE Bash call)
Resolve `OUTDIR = docs/agy/notebook/<slug>` from the folder (same `slug()` the notebook uses). If `notebook.db` is missing, tell the user to run `/agy:notebook <folder> | <objetivo>` first. Then:
python "${CLAUDE_PLUGIN_ROOT:-$PWD}/plugins/antigravity/scripts/notebook_graph.py" "$OUTDIR"It prints `GRAPH nodes=N edges=M (cooccur=…, explicit=…) hubs=[…]` and writes `<OUTDIR>/graph.json` (node-link) + `<OUTDIR>/graph.html` (self-contained interactive viz, vis-network from CDN).
Phase 1 — Present + reason
- Report the node/edge counts and the **hub entities** (most connected — your central people / orgs /
references). Point the user to `graph.html` for the interactive view.
- Nodes are deduped entities (`persona | organizacion | referencia`) + document nodes; edges are
`appears_in` (entity→document), `co_mentioned` (entities sharing a document, weighted by # docs), and any explicit relations.
- To answer a question, read `graph.json` directly (small) — e.g. neighbours of an entity, shortest
path between two, or the densest cluster — instead of re-reading the source documents.
Notes
- **Zero agy calls, zero new deps** — pure stdlib over the existing `notebook.db`. Re-run after a
fresh `/agy:notebook` to refresh.
- **vs `/agy:graph`**: this graphs the *document/entity* network from your notebook RAG (free, local);
`/agy:graph` uses Graphify (Gemini via agy) for richer graphs incl. **code** (tree-sitter ASTs) and Leiden communities. Use this for a quick document graph, `/agy:graph` for code or deep graphs.
- For exact aggregates (amounts, timelines) use `/agy:notebook-query`.
Read more
description: Turn a notebook knowledge base into a knowledge GRAPH — a node-link graph.json + a self-contained interactive graph.html — with NO agy calls and NO extra deps. Derives edges from entity co-occurrence within documents (works even though agy rarely emits explicit relations) plus any explicit relations. See who/what connects to what, and the hub entities. Complements /agy:notebook-query (exact SQL) and /agy:graph (Graphify, for code). argument-hint: "<folder>" context: fork allowed-tools: Bash, Read
Build a graph view of the `notebook.db` that `/agy:notebook` compiled — instantly, locally, free. agy rarely fills the explicit `relaciones` array, so this derives edges from **entity co-occurrence within each document** (the relational signal that needs no LLM) plus any explicit relations present.
Raw user request: $ARGUMENTS
Phase 0 — Build the graph (ONE Bash call)
Resolve `OUTDIR = docs/agy/notebook/<slug>` from the folder (same `slug()` the notebook uses). If `notebook.db` is missing, tell the user to run `/agy:notebook <folder> | <objetivo>` first. Then:
python "${CLAUDE_PLUGIN_ROOT:-$PWD}/plugins/antigravity/scripts/notebook_graph.py" "$OUTDIR"It prints `GRAPH nodes=N edges=M (cooccur=…, explicit=…) hubs=[…]` and writes `<OUTDIR>/graph.json` (node-link) + `<OUTDIR>/graph.html` (self-contained interactive viz, vis-network from CDN).
Phase 1 — Present + reason
- Report the node/edge counts and the **hub entities** (most connected — your central people / orgs /
references). Point the user to `graph.html` for the interactive view.
- Nodes are deduped entities (`persona | organizacion | referencia`) + document nodes; edges are
`appears_in` (entity→document), `co_mentioned` (entities sharing a document, weighted by # docs), and any explicit relations.
- To answer a question, read `graph.json` directly (small) — e.g. neighbours of an entity, shortest
path between two, or the densest cluster — instead of re-reading the source documents.
Notes
- **Zero agy calls, zero new deps** — pure stdlib over the existing `notebook.db`. Re-run after a
fresh `/agy:notebook` to refresh.
- **vs `/agy:graph`**: this graphs the *document/entity* network from your notebook RAG (free, local);
`/agy:graph` uses Graphify (Gemini via agy) for richer graphs incl. **code** (tree-sitter ASTs) and Leiden communities. Use this for a quick document graph, `/agy:graph` for code or deep graphs.
- For exact aggregates (amounts, timelines) use `/agy:notebook-query`.
A local NotebookLM, multi-agent deep research, and 21 more commands — for Claude Code, powered by Google Antigravity (agy / Gemini 3.x), the official CLI that replaces the now-deprecated gemini-cli.
Repo: MarcosNahuel/antigravity-plugin-cc
Other commands on marcosnahuel-antigravity-plugin-cc.
- /ask
One-shot prompt to Antigravity (agy) — quick question, returns response verbatim. No file persistence to docs/.
Open command - /deep-research
Deep, multi-source, fact-checked web research with agy — reach for it when a decision or design depends on getting it right and a single-shot answer is not enough (architecture / tool / vendor choices, thorough landscape scans, anything you will act on). Builds an evidence
Open command - /design-review
Run a UX/visual design audit of a URL using Antigravity (agy). Captures desktop + mobile screenshots, scores 10 dimensions (hierarchy, typography, color, spacing, a11y, etc.), benchmarks against industry. Saves to docs/agy/design-reviews/.
Open command - /doc-to-md
Convert a PDF, docx, image, or other document to clean Markdown using Antigravity (agy) multimodal Gemini. Saves to docs/agy/converted/.
Open command - /graph
Build a knowledge GRAPH of a folder (code + docs) with Graphify — tree-sitter ASTs + NetworkX + Leiden communities + an interactive graph.html. The code graph is built LOCALLY and costs zero tokens on any assistant; Gemini via agy only names the communities. Then Claude reads
Open command - /media
Ask a question about an AUDIO, VIDEO or IMAGE file (or a YouTube/remote URL) with Antigravity (agy / Gemini 3.x multimodal). Beyond transcription — "what decisions were made in this meeting?", "what happens at 2:30 in the video?", "what's the tone of this voice note?". Claude
Open command

