用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/manji-0/dagayn --skill semantic-search命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Make a git worktree usable for dagayn MCP — inherit the main checkout's graph and MCP config, then catch up the branch diff.
Systematically debug issues using graph-powered code navigation
Navigate and understand codebase structure using the knowledge graph
基于 SOC 职业分类
正在显示 SKILL.md
| name | semantic-search |
| description | Configure, build, and verify dagayn embeddings and hybrid semantic search without losing FTS fallback behavior. |
| argument-hint | [query] |
Use this when semantic search quality, embedding setup, or hybrid search status matters.
This packaged skill is mode-neutral. dagayn install rewrites this section with
the selected embedding mode so agents can avoid stale or wasteful search advice.
dagayn tool get_minimal_context_tool --arg 'task="semantic search setup"'
dagayn tool ensure_graph_tool
If graph_health.status is already healthy, skip ensure. Use
list_graph_stats_tool only when the advanced surface is available and you
need detailed counts.search_mode / per-result source:
dagayn tool semantic_search_nodes_tool --arg query='"auth handler"' --arg detail_level='"minimal"'
search_mode="hybrid" means embeddings and FTS were merged. fts_only
is still valid, but semantic recall is lower. embedding_only means the
vector path ran while FTS was unavailable, and keyword_fallback means the
FTS index was absent and only LIKE matching ran.
name / qualified_name hits
even when search_mode is fts_only.source="both"
or source="embedding".rerank_intent="process_pattern"; this
routes to narrative embeddings when they are available.source to explain why a hit ranked: fts, embedding,
both, or keyword.name or qualified_name, use
that qualified_name for query_graph_tool.query_graph_tool(pattern="file_summary") or a relationship query before
drawing conclusions.query_graph_tool; use traverse_graph_tool only for a bounded
neighborhood after the start node is clear.next_action, follow it before widening the
query.dagayn serve --tools all or dagayn tool):
build_or_update_graph_tool(local_embedding="bge-m3")embed_graph_toolbuild_or_update_graph_tool(full_rebuild=True, local_embedding="bge-m3") only when explicitly doing embedding-quality or end-to-end maintenance work.
Before any embedding-enabled full rebuild, state the reason and get explicit
confirmation from the user; do not use it for parser, flow, documentation, or
ordinary implementation verification. Prefer ensure_graph_tool /
dagayn session prepare when serve already runs with --local-embedding;
otherwise use build_or_update_graph_tool / embed_graph_tool for an
explicit embedding refresh.dagayn build --local-embedding
dagayn update --local-embedding
dagayn session prepare --local-embedding
dagayn tool embed_graph_tool
semantic_search_nodes_tool query and compare result count,
search_mode, rerank_intent, and whether high-value hits now have
source="embedding" or source="both".fts_only is acceptable for exact symbol/name lookup; do not rebuild
embeddings just to find a precise identifier.keyword_fallback means the FTS index is absent; refresh graph/FTS before
drawing conclusions about search quality.provider_mismatch or missing_vectors in embedding health means the query
did not find matching vectors for the selected provider/text mode. Refresh
embeddings only when the task actually needs fuzzy recall.auto or
llama-server), port, and timeout before changing graph data.query_graph_tool, flow_tool,
review_tool, or source reads.