一键导入
kb-analyze
知识库分析工具。提供知识库统计、健康检查和优化建议。 分析文档分布、索引状态、查询性能等。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
知识库分析工具。提供知识库统计、健康检查和优化建议。 分析文档分布、索引状态、查询性能等。
用 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。 支持增量更新和完整重建。
Task planning skill that creates and manages task plans in markdown files. Tracks progress through a structured plan file, ensuring tasks are completed systematically before marking as done.
| name | kb-analyze |
| version | 1.0.0 |
| description | 知识库分析工具。提供知识库统计、健康检查和优化建议。 分析文档分布、索引状态、查询性能等。 |
| user-invocable | true |
| allowed-tools | ["Read","Glob"] |
| hooks | {"PreToolUse":[{"matcher":"Read|Glob","type":"handler","handler":"houyi.rag.skills.kb_analyze.hooks:pre_analyze_hook"}],"PostToolUse":[{"matcher":".*","type":"handler","handler":"houyi.rag.skills.kb_analyze.hooks:post_analyze_hook"}],"Stop":[{"type":"handler","handler":"houyi.rag.skills.kb_analyze.hooks:stop_hook"}]} |
| invocationPolicy | {"modelAutoInvoke":"allow","userInvocable":true,"sideEffect":"none"} |
| permissions | {"filesystem":{"read":true,"write":false,"paths":["${KNOWLEDGE_DIR}/**/*","${WORKSPACE}/.rag_index/**/*"]}} |
知识库分析工具,提供统计信息、健康检查和优化建议。
用户请求以下操作时激活:
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| knowledge_dir | str | "knowledge/" | 知识库根目录 |
| analysis_type | str | "full" | 分析类型:full/stats/health/optimize |
| include_content | bool | false | 是否包含内容分析 |
| 字段 | 类型 | 说明 |
|---|---|---|
| stats | Stats | 统计信息 |
| health | Health | 健康状态 |
| recommendations | list[str] | 优化建议 |
| issues | list[Issue] | 发现的问题 |
收集统计
健康检查
性能分析
生成建议
用户: 分析知识库状态
Skill: 执行完整分析
输出:
- 文档数: 150,分块数: 2340
- 索引健康: 良好
- 建议: 考虑对大文档启用分层索引
{
"type": "object",
"properties": {
"knowledge_dir": {
"type": "string",
"default": "knowledge/",
"description": "Knowledge base directory"
},
"analysis_type": {
"type": "string",
"enum": ["full", "stats", "health", "optimize"],
"default": "full"
},
"include_content": {
"type": "boolean",
"default": false
}
}
}
{
"type": "object",
"properties": {
"stats": {
"type": "object",
"properties": {
"total_documents": { "type": "integer" },
"total_chunks": { "type": "integer" },
"total_entities": { "type": "integer" },
"index_size_mb": { "type": "number" },
"file_types": {
"type": "object",
"additionalProperties": { "type": "integer" }
}
}
},
"health": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": ["healthy", "degraded", "unhealthy"]
},
"index_integrity": { "type": "boolean" },
"coverage_percent": { "type": "number" }
}
},
"recommendations": {
"type": "array",
"items": { "type": "string" }
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"severity": { "type": "string" },
"message": { "type": "string" }
}
}
}
}
}