gkg

Analyze Git repository code semantics with AST parsing and graph databases.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Hoang130203/Emgu_CV_automation --skill gkg-hoang130203
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gkg
Source: https://github.com/Hoang130203/Emgu_CV_automation/tree/main/.opencode/skills/gkg
Command: npx skills add https://github.com/Hoang130203/Emgu_CV_automation --skill gkg-hoang130203

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides advanced semantic code analysis, enabling AI assistants to understand code structure, navigate definitions, and analyze impacts, overcoming the limitations of simple text-based analysis.

Core Features & Use Cases

  • Code Navigation: Go-to-definition and find all usages of functions, classes, and variables across a codebase.
  • Impact Analysis: Understand the ripple effects of code changes before refactoring.
  • Architecture Visualization: Generate diagrams to visualize code structure.
  • Use Case: Before refactoring a core service, use GKG to find every place it's called across the entire project, ensuring no critical dependencies are missed.

Quick Start

Index the current Git repository to enable semantic code analysis.

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 across a Git repository?

Semantic code analysis finds all usages by parsing the Abstract Syntax Tree of a Git repository and mapping relationships in a graph database. This enables precise IDE-like go-to-definition and find-usages functionality across multiple programming languages.

What is the best way to analyze the impact of refactoring a core service in my codebase?

Impact analysis identifies ripple effects of code changes by tracing function calls and dependencies using a graph database. It ensures no critical dependencies are missed before refactoring, replacing simple text-based searches with deep structural understanding.

Does semantic code navigation work with Python, Java, and TypeScript repositories?

Semantic code navigation supports Python, Java, and TypeScript, along with Ruby, Kotlin, and JavaScript. It parses these languages using Abstract Syntax Trees to provide accurate code structure mapping and cross-codebase reference tracking.

Do I need an initialized Git repository to enable AST-based code navigation?

An initialized Git repository is required to enable AST-based code navigation. The semantic analysis tool indexes the repository contents to build the graph database needed for finding definitions and analyzing impacts.

How do I integrate semantic dependency analysis into my existing development workflow?

You can integrate semantic dependency analysis using the provided CLI and HTTP API interfaces. These interfaces allow development tools and AI assistants to programmatically query code structure, navigate definitions, and retrieve impact analysis results.

Why does text-based search fail to accurately track class definitions during refactoring?

Text-based search fails because it lacks structural understanding of code syntax and scope. Semantic analysis overcomes this by using Abstract Syntax Tree parsing to accurately distinguish definitions from variable references with identical names.