kg-extract
Installation
SKILL.md
KG Extract
Extract entities (classes, functions, modules, types, concepts) and their relations (imports, extends, implements, depends-on, calls) from source files, then store them as a knowledge graph in AgentDB.
When to use
When you need to build or update a knowledge graph from source code or documentation. Useful for understanding codebase structure, dependency analysis, and impact assessment.
Steps
- Scan files -- use
GlobandReadto enumerate and read source files at the given path - Identify entities -- extract classes, functions, modules, types, and config references from each file
- Map relations -- for each entity, determine its relations to other entities:
imports: follow import/require statementsextends: class inheritanceimplements: interface implementationsdepends-on: constructor dependencies, injected servicescalls: function/method invocationsreferences: documentation mentions, comments
Related skills
More from ruvnet/ruflo
agent-swarm
Agent skill for swarm - invoke with $agent-swarm
401agent-workflow
Agent skill for workflow - invoke with $agent-workflow
400workflow-automation
>
389agent-arch-system-design
Agent skill for arch-system-design - invoke with $agent-arch-system-design
384security-audit
>
373agent-architecture
Agent skill for architecture - invoke with $agent-architecture
353