query-graph

Query a RyuGraph knowledge graph using natural language or Cypher to surface related code and specifications.

8|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/wfukatsu/refactoring-agent-for-claude-code --skill query-graph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: query-graph
Source: https://github.com/wfukatsu/refactoring-agent-for-claude-code/tree/main/.claude/skills/query-graph
Command: npx skills add https://github.com/wfukatsu/refactoring-agent-for-claude-code --skill query-graph

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineers quickly locate relevant code and design documentation by querying a knowledge graph built on RyuGraph using natural language or Cypher.

Core Features & Use Cases

  • Graph-based search: Query the RyuGraph knowledge graph using natural language or Cypher to surface relevant entities.
  • Contextual expansion: Retrieve related source code files and design specifications for quick understanding.
  • Use Case: Imagine you need to understand how a domain term like "order" maps to services and files; this skill returns the related entities and their definitions.

Quick Start

Invoke the skill with a query such as "Find all entities related to '注文' in the knowledge graph" or a Cypher query like 'MATCH (e:Entity)-[:HAS_TERM]->(t:UbiquitousTerm {name_ja: "注文"}) RETURN e.name'.

Frequently Asked Questions about query-graph

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

FAQPage Schema
How do I query a knowledge graph to find related source code and specifications?

You can query a knowledge graph to find related source code and specifications using natural language or Cypher queries. This skill surfaces relevant entities, files, and design docs by searching a prebuilt RyuGraph knowledge graph.

Can I use natural language instead of Cypher to search code and specs in a graph database?

Yes, you can use natural language instead of Cypher to search code and specs in a graph database. This skill supports querying the RyuGraph knowledge graph using either natural language or Cypher to surface related entities.

How do I map a ubiquitous domain term to specific source code files and design docs?

To map a ubiquitous domain term to specific source code files and design docs, query the knowledge graph with the term. The skill returns related entities, their definitions, and associated specifications for quick understanding.

Do I need a prebuilt RyuGraph knowledge graph before using this code search skill?

Yes, you need a prebuilt RyuGraph knowledge graph located at knowledge.ryugraph before using this code search skill. You also need Python 3.9+ and the ryugraph package installed in your environment.

What is the best way to locate design documentation for a specific software entity?

The best way to locate design documentation for a specific software entity is querying the graph with a Cypher statement like 'MATCH (e:Entity)-[:HAS_TERM]->(t:UbiquitousTerm) RETURN e.name'. This surfaces the entity and its related design docs.

Why does graph-based code search require a prebuilt knowledge graph?

Graph-based code search requires a prebuilt knowledge graph because the skill queries existing nodes and relationships to surface related code and specifications. It does not build the graph; it assumes one exists at knowledge.ryugraph.