plugins/ruflo-knowledge-graph/skills/kg-extract/SKILL.md
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 you need to build or update a knowledge graph from source code or documentation. Useful for understanding codebase structure, dependency analysis, and impact assessment.
Glob and Read to enumerate and read source files at the given pathimports: follow import/require statementsextends: class inheritanceimplements: interface implementationsdepends-on: constructor dependencies, injected servicescalls: function/method invocationsreferences: documentation mentions, commentsmcp__claude-flow__agentdb_hierarchical-store for each entity with metadata (name, type, file, line, description)mcp__claude-flow__agentdb_causal-edge for each relation with source, target, relation type, and weightnpx @claude-flow/cli@latest memory store --namespace knowledge-graph --key "entity-NAME" --value "METADATA_JSON"
npx @claude-flow/cli@latest memory search --query "entities in auth module" --namespace knowledge-graph