Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`):

Expand All @@ -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/)
Expand Down Expand Up @@ -163,7 +179,7 @@ Use **Knowledge Compiler** through slash commands inside your AI coding agent or
<!-- mdformat off -->
| 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` |
<!-- mdformat on -->
Expand Down
18 changes: 13 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -755,20 +755,28 @@ <h2>Compile Once into OKF v0.3, Consume Anywhere</h2>
<div class="container">
<div class="section-head">
<h2>60-Second Quick Start</h2>
<p>Requires Python <code>&gt;= 3.10</code> and Git. No accounts, API keys, or external databases needed.</p>
<p>Install in Antigravity with one command (zero <code>pip install</code> required), or install the standalone Python CLI for CI and other coding agents. Requires Python <code>&gt;= 3.10</code> and Git.</p>
</div>

<div class="code-card">
<div class="code-tabs" role="tablist" aria-label="Quick Start Workflows">
<div class="tab-group">
<button class="tab-btn" role="tab" id="tab-starter" aria-selected="true" aria-controls="pane-starter" type="button">1. Explore Starter Vault</button>
<button class="tab-btn" role="tab" id="tab-new" aria-selected="false" aria-controls="pane-new" type="button">2. New OKF v0.3 Vault</button>
<button class="tab-btn" role="tab" id="tab-migrate" aria-selected="false" aria-controls="pane-migrate" type="button">3. Upgrade v0.2 &rarr; v0.3</button>
<button class="tab-btn" role="tab" id="tab-agy" aria-selected="true" aria-controls="pane-agy" type="button">1. Antigravity Plugin</button>
<button class="tab-btn" role="tab" id="tab-starter" aria-selected="false" aria-controls="pane-starter" type="button">2. CLI &amp; Starter Vault</button>
<button class="tab-btn" role="tab" id="tab-new" aria-selected="false" aria-controls="pane-new" type="button">3. New OKF v0.3 Vault</button>
<button class="tab-btn" role="tab" id="tab-migrate" aria-selected="false" aria-controls="pane-migrate" type="button">4. Upgrade v0.2 &rarr; v0.3</button>
</div>
<button class="copy-btn" id="copy-quickstart-btn" type="button">Copy</button>
</div>

<pre class="code-pane active" id="pane-starter" role="tabpanel" aria-labelledby="tab-starter"><code>git clone https://github.com/GoogleCloudPlatform/knowledge-compiler.git
<pre class="code-pane active" id="pane-agy" role="tabpanel" aria-labelledby="tab-agy"><code># 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</code></pre>

<pre class="code-pane" id="pane-starter" role="tabpanel" aria-labelledby="tab-starter"><code>git clone https://github.com/GoogleCloudPlatform/knowledge-compiler.git
cd knowledge-compiler
python3 -m pip install -e ".[extract]"

Expand Down
9 changes: 7 additions & 2 deletions skills/ingest/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <plugin_dir>/skills/ingest/scripts/extract_source.py [target]
# Pure Python 3 stdlib (works immediately after `agy plugin install`)
python3 <plugin_dir>/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 <plugin_dir>/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:
Expand Down
Loading