본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트81k · #1640

kg-traverse

하는 일

이 스킬은 지식 그래프에서 하나의 출발 항목으로부터 연결을 따라가며, 연결 관계와 가장 관련 있는 경로를 보여 줍니다. 영향 분석이나 의존성 추적을 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓특정 클래스나 모듈에 무엇이 의존하는지 알고 싶을 때.
  • ✓한 항목에서 시작하는 의존성 사슬을 보고 싶을 때.
  • ✓코드의 한 부분을 바꿨을 때 영향을 판단해야 할 때.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-knowledge-graph/skills/kg-traverse/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-knowledge-graph/skills/kg-traverse/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“결제 모듈을 바꾸면 무엇이 영향을 받나요? 코드 지도의 연결을 따라가 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 그래프에서 출발 항목을 찾고, 설정된 깊이까지 연결을 확장한 뒤 각 경로에 관련도 점수를 매깁니다. 약한 경로는 버리고 상위 결과를 돌려줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

KG Traverse

Perform pathfinder graph traversal starting from a seed entity. Expands outward through the graph's edges, scores paths by relevance, and prunes low-scoring branches.

When to use

When you need to explore the knowledge graph starting from a specific entity -- finding what depends on it, what it depends on, or discovering indirect relationships. Useful for impact analysis, dependency chains, and understanding code structure.

Steps

  1. Seed -- call mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall to look up the target entity by name (one word is the most reliable query: the recall matches the whole query as a substring). Graph node ids are domain-prefixed, for example entity:router-account.
  2. Expand -- call mcp__plugin_ruflo-core_ruflo__agentdb_graph-query with { nodeId: "entity:NAME", mode: "k-hop", depth: N } (default depth 3, the SQL path applies at most 3 and reports appliedDepth and truncated; add relation to filter by relation type). agentdb_causal-edge only records an edge, never use it to read one.
  3. Score and rank -- call mcp__plugin_ruflo-core_ruflo__agentdb_graph-pathfinder with { seedNodeId: "entity:NAME", query: "<what the user wants to know>", depth: N, threshold: 0.3, topK: 10 }. It expands from the seed, scores each path by cumulative relevance, drops paths under the threshold and returns the top paths. If it returns nothing useful, score the k-hop neighbours yourself with mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search on entity names and relation types (the semanticRouter controller is enabled: false in current AgentDB builds; see ruvnet/ruflo#2049).
  4. Synthesize -- write the summary yourself from the returned paths. Do not call agentdb_context-synthesize: it summarizes validated task episodes and answers no-eligible-episodes for entity records written by kg-extract.
  5. Report -- display the top 10 paths with: path (entity chain), relation types, cumulative score, and your summary.

When the graph cannot be read

With CLAUDE_FLOW_ENCRYPT_AT_REST=1 the graph read tools answer graph_edges DB is encrypted at rest (RFE1) (#2889, #4135): edges recorded by kg-extract are stored but cannot be read back yet. Say so in the report. Your data is intact: do not run memory init. Fall back to the entity records only (agentdb_hierarchical-recall) and tell the user that relations are unavailable. An agentdb_causal-edge result with readable: false already warns about this at write time.

CLI alternative

npx @claude-flow/cli@latest memory search --query "relations for ENTITY_NAME" --namespace knowledge-graph
자주 묻는 질문

얼마나 멀리 연결을 따라가나요?

기본 깊이는 세 단계이며, 더 큰 값을 요청해도 세 단계에서 멈춥니다.

관계 유형으로 걸러낼 수 있나요?

네. 한 가지 관계 유형으로 탐색을 제한할 수 있습니다.

그래프를 바꾸나요?

아닙니다. 관계를 읽기만 하며 새 간선을 추가하지 않습니다.

상세 정보

작성자의 원본 설명

Pathfinder traversal of the knowledge graph starting from a seed entity

repo: ruvnet/ruflo

인기도

GitHub 스타
81k
순위
#1640
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬