Skip to content
gkg logo

GitLab Knowledge Graph (GKG)

gkg

Semantic code analysis with GitLab Knowledge Graph. Use for go-to-definition, find-usages, impact analysis, architecture visualization. Supports Ruby, Java, Kotlin, Python, TypeScript/JavaScript.

SKILL.md

Full skill instructions

GitLab Knowledge Graph (GKG)

Semantic code analysis engine using AST parsing and KuzuDB graph database. Enables IDE-like code navigation for AI assistants.

Status: Public beta | Requires: Git repository | Storage: ~/​.gkg/

When to Use

  • Find all usages of a function/​class across codebase
  • Go-to-definition for symbols
  • Impact analysis before refactoring
  • Generate architecture diagrams
  • RAG-enhanced code understanding

Use repomix instead for: quick context dumps, any-language support, remote repos, token counting.

Quick Start

# Check installation
gkg --version

# Index current repo
gkg index

# Start server (for API/​MCP)
gkg server start

# Stop before re-indexing
gkg server stop

Installation

# macOS/​Linux
curl -fsSL https://gitlab.com/​gitlab-org/​rust/​knowledge-graph/​-/​raw/​main/​install.sh | bash

# Windows (PowerShell)
irm https://gitlab.com/​gitlab-org/​rust/​knowledge-graph/​-/​raw/​main/​install.ps1 | iex

Core Workflows

Index and Query

gkg index /​path/​to/​project --stats
gkg server start
# Query via HTTP API at http://localhost:27495

Find Symbol Usages

  1. Index project: gkg index
  2. Start server: gkg server start
  3. Use MCP tool get_references or HTTP API /​api/​graph/​search

Impact Analysis

  1. Index affected repos
  2. Query get_references for changed symbols
  3. Review all call sites before refactoring

Language Support

LanguageCross-file Refs
Ruby✅ Full
Java✅ Full
Kotlin✅ Full
Python🚧 In progress
TypeScript🚧 In progress
JavaScript🚧 In progress

References

Key Constraints

  • Must stop server before re-indexing
  • Requires initialized Git repository
  • Languages not connected across repos (yet)
  • TS/​JS/​Python cross-file refs incomplete

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View