smithery/rom-orlovich

knowledge-graph

Semantic code discovery and navigation using knowledge graph. Use when searching code by meaning, finding dependencies, analyzing call graphs, or discovering symbol references across codebases.

Installation

$ npx skills add smithery/rom-orlovich --skill knowledge-graph

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/rom-orlovich.

npx skills add smithery/rom-orlovich

Browse all from smithery/rom-orlovich

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 5,028 B
  • docs SUMMARY.md 216 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Knowledge Graph Skill

Access to GitLab Knowledge Graph (gkg) for semantic code discovery. Indexes code structure including files, classes, functions, and their relationships.

Quick Reference

  • Templates: See [templates.md](templates.md) for reporting knowledge graph results

Available Actions

search_codebase

Search for code entities by name or pattern.

Parameters:

  • query (required): Search query (function name, class name, etc.)
  • node_types (optional): Filter by types - function, class, file, module
  • language (optional): Filter by language - python, typescript, rust, ruby
  • limit (optional): Maximum results (default: 20)

Example:

{
  "action": "search_codebase",
  "parameters": {
    "query": "handleAuth",
    "node_types": ["function"],
    "language": "typescript"
  }
}

findsymbolreferences

Find all usages of a symbol across the codebase.

Parameters:

  • symbol_name (required): Name of the function, class, or variable
  • repository (optional): Limit search to specific repository

Example:

{
  "action": "find_symbol_references",
  "parameters": {
    "symbol_name": "processPayment"
  }
}

getcodestructure

Get the file and directory structure of a repository.

Parameters:

  • repository (required): Name of the repository
  • path (optional): Specific path within the repository

Example:

{
  "action": "get_code_structure",
  "parameters": {
    "repository": "agent-bot",
    "path": "src/services"
  }
}

find_dependencies

Find what a code entity imports, calls, or inherits from.

Parameters:

  • node_id (required): ID of the code entity from a previous search
  • direction (optional): outgoing (what this uses) or incoming (what uses this)

Example:

{
  "action": "find_dependencies",
  "parameters": {
    "node_id": "uuid-of-module",
    "direction": "outgoing"
  }
}

findcodepath

Find the relationship path between two code entities.

Parameters:

  • source_id (required): ID of the source entity
  • target_id (required): ID of the target entity

Example:

{
  "action": "find_code_path",
  "parameters": {
    "source_id": "uuid-of-caller",
    "target_id": "uuid-of-callee"
  }
}

getcodeneighbors

Get neighboring code entities at a specified depth.

Parameters:

  • node_id (required): ID of the code entity
  • edge_types (optional): Filter by relationship - calls, imports, inherits, uses
  • depth (optional): How many levels to traverse (default: 1)

Example:

{
  "action": "get_code_neighbors",
  "parameters": {
    "node_id": "uuid-of-class",
    "edge_types": ["inherits", "implements"],
    "depth": 2
  }
}

getgraphstats

Get statistics about the knowledge graph.

Example:

{
  "action": "get_graph_stats",
  "parameters": {}
}

MCP Integration

This skill integrates with the knowledge-graph MCP server running on port 9005. The MCP server provides the following tools:

MCP Tool Skill Action
search_codebase search_codebase
findsymbolreferences findsymbolreferences
getcodestructure getcodestructure
find_dependencies find_dependencies
findcodepath findcodepath
getcodeneighbors getcodeneighbors
getgraphstats getgraphstats

Node Types

Type Description
file Source code file
directory Directory or folder
module Python/JS module
class Class definition
function Function or method
variable Global variable or constant
interface Interface or protocol

Edge Types

Type Description
imports Import relationship
calls Function call
inherits Class inheritance
contains Parent-child containment
uses Generic usage
implements Interface implementation

Workflow Example

  1. Search for a function:

`` searchcodebase(query="processPayment", nodetypes=["function"]) ``

  1. Get its dependencies:

`` finddependencies(nodeid="<result_id>", direction="outgoing") ``

  1. Find what calls it:

`` finddependencies(nodeid="<result_id>", direction="incoming") ``

  1. Explore neighbors:

`` getcodeneighbors(nodeid="<resultid>", depth=2) ``