knowledge-graph

Build and maintain a scalable knowledge graph with deduplication and GraphRAG-enabled retrieval.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/ShubhamManachekar/GeoSupply --skill knowledge-graph-shubhammanachekar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: knowledge-graph
Source: https://github.com/ShubhamManachekar/GeoSupply/tree/main/.agent/skills/knowledge-graph
Command: npx skills add https://github.com/ShubhamManachekar/GeoSupply --skill knowledge-graph-shubhammanachekar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Knowledge graphs consolidate diverse geopolitical, regulatory, and supply-chain data into a single, queryable graph, reducing data silos and manual integration.

Core Features & Use Cases

  • In-memory adjacency graph with deduplication and optional persistence
  • GraphRAG-ready retrieval and NetworkX-based traversal
  • KnowledgeUpdateRequest processing with a batch and dedup workflow for safe, scalable updates

Quick Start

Create and activate the KnowledgeGraphAgent, then start submitting KG_UPDATE requests to populate and maintain the graph.

Frequently Asked Questions about knowledge-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a knowledge graph for geopolitical and supply-chain data?

You can build a knowledge graph by submitting KnowledgeUpdateRequest triples to populate entities and relationships, consolidating diverse geopolitical, regulatory, and supply-chain data into a single queryable graph to reduce data silos.

What is GraphRAG-enabled retrieval and how does it work with graph traversal?

GraphRAG-enabled retrieval combines graph traversal with retrieval-augmented generation. The system uses NetworkX-based traversal across an in-memory adjacency graph to query relationships, enabling intelligent retrieval across geopolitical and supply-chain data sources.

How do I deduplicate entities when adding triples to a knowledge graph?

Entity deduplication is handled through a built-in dedup window during batch updates. The system processes KnowledgeUpdateRequests using a write-buffered batch workflow, ensuring safe and scalable updates without creating duplicate graph nodes.

Can I persist an in-memory knowledge graph to SQLite for supply-chain intelligence?

Yes, the knowledge graph supports optional SQLite persistence alongside its in-memory adjacency structure. You can flush the write buffer using the KG_FLUSH task API to persist entities, relationships, and intelligence data permanently.

How do I query a knowledge graph using task APIs for intelligence data?

You can query the graph by submitting KG_QUERY or KG_STATS task API requests. These endpoints handle graph traversal and retrieval across the consolidated geopolitical, regulatory, and supply-chain intelligence data sources stored in the graph.

What is the best way to monitor knowledge graph health and statistics after batch updates?

Use the KG_STATS task API to retrieve graph statistics and the KG_CANARY endpoint to verify health. These APIs monitor the in-memory graph after processing KnowledgeUpdateRequest batches, ensuring your geopolitical and supply-chain intelligence layer remains stable.