ワンクリックで
explore-codebase
Navigate and understand codebase structure using the knowledge graph
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Navigate and understand codebase structure using the knowledge graph
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Register repositories, maintain multi-repo graph freshness, and search across repos with dagayn.
Read a Markdown document with full dependency context — query the dagayn graph first, pre-read referenced docs and code by edge type, then read the body.
Author Markdown documents (READMEs, design docs, RFCs) so dagayn extracts correct dependency edges. Four-stage flow — outline & sort, draft & verify, polish, summary.
Evaluate architecture signals through the unified dagayn dispatcher
Systematically debug issues using graph-powered code navigation
Plan and execute safe refactoring using dependency analysis
| name | explore-codebase |
| description | Navigate and understand codebase structure using the knowledge graph |
Use the dagayn MCP tools to explore and understand the codebase.
This packaged skill is mode-neutral. dagayn install rewrites this section with
the selected embedding mode so exploration chooses the right search strategy.
semantic_search_nodes_tool first, then pick a concrete qualified_name.query_graph_tool with the
narrowest pattern (callers_of, callees_of, imports_of, tests_for,
docs_for, implementations_of, children_of, or file_summary).review_tool before raw
traversal.architecture_analysis_tool(mode="overview") before metric drill-downs.flow_tool(mode="list"), then flow_tool(mode="get")
only after choosing a concrete flow.traverse_graph_tool only after choosing a
concrete start node and only when a specific relationship query would be too
narrow.get_minimal_context_tool(task="<what you need to understand>") to see graph
freshness, risk, major communities, and suggested next tools.architecture_analysis_tool(mode="overview", detail_level="minimal")
for high-level architecture questions. Read architecture_health first; it
summarizes coupling, hubs, bridges, knowledge gaps, surprising connections,
and ADP/SDP/SAP signals. Use the Architecture Analysis skill for mode
selection before drilling down.semantic_search_nodes_tool to find specific functions or classes.query_graph_tool with patterns like callers_of, callees_of, imports_of
to trace relationships. Use docs_for when starting from a code/Terraform
node and you need linked specs, runbooks, explanations, or issue notes. Use
implementations_of when starting from a Markdown section and you need the
code points linked by implemented_by / implements_contract documentation
bridges.flow_tool(mode="list", detail_level="minimal") to find candidate
execution paths. Call flow_tool(mode="get") only after choosing a concrete
flow name.rg/file reads when graph output is stale, ambiguous, truncated,
or missing exact source text.children_of on a file to see all its functions and classes.find_large_functions_tool to identify complex code.dagayn: directives as authored
CROSS_ARTIFACT evidence. Markdown comments such as
<!-- dagayn: implemented-by path::symbol --> point from a doc section to a
code point; Python/Terraform comments such as
# dagayn: implements docs/spec.md#Section point from code to a Markdown
section. Query tools expose inverse labels, so do not assume both directions
are stored. Read evidence_type (authored, extracted, or
heuristic_reachable) and missingness before treating a traceability edge
as contract evidence.zero_result_reason and
next_action to decide the next lookup; absence is limited to the current
graph.rg is fine after minimal context; switch back
to graph tools once you have a file, function, or class name.query_graph_tool for relationship verification; raw traversal
is a follow-up for a bounded neighborhood.Use MCP tools first. If the current MCP server profile does not expose a
drill-down tool such as flow_tool, architecture_analysis_tool, or
find_large_functions_tool, run the same implementation through the CLI without
restarting the agent:
dagayn tool flow_tool --arg mode='"list"' --arg detail_level='"minimal"'
dagayn tool architecture_analysis_tool --arg mode='"overview"' --arg detail_level='"minimal"'
dagayn tool architecture_analysis_tool --arg mode='"communities"'
dagayn tool find_large_functions_tool --arg min_lines=80
dagayn tool query_graph_tool --arg pattern='"docs_for"' --arg target='"src/app.py::handler"'
dagayn tool query_graph_tool --arg pattern='"implementations_of"' --arg target='"docs/spec.md::contract-section"'
get_minimal_context_tool(task="<your task>") before any other graph tool.detail_level="minimal" on all calls. Only escalate to "standard" when minimal is insufficient.