Kg Extract
Extracts entities and weighted relations from source files into an AgentDB knowledge graph for dependency analysis.
- CCM score
- 67 of 100
- skills.sh installs
- 731
- GitHub stars
- 82.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers scanning, entity identification, relation mapping, storage, and a summary report of entity and relation counts
- Maps relations such as
imports,extends,implements,depends-on,calls, andreferences, each with a fixed weight - Enforces a rule that TypeScript
import typeand inline type specifiers becometype-depends-onwith weight 0.1, excluded from cycle detection - Designed for understanding codebase structure, impact assessment, and building or updating graphs from code or docs
Install
$ npx -y skills add ruvnet/ruflo --skill kg-extract -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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
Details
- Repository
- github.com/ruvnet/ruflo
- Categories
- Code Review & Quality, Memory & Context
- First seen
- Jun 3, 2026
Questions
What does the kg-extract skill do?
The kg-extract skill scans source files at a given path and extracts entities such as classes, functions, modules, types and concepts. It maps their relations, including imports, extends, implements, depends-on and calls, then stores them as a knowledge graph in AgentDB.
How do I install the kg-extract skill?
Run npx -y skills add ruvnet/ruflo --skill kg-extract -y in a project to install it. Once installed, the agent can build or update a knowledge graph from source code or documentation.
Which tools does kg-extract need to run?
The skill uses Read, Glob, Grep and Bash, plus AgentDB tools for storing entities, creating causal edges and storing patterns. It also has an embeddings tool for generating vectors and a CLI alternative that uses npx @claude-flow/cli memory commands.
When should I use kg-extract for dependency analysis?
Use kg-extract when you want to understand codebase structure, run dependency analysis or assess impact across modules. It separates TypeScript type-only imports from value imports so that phantom runtime cycles are not counted in impact analysis.
Where does kg-extract stand in the Code Review and Quality category?
kg-extract sits in the Code Review and Quality category on Claude Marketplaces, alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. It focuses on building a queryable knowledge graph of entities and relations rather than reviewing code directly.
More from ruvnet/ruflo
All 236- Browser Login730
- Cost Report730
- Federation Audit730
- Federation Init730
- Migrate Create730
- Sparc Refine730
- Iot Witness Verify729
- Migrate Validate729
- Vector Cluster729
- Kg Traverse728
- Cost Compact Context727
- Market Ingest726
- Vector Hyperbolic725
- Browser Replay721
- Browser Form Fill719
- Browser Record719
- Dossier Collect702
- Browser Extract698
- Browser Screenshot Diff697
- Cost Budget Check693
- Browser Auth Flow690
- Adr Verify689
- Cost Track685
- Cost Booster Route684
Similar to Kg Extract
More Code Review & Qualityruflo-knowledge-graphPluginruvnet/ruflo82.4K starsKnowledge graph construction — entity extraction, relation mapping, and pathfinder graph traversal
CodegraphMCP servercodegraph-ai174 starsSemantic code graph over 38 languages, exposing callers, impact analysis, memory, and PR review tools.
agent-researcherSkillruvnet/ruflo1.2K installsDeep codebase research agent that maps patterns, dependencies, and gaps and shares findings through shared memory.
understand-explainSkillegonex-ai/understand-anything4.8K installsDeep-dive explanation of a single file, function, or module using a prebuilt knowledge graph and source code.
knowledge-graph-builderSkilloakoss/agent-skills223 installsImplementation guide for knowledge graphs covering ontology design, database selection, and graph-vector hybrid search.
Explore CodebaseSkilltirth8205/code-review-graph1.3K installsNavigate a codebase's structure, call graph, and execution flows through code-review-graph knowledge graph tools.