From 66af6958fdd31e542694e58127aa1a93ea220dd0 Mon Sep 17 00:00:00 2001 From: Adrian Todorov Date: Tue, 24 Nov 2026 23:32:45 +0000 Subject: [PATCH] docs: lead Quick Start with 1-command agy plugin install and stdlib-first /ingest --- README.md | 22 +++++++++++++++++++--- docs/index.html | 18 +++++++++++++----- skills/ingest/SKILL.md | 9 +++++++-- 3 files changed, 39 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9f93ad9..ca8e65f 100644 --- a/README.md +++ b/README.md @@ -53,13 +53,29 @@ If you work with AI assistants on complex projects, you have probably hit the sa **Prerequisites**: Python `>= 3.10` (`>= 3.11` recommended) and Git on Windows, macOS, or Linux. Zero cloud accounts or API keys required. +### Option 1: Install in Antigravity (Recommended, 1 Command) + +Install the full plugin directly from GitHub. All 10 skills, the cross-platform 3D WebGL Graph side pane, workspace rules, and the 21-note Starter Vault preview work out of the box with zero `pip install` needed: + +```bash +agy plugin install https://github.com/GoogleCloudPlatform/knowledge-compiler +``` + +In the **Antigravity App** or **Antigravity for IDEs**, run `/plugin` or ask the agent to install `https://github.com/GoogleCloudPlatform/knowledge-compiler`, then open the **Vault WebGL Graph** side pane or try `/ingest`, `/distill-session`, `/vault-query`, or `/vault-lint`. + +> **Optional PDF CLI extra**: `.pptx`, `.docx`, `.xlsx`, `.html`, Markdown, and web URLs extract using Python's standard library alone, and Antigravity can also read PDFs natively. For offline CLI PDF extraction on machines without `pdftotext`, optionally run `python3 -m pip install pypdf`. + +### Option 2: Standalone CLI, CI, or Other Coding Agents + +Use this setup for Gemini CLI, Claude Code, Codex, Cursor, CI pipelines, or if you want `vault-lint`, `vault-query`, `vault-graph`, and full PDF/Office extras on your `$PATH`: + ```bash git clone https://github.com/GoogleCloudPlatform/knowledge-compiler.git cd knowledge-compiler python3 -m pip install -e ".[extract]" ``` -### 1. Explore the Included 21-Note OKF v0.3 Starter Vault +#### 1. Explore the Included 21-Note OKF v0.3 Starter Vault The repository ships a clean-room Google Cloud architecture vault in [`examples/starter-vault/`](examples/starter-vault/index.md) (`32` total Markdown files, `434` standard inter-note relative Markdown links, `0` prose wikilinks, `57` `x-kc-*` epistemic edges, `10` inline Mermaid diagrams, `33` GFM tables, a deprecated concept with `superseded_by`, and an `Attested Computation`): @@ -74,7 +90,7 @@ vault-query "BigQuery partition pruning" --vault examples/starter-vault vault-graph examples/starter-vault ``` -### 2. Initialize or Upgrade Your Own Knowledge Vault +#### 2. Initialize or Upgrade Your Own Knowledge Vault ```bash # Scaffold a fresh OKF v0.3 vault (bundle root '.', compiled concepts in wiki/) @@ -163,7 +179,7 @@ Use **Knowledge Compiler** through slash commands inside your AI coding agent or | Environment | Setup | Included Surfaces | | :--- | :--- | :--- | -| **Antigravity & Agent Plugin Hosts** | Native root `plugin.json`, `skills/`, `rules/`, `hooks.json`, and `sidecars/vault_graph` | All 10 slash-command skills, workspace rule, opt-in hooks, and WebGL Graph side pane | +| **Antigravity (CLI, App & IDEs)** | `agy plugin install https://github.com/GoogleCloudPlatform/knowledge-compiler` (or `/plugin`) | All 10 slash-command skills, workspace rule, opt-in hooks, and 3D WebGL Graph side pane | | **Gemini CLI & `SKILL.md` Harnesses** | Run `kc-install-plugin` (or copy `skills/` and `rules/AGENTS.md`) | Portable `SKILL.md` bundles + `vault-*` console scripts | | **Standalone CLI & CI Pipelines** | `python3 -m pip install -e ".[extract]"` | Deterministic `vault-lint --strict --json`, `vault-query`, `vault-correct`, and `vault-graph --export` | diff --git a/docs/index.html b/docs/index.html index 02accc3..3c8935a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -755,20 +755,28 @@

Compile Once into OKF v0.3, Consume Anywhere

60-Second Quick Start

-

Requires Python >= 3.10 and Git. No accounts, API keys, or external databases needed.

+

Install in Antigravity with one command (zero pip install required), or install the standalone Python CLI for CI and other coding agents. Requires Python >= 3.10 and Git.

- - - + + + +
-
git clone https://github.com/GoogleCloudPlatform/knowledge-compiler.git
+          
# Install all 10 skills + 3D WebGL Graph side pane (zero pip install required)
+agy plugin install https://github.com/GoogleCloudPlatform/knowledge-compiler
+
+# Antigravity App / IDEs: run /plugin or ask the agent to install the GitHub URL above
+# Optional: offline CLI PDF extraction on machines without pdftotext:
+# python3 -m pip install pypdf
+ +
git clone https://github.com/GoogleCloudPlatform/knowledge-compiler.git
 cd knowledge-compiler
 python3 -m pip install -e ".[extract]"
 
diff --git a/skills/ingest/SKILL.md b/skills/ingest/SKILL.md
index 4814964..f92d283 100644
--- a/skills/ingest/SKILL.md
+++ b/skills/ingest/SKILL.md
@@ -56,10 +56,15 @@ To ensure maximum extraction fidelity, dense cross-referencing, and graph connec
 ### 1. Step 0: Locate Vault Root, Extract & Check Cache
 Locate the active Knowledge Compiler vault (checks current working directory, upward parent directories for `GEMINI.md`/`raw/`/`wiki/`, or defaults to `$OBSIDIAN_VAULT_PATH` or `~/ObsidianVault`).
 
-Run the automated extraction script to unpack text, tables, speaker notes, and embedded media assets with SHA-256 caching:
+Run the automated extraction script to unpack text, tables, speaker notes, and embedded media assets with SHA-256 caching (`.pptx`, `.docx`, `.xlsx`, `.html`, Markdown, and web URLs work with Python 3 stdlib alone; `.pdf` uses `pypdf` if installed or falls back to `pdftotext`):
 ```bash
-uv run --with python-pptx --with openpyxl python /skills/ingest/scripts/extract_source.py [target]
+# Pure Python 3 stdlib (works immediately after `agy plugin install`)
+python3 /skills/ingest/scripts/extract_source.py [target]
+
+# Optional: if `uv` is installed and you want full PDF/Office extras without a global pip install
+uv run --with pypdf --with python-pptx --with python-docx --with openpyxl python /skills/ingest/scripts/extract_source.py [target]
 ```
+If extracting a `.pdf` fails because neither `pypdf` nor `pdftotext` is installed, read the PDF directly with the agent's native file-reading tool (`read_file` / `view_file`) instead of blocking on `pip install`.
 
 ### 2. Pass 1: Structured Analysis & Cross-Reference Mapping
 Before writing or modifying any permanent wiki notes: