ワンクリックで
kb-graph
知识图谱查询工具。支持实体检索、关系遍历和多跳推理。 基于 PPR(Personalized PageRank)算法进行相关性排序。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
知识图谱查询工具。支持实体检索、关系遍历和多跳推理。 基于 PPR(Personalized PageRank)算法进行相关性排序。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
知识库分析工具。提供知识库统计、健康检查和优化建议。 分析文档分布、索引状态、查询性能等。
Location/geocoding tools using Open-Meteo Geocoding API
CRITICAL WEATHER TOOL. Use this skill IMMEDIATELY whenever the user asks about: - weather, temperature, forecast, rain, snow, sunny - e.g., "what is the weather in Hangzhou", "今天天气怎么样", "北京气温" - ALWAYS use this BEFORE attempting web search or other fallback tools. (Weather query tools using Open-Meteo with wttr.in fallback)
CRITICAL WEB SEARCH TOOL. Use this skill IMMEDIATELY whenever you need to search the web. IMPORTANT RULE: You MUST NOT use your native `search_web` tool. You MUST use this skill (`houyi_web_search`) instead via the Agent Execution Contract. Use this for: - Searching the internet for real-time information, news, or facts - Browsing websites and extracting content - Researching topics outside your training data (Multi-provider web search with caching, retry, and content extraction)
HouYi 项目设计文档与交付验收文档生成规范。 当需要为新特性创建设计文档(design doc)、验收跟踪文档(acceptance doc), 或维护交付日志时,使用本 skill 提供的标准模板。 中文模板为基准版本(.CN.md),英文模板无后缀(默认)。
知识库文档摄入工具。将文档加载、分块、嵌入并构建索引。 支持多种文件格式:Markdown、TXT、PDF、HTML。 支持增量更新和完整重建。
| name | kb-graph |
| version | 1.0.0 |
| description | 知识图谱查询工具。支持实体检索、关系遍历和多跳推理。 基于 PPR(Personalized PageRank)算法进行相关性排序。 |
| user-invocable | true |
| allowed-tools | ["Read","Grep"] |
| hooks | {"PreToolUse":[{"matcher":"Read|Grep","type":"handler","handler":"houyi.rag.skills.kb_graph.hooks:pre_graph_hook"}],"PostToolUse":[{"matcher":".*","type":"handler","handler":"houyi.rag.skills.kb_graph.hooks:post_graph_hook"}],"Stop":[{"type":"handler","handler":"houyi.rag.skills.kb_graph.hooks:stop_hook"}]} |
| invocationPolicy | {"modelAutoInvoke":"allow","userInvocable":true,"sideEffect":"none"} |
| permissions | {"filesystem":{"read":true,"write":false,"paths":["${KNOWLEDGE_DIR}/**/*","${WORKSPACE}/.rag_index/**/*"]}} |
知识图谱查询工具,支持实体检索、关系遍历和多跳推理。
用户请求以下操作时激活:
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| query | str | 必填 | 查询内容 |
| start_entities | list[str] | [] | 起始实体列表 |
| max_hops | int | 3 | 最大遍历跳数 |
| top_k | int | 10 | 返回结果数量 |
| use_ppr | bool | true | 是否使用 PPR 排序 |
| 字段 | 类型 | 说明 |
|---|---|---|
| entities | list[Entity] | 找到的实体列表 |
| relations | list[Relation] | 找到的关系列表 |
| paths | list[Path] | 实体间的路径 |
| confidence | float | 置信度 (0-1) |
实体识别
图遍历
PPR 排序
结果组织
用户: 找出与 "机器学习" 相关的所有技术概念
Skill: 从 "机器学习" 节点开始,遍历知识图谱
输出: 找到 15 个相关实体,包括 "深度学习"、"神经网络"...
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Query for graph traversal"
},
"start_entities": {
"type": "array",
"items": { "type": "string" },
"default": []
},
"max_hops": {
"type": "integer",
"default": 3
},
"top_k": {
"type": "integer",
"default": 10
},
"use_ppr": {
"type": "boolean",
"default": true
}
},
"required": ["query"]
}
{
"type": "object",
"properties": {
"entities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"type": { "type": "string" },
"score": { "type": "number" }
}
}
},
"relations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": { "type": "string" },
"target": { "type": "string" },
"type": { "type": "string" }
}
}
},
"paths": {
"type": "array",
"items": {
"type": "array",
"items": { "type": "string" }
}
},
"confidence": { "type": "number" }
}
}