One-click install
npx skills add https://github.com/jangtrinh/demo-Lam --skill ck-gkg-jangtrinh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:gkg
Source: https://github.com/jangtrinh/demo-Lam/tree/main/.claude/skills/gkg
Command: npx skills add https://github.com/jangtrinh/demo-Lam --skill ck-gkg-jangtrinh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It eliminates the guesswork of figuring out where symbols live and how changes will ripple through a large codebase by building a semantic knowledge graph of definitions and references.

Core Features & Use Cases

  • Go-to-definition & symbol discovery: Quickly locate where a class/function/method is defined, then fetch the definition details.
  • Find-usages & impact analysis: Determine all call sites for a definition to safely refactor, review dependencies, or estimate change scope.
  • Architecture visualization & RAG-ready understanding: Generate an explorable graph view and support retrieval-style code comprehension for AI assistants.

Use case: Before refactoring a frequently used method, index the repository, locate the symbol definition, and retrieve all references to confirm every affected call site across the workspace.

Quick Start

Ask the AI to: index your current Git repository with GitLab Knowledge Graph, start the local server, then find all usages of a given symbol or query by name.

Frequently Asked Questions about ck:gkg

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

FAQPage Schema
How do I find all usages of a function before refactoring?

Impact analysis works by building a semantic code knowledge graph that resolves definitions and fetches all reference call sites across a repository. This confirms every affected location before modifying a frequently used method.

What is a semantic code knowledge graph?

A semantic code knowledge graph maps definitions and references across a repository to support go-to-definition, find-usages, and architecture visualization. It enables multi-file code understanding by indexing project context into queryable graph endpoints.

How do I index a Git repository for code navigation?

You index a Git repository for code navigation by running the GKG CLI or server to process project context. The operation builds a semantic graph and stores the resulting data locally in the ~/.gkg/ directory for querying.

Can I use MCP integration for go-to-definition queries?

Yes, MCP integration supports go-to-definition queries by leveraging the local GKG server. After indexing the repository, you query the graph search and reference endpoints with project context to quickly locate where symbols are defined.

Does semantic code analysis support architecture visualization?

Yes, semantic code analysis supports architecture visualization by generating an explorable graph view of definitions and references. This architecture-oriented visualization also provides RAG-ready code comprehension for AI assistants.

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

A limitation of impact analysis using a local code graph is that it requires prior indexing via the GKG CLI or server and stores data strictly in the local ~/.gkg/ directory. The analysis depends entirely on this local indexing step to resolve references.