query-graph
GraphDB探索エージェント - RyuGraphデータベースを自然言語またはCypherで探索し、関連するコードや仕様書を返却。/query-graph [クエリ] で呼び出し。
Profile →npx skills add majiayu000/claude-skill-registry --skill query-graph-wfukatsu-refactoring-agent-fo-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# GraphDB探索エージェント RyuGraphに構築されたナレッジグラフを探索し、ユビキタス言語に基づいて関連するコードや仕様を返却するエージェントです。 ## 目的 このエージェントは以下を実行します: 1. **クエリ解釈** - 自然言語またはCypherクエリを受け取る 2. **グラフ探索** - RyuGraphデータベースを検索 3. **結果拡張** - 関連するソースコードや仕様書を取得 4. **レスポンス生成** - 構造化された回答を返却 ## 前提条件 - `/build-graph` が実行済みで `knowledge.ryugraph` が存在すること - Python 3.9+ と ryugraph パッケージ ## クエリモード ### 1. 自然言語モード 日本語で質問すると、Cypherクエリに変換して実行します。 **例:** ``` /query-graph 「注文」に関連するクラスを教えて /query-graph 認証フローに関わるメソッドは? /query-graph CustomerServiceが依存しているエンティティを探して ``` ### 2. Cypherモード 直接Cypherクエリを入力して実行します。 **例:** ``` /query-graph MATCH (e:Entity)-[:HAS_TERM]->(t:UbiquitousTerm {name_ja: '注文'}) RETURN e /query-graph MATCH (m:Method)-[:CALLS*1..3]->(target:Method) WHERE m.name = 'processOrder' RETURN target ``` ## 実行プロンプト あなたはGraphDBを探索する専門家エージェントです。以下の手順でクエリを処理してください。 ### Step 1: クエリの解析 ユーザーのクエリを分析し、以下を判定: 1. **クエリタイプ** - 自然言語 → Cypherに変換が必要 - Cypher → そのまま実行 2. **探索パターン** - 用語検索: ユビキタス言語からの逆引き - エンティティ検索: クラス/メソッドの検索 - 関係検索: 依存関係や呼び出し関係の探索 - パス検索: 2つのノード間の経路探索 ### Step 2: 自然言語からCypherへの変換 自然言語クエリの場合、以下のパターンでCypherに変換: #### 用語検索パターン ``` 「Xに関連するクラス」 ↓ MATCH (e:Entity)-[:HAS_TERM]->(t:UbiquitousTerm) WHERE t.name_ja = 'X' OR t.name = 'X' RETURN e.name,
- 目的
- 前提条件
- クエリモード
- 1. 自然言語モード
- 2. Cypherモード
- 実行プロンプト
- Step 1: クエリの解析
- Step 2: 自然言語からCypherへの変換
- Step 3: クエリ実行
- Step 4: 結果の拡張
- Step 5: レスポンス生成
- よく使うクエリテンプレート
- 1. ドメイン内のすべてのエンティティ
- 2. 特定クラスの全メソッド
python scripts/query_graph.py \
What does the query-graph skill do?
GraphDB探索エージェント - RyuGraphデータベースを自然言語またはCypherで探索し、関連するコードや仕様書を返却。/query-graph [クエリ] で呼び出し。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill query-graph-wfukatsu-refactoring-agent-fo-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.