gkg

Analyze code semantics with GitLab Knowledge Graph and KuzuDB for navigation and impact analysis.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/toanalien/ezdevsecops --skill gkg-toanalien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gkg
Source: https://github.com/toanalien/ezdevsecops/tree/main/.opencode/skills/gkg
Command: npx skills add https://github.com/toanalien/ezdevsecops --skill gkg-toanalien

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides advanced semantic code analysis capabilities, enabling AI assistants to understand codebases like an IDE.

Core Features & Use Cases

  • Code Navigation: Go-to-definition and find all usages of symbols across a codebase.
  • Impact Analysis: Understand the potential effects of refactoring by identifying all affected code locations.
  • Architecture Visualization: Generate diagrams to visualize codebase structure.
  • Use Case: Before refactoring a critical function, use this Skill to find every place it's called, ensuring no unintended consequences.

Quick Start

Index the current repository using the gkg index command.

Frequently Asked Questions about gkg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform semantic code analysis to find all usages of a function before refactoring?

Semantic code analysis identifies all call sites of a function across a codebase to calculate refactoring impact. By indexing a Git repository, it enables IDE-like find-usages queries to ensure no unintended consequences occur during modifications.

Does semantic code analysis support Python, Java, and TypeScript code navigation?

Yes, semantic code analysis supports code navigation for Ruby, Java, Kotlin, Python, TypeScript, and JavaScript. It provides go-to-definition and find-usages capabilities across these languages using a local Git repository.

What is the best way to visualize codebase architecture for impact analysis?

Architecture visualization generates structural diagrams from a Git repository to map codebase dependencies. It performs semantic code analysis to highlight affected locations, allowing you to visually assess the blast radius of potential refactoring.

How do I index a local Git repository for go-to-definition queries?

To index a local Git repository for go-to-definition queries, run the index command to build a local knowledge graph. This semantic code analysis process maps symbols locally, enabling instant code navigation without external server dependencies.

Can I use GitLab and KuzuDB for semantic code navigation without an IDE?

Yes, you can use GitLab Knowledge Graph and KuzuDB for semantic code navigation without an IDE. This approach builds a local graph database from your Git repository, providing go-to-definition and impact analysis directly within AI assistants.

What are the limitations of using a local knowledge graph for code analysis?

The primary limitation of local knowledge graph code analysis is the requirement for local storage and a Git repository. Semantic analysis is restricted to Ruby, Java, Kotlin, Python, TypeScript, and JavaScript, requiring re-indexing to capture latest changes.