用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/manji-0/dagayn --skill debug-issue命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | debug-issue |
| description | Systematically debug issues using graph-powered code navigation |
Use the knowledge graph to systematically trace and debug issues.
This packaged skill is mode-neutral. dagayn install rewrites this section with
the selected embedding mode so bug searches balance semantic recall with speed.
get_minimal_context_tool(task="<bug or symptom>") to check graph freshness,
risk, and suggested next tools. If graph_health.status is empty (or
ensure_graph_tool is the first next-tool hint), call ensure_graph_tool()
and re-orient before search or traversal.semantic_search_nodes_tool to find code related to the issue.query_graph_tool with callers_of and callees_of to trace call chains.traverse_graph_tool only after selecting a concrete suspected node,
only when a bounded neighborhood is more useful than a specific caller,
callee, import, test, or documentation relationship, and only when the
advanced MCP surface (or dagayn tool) exposes it.flow_tool(mode="list", detail_level="minimal") or
review_tool(mode="affected_flows") to identify candidate flow names before
calling flow_tool(mode="get"). A stored flow is a CALLS reachable set
(BFS visit order), not an ordered execution path; read truncated.query_graph_tool(pattern="docs_for", target="<path::symbol>", detail_level="minimal")
to pull in linked specs, runbooks, explanations, and issue notes. If the bug
report starts from a Markdown contract section, use
query_graph_tool(pattern="implementations_of", target="<doc.md>::<section-slug>", detail_level="minimal")
to find the implementation nodes linked by implemented_by /
implements_contract.review_tool(mode="changes") to check if recent changes caused the issue. Read
analysis_summary for risk reasons, affected-flow rankings, hotspot
proximity, and recommended tests.review_tool(mode="impact") on suspected files only when analysis_summary or
the call trace leaves the blast radius unclear.rg
once to map that literal string to a graph node, then return to graph tools.dagayn: documentation directives as typed traceability evidence. Code
comments such as # dagayn: explained-by docs/runbook.md#Failure Mode can
point to runbooks or problem statements that are more useful than another
caller hop.evidence_type: authored
contract links are stronger than extracted explanatory links, while
heuristic_reachable links require source confirmation.query_graph_tool returns no result or status="not_found", read
zero_result_reason, next_action, answerability, and missingness
before ruling out a path.Default MCP already exposes get_minimal_context_tool, flow_tool,
review_tool, and query_graph_tool. Use dagayn tool when the server
allow-list omitted them, or for advanced helpers such as traverse_graph_tool:
dagayn tool get_minimal_context_tool --arg 'task="debug login timeout"'
dagayn tool flow_tool --arg mode='"list"' --arg detail_level='"minimal"'
dagayn tool flow_tool --arg mode='"get"' --arg 'flow_name="handle_request"'
dagayn tool review_tool --arg mode='"impact"' --arg 'changed_files=["src/auth.py"]'
dagayn tool query_graph_tool --arg pattern='"docs_for"' --arg target='"src/auth.py::handler"'
dagayn tool query_graph_tool --arg pattern='"implementations_of"' --arg target='"docs/auth.md::login-contract"'
get_minimal_context_tool(task="<your task>") before any other graph tool.ensure_graph_tool returns.detail_level="minimal" on all calls. Only escalate to "standard" when minimal is insufficient.