askill
gkg

gkgSafety 95Repository

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.

0 stars
1.2k downloads
Updated 2/12/2026

Package Files

Loading files...
SKILL.md

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

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

75/100Analyzed 2/24/2026

Well-structured skill document for GitLab Knowledge Graph tool with clear usage scenarios, installation instructions, and workflows. Includes useful table of language support and key constraints. Slightly penalized for .opencode path suggesting internal use, but content is general-purpose and reusable. Missing some detailed step-by-step instructions and references external docs that may not exist.

95
80
85
70
65

Metadata

Licenseunknown
Version-
Updated2/12/2026
Publisherhoanghd218

Tags

apidatabase