huynguyen03dev/opencode-setup/gkg
- community
Checking that the SKILL.md file is still in the repository.
Global Knowledge Graph for codebase analysis. This skill should be used when searching for code definitions (functions, classes, methods), finding references to symbols, understanding code structure, analyzing import usage, generating repository maps, or performing impact analysis before refactoring. Supports TypeScript, JavaScript, Python, Java, and more.
Install
npx vskill@latest install huynguyen03dev/opencode-setup/gkgSKILL.md
Global Knowledge Graph (GKG)
Overview
GKG provides semantic code analysis tools for exploring and understanding codebases. It indexes projects to enable fast symbol lookup, reference finding, and structural analysis.
Quick Start
Run from the opencode config directory (required for dependencies). Use --raw with JSON for parameters:
Core Commands
list-projects
List all indexed projects in the knowledge graph.
index-project
Rebuild the knowledge graph index for a project.
search-codebase-definitions
Find functions, classes, methods, constants across the codebase.
get-references
Find all usages of a symbol across the codebase.
read-definitions
Read complete implementation of definitions.
get-definition
Go to definition for a symbol on a specific line.
repo-map
Generate a compact API-style map of repository structure.
import-usage
Analyze import usages across the project.
Common Workflows
Refactoring Impact Analysis
- Use
search-codebase-definitionsto find the symbol - Use
get-referencesto find all usages - Review each usage location before making changes
Understanding Unfamiliar Code
- Use
repo-mapto get project structure overview - Use
search-codebase-definitionsto find relevant functions - Use
read-definitionsto read implementations
Tracing Dependencies
- Use
import-usageto find where packages are imported - Use
get-referencesto trace function call chains
Resources
scripts/
gkg.ts- CLI tool for all knowledge graph operations
references/
api_reference.md- Detailed parameter documentation for each command
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gkg/SKILL.md
Popularity
- Repository stars
- 5
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/huynguyen03dev/opencode-setup/gkg)