Install
openclaw skills install unisound-literature-analysis药企医学事务管理研发文献分析。参考 Literature Review skill 的 evidence synthesis 部分,构建文献分析能力。
openclaw skills install unisound-literature-analysis本 skill 对应:药企 / 医学事务管理 / 研发文献分析。
要求:文献分析能力。
只参考 Literature Review skill 的 evidence synthesis 部分:
OpenClaw 中应构建为一个独立的分析型 skill:
topic:研发主题keywords:关键词列表literature:文献列表
titleyearjournalstudy_typeabstractconclusionurlskill:研发文献分析topicmatched_literatureevidence_summaryresearch_gaps本 skill 只做研发文献分析整理,不构成临床诊疗建议或药品推广结论。
从本 skill 目录执行:
python3 scripts/run.py --input input.json --output output.json --appkey YOUR_KEY
{
"topic": "EGFR 非小细胞肺癌",
"keywords": ["EGFR", "NSCLC"],
"literature": [
{
"title": "EGFR targeted therapy in NSCLC",
"year": 2024,
"journal": "Example Journal",
"study_type": "review",
"abstract": "Review of EGFR targeted therapy.",
"conclusion": "EGFR remains a key target in selected NSCLC patients.",
"url": "https://example.org/article"
}
]
}
输出 UTF-8 JSON,采用统一格式:
{
"skill": "技能名称",
"status": "ok",
"data": { /* 结构化数据 */ },
"text": "API 生成的 Markdown/自然语言内容,OpenClaw 直接渲染给用户"
}
data:本地预处理得到的结构化数据text:内部医疗大模型生成的自然语言解读/分析/提醒,Markdown 格式除 JSON 外,还支持以下格式(通过 --input-type 自动检测或手动指定):
| 格式 | 说明 |
|---|---|
| JSON | 默认,直接读取结构化输入 |
| CSV / XLSX / XLS | 表格数据,按列头自动映射字段 |
| TXT / MD | key:value 文本格式(支持中文/英文字段名) |
| PDF / DOC / DOCX | 文档,提取文本后解析 |
| PNG / JPG 等图片 | OCR 提取文本后解析 |
--input-type auto|pdf|doc|docx|xls|xlsx|csv|txt|json:输入类型;默认 auto。--sheet STRING:读取 Excel 时指定 sheet(可选)。--encoding STRING:txt/csv 编码(默认:utf-8)。--save-prepared:保存预处理后的 JSON,便于调试。--appkey STRING:必填。内部医疗大模型鉴权 key,由用户在 OpenClaw 中调用时提供。本 skill 强制通过 API 进行语义级文献分析,无本地透传模式。| 包名 | 用途 | 必要条件 |
|---|---|---|
openpyxl | 读取 .xlsx 文件 | 输入为 xlsx 时必须 |
pypdf | 提取 PDF 文本 | 输入为 pdf 时必须 |
| 工具 | 用途 | 必要条件 |
|---|---|---|
LibreOffice (soffice) | 转换 .doc / .xls | 输入为 doc/xls 时必须 |
pdftotext(poppler-utils) | 提取 PDF 文本 | 输入为 pdf 且未安装 pypdf 时 |
tesseract(含 chi_sim+eng) | 图片 OCR | 输入为图片时必须 |
仅使用 JSON 输入时,无需安装任何第三方包或外部工具。
本 skill 执行时通过内部医疗大模型进行推理:
https://maas-api.hivoice.cn/v1/chat/completionsu1-insuremed--appkey 参数传入 Bearer token,由用户在 OpenClaw 中调用时提供本 skill 强制走 API 推理,无本地透传模式。
强制通过
--appkey调用内部医疗大模型进行推理,无本地兜底模式。