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.
GKG provides semantic code analysis tools for exploring and understanding codebases. It indexes projects to enable fast symbol lookup, reference finding, and structural analysis.
Run from the opencode config directory (required for dependencies). Use --raw with JSON for parameters:
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts <command> --raw '<json>'
List all indexed projects in the knowledge graph.
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts list-projects
Rebuild the knowledge graph index for a project.
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts index-project \
--raw '{"project_absolute_path":"/path/to/project"}'
Find functions, classes, methods, constants across the codebase.
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts search-codebase-definitions \
--raw '{"search_terms":["functionName","ClassName"],"project_absolute_path":"/path/to/project"}'
Find all usages of a symbol across the codebase.
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts get-references \
--raw '{"absolute_file_path":"/path/to/file.ts","definition_name":"myFunction"}'
Read complete implementation of definitions.
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts read-definitions \
--raw '{"definitions":[{"names":["myFunc"],"file_path":"/path/to/file.ts"}]}'
Go to definition for a symbol on a specific line.
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts get-definition \
--raw '{"absolute_file_path":"/path/to/file.ts","line":"const result = myFunc()","symbol_name":"myFunc"}'
Generate a compact API-style map of repository structure.
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts repo-map \
--raw '{"project_absolute_path":"/path/to/project","relative_paths":["src","lib"]}'
Analyze import usages across the project.
cd /home/hazeruno/.config/opencode && bun skills/gkg/scripts/gkg.ts import-usage \
--raw '{"project_absolute_path":"/path/to/project","packages":[{"import_path":"react"}]}'
search-codebase-definitions to find the symbolget-references to find all usagesrepo-map to get project structure overviewsearch-codebase-definitions to find relevant functionsread-definitions to read implementationsimport-usage to find where packages are importedget-references to trace function call chainsgkg.ts - CLI tool for all knowledge graph operationsapi_reference.md - Detailed parameter documentation for each commandSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer