用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/manji-0/dagayn --skill review-changes命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | review-changes |
| description | Perform a structured code review using change detection and impact |
Perform a thorough, risk-aware code review using the knowledge graph.
get_minimal_context_tool(task="<review goal>") 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 any review call.review_tool(mode="changes") to get risk-scored change analysis. Read
analysis_summary first; it includes reason codes, recommended tests,
affected-flow rankings, documentation update candidates, hotspot proximity,
and architecture risks in changed scopes.review_tool(mode="context") when exact source snippets are needed.review_tool(mode="affected_flows"), review_tool(mode="impact"), or
query_graph_tool(pattern="tests_for") only when analysis_summary points to a
concrete flow, blast-radius, or coverage question.query_graph_tool(pattern="docs_for", target="<path::symbol>", detail_level="minimal") to find linked specs, runbooks, explanations, or issue notes from dagayn: documentation directives.query_graph_tool(pattern="implementations_of", target="<doc.md>::<section-slug>", detail_level="minimal") to find code linked by Markdown implemented-by or code implements directives.analysis_summary lists documentation
update candidates, or docs_for returns authored contract/runbook links for
changed symbols, do not stop at "docs may be stale":
implemented_by / implements_contract first, then
explained_by / has_runbook / problem_described_by, then weaker
extracted / heuristic_reachable hits.writing-markdown-document skill (keep dagayn:
directives and heading slugs accurate).ensure_graph_tool(force=True), then re-check
query_graph_tool(pattern="docs_for" | "implementations_of") or
review_tool(mode="impact") on the touched doc paths.
If docs work is deferred, say so explicitly in the review output with the
doc path and role that still needs an update.Provide findings grouped by risk level (high/medium/low) with:
analysis_summary.reason_codes, and public API/dependency
direction changes.concern_separation and function_concern_pressure as refactoring
prioritization evidence, not correctness evidence. Read role, threshold,
reason codes, purity-likelihood evidence, missingness, and suggested action
before deciding whether to mention it. Boundary/coordinator functions may
legitimately have side effects.CROSS_ARTIFACT documentation roles as typed evidence, not duplicate
inverse facts. Check each result's evidence_type: implemented_by and
implements_contract are authored contract evidence; explanatory roles such
as describes_symbol are usually extracted; unresolved or low-confidence
candidates are heuristic_reachable and should stay tentative. Cite the
stored role and the query pattern (docs_for or implementations_of) used.zero_result_reason,
next_action, answerability, and missingness before claiming absence.truncated, total, or approximation metadata when a tool response is
incomplete.Default MCP already exposes review_tool and query_graph_tool. Use
dagayn tool when the server allow-list omitted them:
dagayn tool review_tool --arg mode='"changes"' --arg detail_level='"minimal"'
dagayn tool review_tool --arg mode='"context"' --arg detail_level='"minimal"'
dagayn tool review_tool --arg mode='"affected_flows"' --arg 'changed_files=["src/app.py"]'
dagayn tool review_tool --arg mode='"impact"' --arg 'changed_files=["src/app.py"]' --arg detail_level='"minimal"'
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.ensure_graph_tool returns.detail_level="minimal" on all calls. Only escalate to "standard" when minimal is insufficient.