agentleFS
Google CloudKnown publisherGoogleCloudPlatform/knowledge-compiler/skills/vault-graph/SKILL.md

vault-graph

Skill18 starsChanged 12 days agoApache-2.0View on GitHub

Launches or exports the hardware-accelerated 2D/3D WebGL Knowledge Graph Visualizer and Search Hub for the local OKF v0.2 knowledge vault. Use when the user invokes /vault-graph or /graph, asks to visualize the vault graph, open the graph view, export a standalone WebGL graph HTML, or open the Knowledge Graph sidecar pane. Don't use for editing markdown notes or running schema lint repairs without visualization (use vault-lint).

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When the user invokes /vault-graph or asks to visualize the Obsidian Vault knowledge graph in a browser or side pane, execute this workflow.

    line 10
  2. Very specific:

    When packaged inside the plugin at <plugin_dir>/sidecars/vault_graph/sidecar.json, the host SidecarManager launches vault_graph.py …

    line 42

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

WebGL Knowledge Graph Visualizer (/vault-graph)

You are the Graph Engineering & Visualization Engine for the Knowledge Compiler. When the user invokes /vault-graph or asks to visualize the Obsidian Vault knowledge graph in a browser or side pane, execute this workflow.


⚡ Why WebGL Over Desktop Graph Views on Remote VMs

On remote Linux workstations and VMs accessed over remote desktop protocols, desktop Electron apps often fall back to CPU software rasterization or suffer from full-screen pixel-streaming lag. scripts/vault_graph.py solves this by serving a zero-CDN, hardware-accelerated WebGL2 / WebGL1 (2D Obsidian + 3D Orbit) single-page application that executes directly on the client browser's local GPU at 60–120 FPS, with an automatic high-DPI batched Canvas2D fallback when hardware WebGL is unavailable.


🛠 Core Execution Modes

1. Export Standalone Self-Contained HTML Artifact (--export)

To generate a portable, zero-dependency HTML file (for sharing or offline viewing):

python3 <plugin_dir>/scripts/vault_graph.py \
  "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" \
  --export /tmp/vault_graph.html

2. Launch Live Local Web Server (--serve)

To start an interactive loopback HTTP server (http://127.0.0.1:8765) that dynamically recompiles the vault topology on refresh:

python3 <plugin_dir>/scripts/vault_graph.py \
  "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" \
  --serve --port 8765

3. Native Antigravity UI Plugin Sidecar (--sidecar)

When packaged inside the plugin at <plugin_dir>/sidecars/vault_graph/sidecar.json, the host SidecarManager launches vault_graph.py --sidecar on 127.0.0.1:$ANTIGRAVITY_SIDECAR_WEB_PORT with constant-time X-Sidecar-Token authentication and embeds the WebGL visualizer directly inside the Auxiliary Pane ([Vault WebGL Graph](sidecar://knowledge-compiler/vault_graph/)).


🎨 Interactive Capabilities

  • Dual 2D Obsidian & 3D WebGL Orbit Modes: Instant toggle between orthographic 2D pan/zoom and perspective 3D trackball orbit with 3D sphere lighting.
  • 1-Hop & 2-Hop Neighborhood Spotlight: Hovering or clicking any node performs a live BFS traversal, illuminating connected nodes and edges while dimming unrelated subgraphs.
  • Local Subgraph Mode: Isolate a selected note's 1-hop or 2-hop ego-network.
  • Live Filtering: Filter by OKF category (entity, concept, pattern, synthesis, source, anchor, raw), frontmatter tags, orphan status, and instant fuzzy search (/).
  • Real-Time Physics & Display Sliders: Adjust repulsion charge, link spring distance, center gravity, node sizing (Total Degree, Inbound Backlinks, PageRank, Uniform), edge opacity, and LOD label density.
  • Slide-Out Markdown Reader & Inspector: Inspect OKF v0.2 frontmatter badges, topology metrics, clickable inbound/outbound connection chips, and full rendered Markdown with interactive [[wikilinks]].

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.