kg

Load relevant entities from a local markdown knowledge graph into agent context.

3|2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/broomva/skills --skill kg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kg
Source: https://github.com/broomva/skills/tree/main/skills/knowledge/kg
Command: npx skills add https://github.com/broomva/skills --skill kg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill solves the problem of navigating and retrieving context from a large, unstructured collection of markdown entities by using the LLM itself as a high-performance routing index.

Core Features & Use Cases

  • Two-Tier Retrieval: Combines a fast catalog-based lookup with a deep body-grep fallback to ensure 100% recall of relevant topics.
  • Graph Expansion: Automatically pulls in related entities (1-hop neighbors) to provide structural context beyond simple keyword matching.
  • Use Case: When researching a complex system, use this skill to load all relevant entities and their connections into your context window, allowing the agent to perform contradiction detection and semantic inference across your entire knowledge base.

Quick Start

Use the kg skill to load all entities related to the topic of agent memory into your current session.

Frequently Asked Questions about kg

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

FAQPage Schema
How do I retrieve context from a local markdown knowledge graph for semantic inference?

To retrieve context from a markdown knowledge graph, the skill uses a two-tier system combining fast catalog lookups with deep body-grep fallbacks, loading relevant entities and 1-hop neighbors into your agent context for semantic inference.

What is the best way to navigate unstructured markdown entities for topical research?

The best way to navigate unstructured markdown entities for topical research is using the LLM as a high-performance routing index, automatically expanding graph connections to provide structural context beyond simple keyword matching.

Do I need a pre-indexed catalog file to load knowledge graph entities?

Yes, you need a pre-indexed catalog file and local access to the entity directory structure to load knowledge graph entities and perform typed-edge traversal across the canonical document substrate.

How does graph expansion work when loading related markdown documents?

Graph expansion works by automatically pulling in 1-hop neighbor entities when loading markdown documents, providing structural context that enables contradiction detection and semantic similarity analysis across your knowledge base.

Can I use pyyaml for managing a markdown-based knowledge graph?

Yes, pyyaml is supported as a dependency for managing a markdown-based knowledge graph, facilitating the loading and reasoning over local entities through catalog-based routing and body-grep fallbacks.

What are the limitations of using an LLM as a routing index for local knowledge graphs?

Using an LLM as a routing index for local knowledge graphs requires local access to the entity directory structure and a pre-indexed catalog file, limiting its use to pre-structured canonical document substrates rather than remote or unindexed data.