简介
基于 Markdown 的轻量级 FAQ 智能问答系统,支持模糊匹配与飞书机器人集成,适合快速搭建企业知识库。
原始描述
Build and query a FAQ knowledge base from markdown files. Use when asked to create a FAQ bot, set up automatic answers, build a knowledge base, add FAQ entri...
通过你的 Agent 添加
安装目录:bo-faq-bot/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心功能
bo-faq-bot 是一款面向飞书(Feishu)生态的 FAQ 知识库构建工具,通过命令行即可快速初始化、导入、查询和维护问答数据。其核心能力包括:
- 多格式支持:原生支持 Markdown 导入(H2 标题为问题,正文为答案),同时可导出为 Markdown 或 JSON,便于版本管理和二次开发
- 模糊智能检索:采用 TF-IDF 风格的文本匹配算法,返回 0.0-1.0 区间的置信度分数,支持阈值与返回数量自定义
- 完整 CRUD 能力:涵盖初始化、单条添加、批量导入、搜索、列表展示、删除、统计等全生命周期管理
- 飞书场景优化:设计初衷即为对接飞书机器人,可作为自动客服系统的后端知识引擎
显著优点
- 零依赖轻量架构:纯 Python 脚本实现,无需重型数据库或向量检索服务,部署成本极低
- 内容即代码:Markdown 格式的存储方式天然适配 Git 版本控制,便于团队协作和审计追溯
- 交互式 CLI:
add 命令支持交互式输入,降低非技术用户的使用门槛
- 灵活阈值控制:搜索置信度可调,兼顾精准匹配与容错召回的平衡
潜在局限
- 算法天花板:TF-IDF 类匹配对语义理解能力有限,同义词、口语化表达、跨语言查询效果可能不如现代 Embedding 模型
- 无持久化服务:默认基于文件存储,高并发场景下存在 IO 瓶颈,不适合大规模实时服务
- 功能边界清晰:专注 FAQ 场景,不支持多轮对话、上下文继承或复杂任务流
- 飞书生态绑定:设计初衷紧密围绕 Feishu,其他 IM 平台需额外适配
适合人群
- 需要快速上线、轻量运维的中小企业客服团队
- 技术储备有限、偏好 Markdown 内容管理的开发者
- 已在飞书生态内运营,希望低成本增强自动回复能力的业务方
- 将 FAQ 作为 MVP 验证、后续可能迁移至 LLM 方案的过渡阶段项目
常规风险提示
- 数据安全:FAQ 内容以明文 Markdown/JSON 存储,敏感信息需额外加密或权限管控
- 匹配误判:低阈值搜索可能返回不相关答案,建议生产环境配合人工兜底机制
- 版本兼容性:Markdown 解析规则与特定格式强绑定(H2=问题),源文件格式变更需谨慎迁移
- 规模瓶颈:建议单知识库条目控制在数千级以内,超大规模需考虑迁移至专业向量数据库
add 命令支持交互式输入,降低非技术用户的使用门槛- 算法天花板:TF-IDF 类匹配对语义理解能力有限,同义词、口语化表达、跨语言查询效果可能不如现代 Embedding 模型
- 无持久化服务:默认基于文件存储,高并发场景下存在 IO 瓶颈,不适合大规模实时服务
- 功能边界清晰:专注 FAQ 场景,不支持多轮对话、上下文继承或复杂任务流
- 飞书生态绑定:设计初衷紧密围绕 Feishu,其他 IM 平台需额外适配
适合人群
- 需要快速上线、轻量运维的中小企业客服团队
- 技术储备有限、偏好 Markdown 内容管理的开发者
- 已在飞书生态内运营,希望低成本增强自动回复能力的业务方
- 将 FAQ 作为 MVP 验证、后续可能迁移至 LLM 方案的过渡阶段项目
常规风险提示
- 数据安全:FAQ 内容以明文 Markdown/JSON 存储,敏感信息需额外加密或权限管控
- 匹配误判:低阈值搜索可能返回不相关答案,建议生产环境配合人工兜底机制
- 版本兼容性:Markdown 解析规则与特定格式强绑定(H2=问题),源文件格式变更需谨慎迁移
- 规模瓶颈:建议单知识库条目控制在数千级以内,超大规模需考虑迁移至专业向量数据库
- 数据安全:FAQ 内容以明文 Markdown/JSON 存储,敏感信息需额外加密或权限管控
- 匹配误判:低阈值搜索可能返回不相关答案,建议生产环境配合人工兜底机制
- 版本兼容性:Markdown 解析规则与特定格式强绑定(H2=问题),源文件格式变更需谨慎迁移
- 规模瓶颈:建议单知识库条目控制在数千级以内,超大规模需考虑迁移至专业向量数据库
技能正文
name: bo-faq-bot
description: Build and query a FAQ knowledge base from markdown files. Use when asked to create a FAQ bot, set up automatic answers, build a knowledge base, add FAQ entries, search FAQs, or answer common questions from a knowledge base. Perfect for Fieshu business bots.
Feishu FAQ Bot
Build a searchable knowledge base from markdown files. Match incoming questions to the best FAQ answer using fuzzy text matching.
Quick Start
# Initialize a new FAQ knowledge base
python scripts/faqbot.py init
# Add a FAQ entry interactively
python scripts/faqbot.py add -q "What are your business hours?" -a "We are open Monday to Friday, 9 AM to 6 PM CET."
# Import FAQs from a markdown file
python scripts/faqbot.py import faq-source.md
# Search for the best matching answer
python scripts/faqbot.py search "when are you open"
# List all FAQ entries
python scripts/faqbot.py list
# Export all FAQs to markdown
python scripts/faqbot.py export --format md -o faqs-export.md
# Export as JSON
python scripts/faqbot.py export --format json -o faqs.json
# Remove a FAQ entry by ID
python scripts/faqbot.py remove 3
# Get stats about the knowledge base
python scripts/faqbot.py stats
Commands
Command
Args
Description
init
Create a new empty knowledge base
add
-q QUESTION -a ANSWER [-t TAGS]
Add a single FAQ entry
import
<file.md>
Import FAQs from markdown (H2 = question, body = answer)
search
<query> [--top N] [--threshold T]
Find best matching answer(s)
list
[--tag TAG]
List all FAQ entries
remove
<id>
Remove a FAQ entry
export
[--format md|json] [-o FILE]
Export knowledge base
stats
Show knowledge base statistics
Markdown Import Format
## What are your business hours?
We are open Monday to Friday, 9 AM to 6 PM CET.
Weekend support is available via email only.
## How do I reset my password?
Go to Settings > Account > Reset Password.
You will receive an email with a reset link.
## What payment methods do you accept?
We accept:
- Credit/debit cards (Visa, Mastercard)
- PayPal
- Bank transfer (EU only)
# Initialize a new FAQ knowledge base
python scripts/faqbot.py init
# Add a FAQ entry interactively
python scripts/faqbot.py add -q "What are your business hours?" -a "We are open Monday to Friday, 9 AM to 6 PM CET."
# Import FAQs from a markdown file
python scripts/faqbot.py import faq-source.md
# Search for the best matching answer
python scripts/faqbot.py search "when are you open"
# List all FAQ entries
python scripts/faqbot.py list
# Export all FAQs to markdown
python scripts/faqbot.py export --format md -o faqs-export.md
# Export as JSON
python scripts/faqbot.py export --format json -o faqs.json
# Remove a FAQ entry by ID
python scripts/faqbot.py remove 3
# Get stats about the knowledge base
python scripts/faqbot.py stats
| Command | Args | Description |
|---|---|---|
init |
Create a new empty knowledge base | |
add |
-q QUESTION -a ANSWER [-t TAGS] |
Add a single FAQ entry |
import |
<file.md> |
Import FAQs from markdown (H2 = question, body = answer) |
search |
<query> [--top N] [--threshold T] |
Find best matching answer(s) |
list |
[--tag TAG] |
List all FAQ entries |
remove |
<id> |
Remove a FAQ entry |
export |
[--format md|json] [-o FILE] |
Export knowledge base |
stats |
Show knowledge base statistics |
Markdown Import Format
## What are your business hours?
We are open Monday to Friday, 9 AM to 6 PM CET.
Weekend support is available via email only.
## How do I reset my password?
Go to Settings > Account > Reset Password.
You will receive an email with a reset link.
## What payment methods do you accept?
We accept:
- Credit/debit cards (Visa, Mastercard)
- PayPal
- Bank transfer (EU only)
## What are your business hours?
We are open Monday to Friday, 9 AM to 6 PM CET.
Weekend support is available via email only.
## How do I reset my password?
Go to Settings > Account > Reset Password.
You will receive an email with a reset link.
## What payment methods do you accept?
We accept:
- Credit/debit cards (Visa, Mastercard)
- PayPal
- Bank transfer (EU only)
Each H2 heading becomes a question, the body below becomes the answer.
Search Scoring
- Uses TF-IDF-like fuzzy matching on question text
- Returns confidence score (0.0 to 1.0)
- Default threshold: 0.3 (adjustable with
--threshold)
- Returns top 3 matches by default (adjustable with
--top)
Integration with OpenClaw
--threshold)--top)This skill is designed to work as a Feishu FAQ bot. When a user asks a question, the agent can use the search command to find the best match and respond automatically. Configure it in your cron or agent system prompt.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。