medical-three-layer-topic
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "medical-three-layer-topic" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5f007e55d4085ad41efb55556749b0e709a599697347032e220d3e3b85d38b91. Verify the upstream source and version against https://skillhub.cn/skills/user_0b6e8e49/medical-three-layer-topic before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Use this skill when a doctor or medical content creator asks to build a specialty topic library, generate doctor-IP short-video topics, avoid repeated medical topics, or export the results as CSV for use in Excel.
Introduction source: third_party · user_0b6e8e49 · 1.2.1 Reference
SkillPi interpretation
- Tasks
- Use when a doctor or medical content creator asks to build a specialty topic library, generate doctor-IP short-video topics, avoid repeated medical topics, or export the results as CSV for Excel.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: medical-three-layer-topic
slug: medical-three-layer-topic
displayName: 医生IP三层选题
description: Use when a doctor or medical content creator asks to build a specialty topic library, generate doctor-IP short-video topics, avoid repeated medical topics, or export the results as CSV for Excel.
version: 1.2.1
category: 医疗健康
tags:
- 医生IP
- 短视频选题
- 内容创作
- 内分泌科
- 健康科普
platforms:
- WorkBuddy
- CodeBuddy医生 IP 三层选题
任务边界
只负责按科室/专业方向建立三层关键词库、生成短视频选题和导出本地 CSV。用户只需提供科室/专业方向;选题数量默认 30,生成模式默认 mixed。
不生成完整脚本、账号定位、患者画像、营销策略或个体诊疗建议。不读取真实病历,不上传数据,不连接外部服务。
固定流程
- 提取科室/专业方向。表达不明确时只追问一次。
- 读取 三层方法。
- 确定数量、模式和输出目录;默认目录为当前工作区的
outputs/medical-three-layer-topic/。 - 查找
关键词库_<科室>.csv。不存在时先建库,存在时直接复用。复用前检查每层关键词数量是否低于软底线(L1≥50、L2≥30、L3≥50)。低于软底线时先提示用户决定是否扩充,不强行生成。 4.5. 操作可见化:建库完成后,向用户展示:- 三层关键词摘要(每层挑 8–10 个代表性词,按分类分组)
- L1×L2 组合覆盖度仪表盘(已覆盖组合数/理论有效组合数/覆盖率),特别标注覆盖率 >60% 的高频 L1 关键词
- 仍有大量未覆盖 L1×L2 方向时,主动告知「还可以从这些角度继续深挖」 用户可在此环节提出排除某类话题或增加某方向,调整后继续。跳过此步骤的唯一例外是用户明确说「直接生成不用确认」。 4.6. 覆盖度预警:检查 L1×L2 组合覆盖率。
- 单个 L1 的 L2 组合已用 >60%:提示「XX 方向快拍完了,要不要扩充新场景?」
- 单个 L1 的 L2 组合已用 >80%:拒绝在该 L1 上继续产出,必须建议扩充 L2 场景或转战其他低频 L1
- 不接受在已饱和的 L1×L2 组合上强行生成语义换壳的内容
- 生成策略采用「广度 + 深度矩阵」:
- 广度层:确保所有尚未覆盖的 L1 至少出一条(首轮优先填补空白)
- 深度层:对高价值 L1(高频疾病、患者痛点集中),系统性地穷举未使用的 L1×L2 组合,从 L3 中选最匹配的提问角度
- 组合去重:同一 L1×L2×L3 的三层组合只出一条;L1×L2 相同但 L3 角度语义高度相似的只保留一条。去重依据是三层关键词组合,而非标题字面
mixed/newbie/pitfall/compare/live模式:按方法文档润色为口播化标题(必须满足标题钩子标准),过滤、去重burst模式:仅做基础可读性处理,保留组合原貌,跳过精细润色。仍执行医疗安全必杀红线,但不做输出前 5 项检查
- 最终筛选前必须读取 医疗安全规则。
burst模式下只过滤必须舍弃的 8 条红线(治疗承诺/个体诊断/处方用药/手术替代/延误就医/虚构证据/恐吓/变相推介),不执行输出前 5 项检查。其他模式全量过滤。不合格候选直接舍弃并补充生成。若连续两轮补充后合格数仍不足目标数,下调预期数量并告知用户当前可生成的合格选题上限,不强行凑数。 - 使用 CSV 工具 写入词库、选题结果和本地历史。
- 重新读取结果 CSV,确认表头、行数和中文内容后再交付。
8.5. 词库扩充引导:选题交付后,检查以下信号并主动提示用户后续策略:
- 某 L1 的未用 L2 场景 < 5 个 →「XX 方向快拍完了,要不要加几个新场景继续?」
- 整体可用 L1×L2 组合 < 目标量 × 3 →「词库组合空间偏紧,建议扩充 L2 场景或 L1 关键词」
- 某高频 L1 已充分覆盖(>8 条选题)→「XX 方向拍了 N 期,建议转战这几个还没怎么碰的方向:(列出 3-5 个低频 L1)」
建立关键词库
生成内部 JSON,顶层为 keywords,每行包含 layer、keyword、category、weight、status。三层分别使用 L1、L2、L3,默认权重为 5,状态为 启用。
python3 scripts/csv_store.py library \
--input <临时关键词JSON> \
--specialty <科室或专业方向> \
--output-dir <输出目录>
内部 JSON 只是脚本输入,不作为用户交付物;使用完即删除临时文件。
生成并导出选题
内部 JSON 顶层为 topics,每行必须包含:title、layer1、layer2、layer3、mode。
python3 scripts/csv_store.py topics \
--input <临时选题JSON> \
--specialty <科室或专业方向> \
--output-dir <输出目录> \
--date YYYY-MM-DD
如果 python3 不存在,再尝试 python。不安装第三方依赖。
输出契约
最终文件名:医生IP选题_<科室>_YYYYMMDD.csv。
固定表头顺序:
序号,科室/专业方向,选题标题,第一层关键词,第二层关键词,第三层关键词,生成模式,生成日期
只向用户报告合格选题数和 CSV 绝对路径,不展示内部评分或临时 JSON。词库和 选题历史.csv 保留在同一输出目录,用于后续积累和去重。
文件名说明:输出文件使用中文命名(如
医生IP选题_内分泌科_20260720.csv),方便在 Excel/WPS 中直接识别内容。如果你的系统对中文路径兼容性较差(如某些 CI 环境),可替换为英文文件名如doctor_ip_topics_<specialty>_YYYYMMDD.csv。脚本内部处理已做 Unicode 归一化,macOS/Windows 中文版下直接双击即可打开。
连连看提示:导出的 CSV 中「第一层关键词」「第二层关键词」「第三层关键词」三列可直接用于手动选题。在 Excel 中随机各取一个关键词、组合成新标题,就是「三层关键词连连看」的玩法——选一个疾病 × 选一个人群/场景 × 选一个患者最想问的问题 = 一条新选题。词库 CSV 也可导入 Excel 做关键词池管理,方便运营团队协作。
异常处理
| 情况 | 处理方式 |
|---|---|
| 科室/专业方向表达不明确 | 追问一次,仍未明确则要求用户确认后再继续 |
| 关键词库为空或不存在 | 按三层方法文档从零建库,不跳过 |
| 复用词库某层关键词低于软底线 | 提示用户当前数量,由用户决定是否扩充后继续 |
| 候选组合大规模不成立 | 检查是否某层关键词范围过窄,必要时建议扩充该层 |
| 安全过滤后合格选题不足目标数 | 补充生成一轮;仍不足则告知用户当前上限,按实际数量输出 |
python3 命令不存在 |
降级尝试 python,都不存在则报错并提示安装 Python 3 |
| 输出目录不可写 | 报错并提示用户检查目录权限 |
| 选题历史文件损坏 | 脚本拒绝写入并保留原文件,需用户手动处理后再运行 |
| 写入过程遇到临时故障(磁盘满、云同步锁冲突) | 脚本内置 3 次自动重试(指数退避 1s→2s→4s),仍失败则提示具体错误原因和解决建议 |
模式
mixed:混合问题角度。综合各类提问方式,覆盖最广。newbie:入门、判断与注意事项。适合刚确诊或刚发现症状的患者。pitfall:误区与风险识别。纠正常见错误认知和危险做法。compare:差异与选择条件,不宣布唯一优劣。帮助患者理解不同选项。live:适合直播问答的短问题。口语化、快节奏、一问一答。burst:爆量模式。生成目标数量四倍的候选标题,仅过滤医疗安全必杀红线(8 条必须舍弃规则),标题保留组合原貌不做精细润色。输出 CSV 供用户自行圈选,圈选结果可再次输入进行精加工。适合「先看有什么方向再定做哪个」的选题规划场景。burst 模式不执行标题钩子标准中的口播化要求,因粗筛阶段重在广度而非精度。
模式只限制第三层提问角度和润色深度,不改变第一层内容对象和第二层使用语境。
维护或发布此 Skill 时,使用 evals/trigger_cases.json 检查触发边界,使用 evals/output/cases.jsonl 检查输出质量。
Current listing version
1.2.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向医生和医疗内容创作者,解决短视频选题生成、去重和导出等实际需求
- 具有明确的应用场景和较高的实用价值
Highlights
- 触发描述清晰完整,覆盖多种使用场景,边界明确
Areas to improve
-
Description in the wrong location Reported severity: Minor
顶层frontmatter与skill_body内部均包含description字段,内容重复
Recommendation: 建议统一将description置于顶层frontmatter,skill_body内部可省略或改为简要说明
Highlights
- 结构完整,流程清晰,包含详细的任务边界、固定流程、异常处理和模式说明
- 提供了端到端的执行示例和输出契约
Areas to improve
-
Missing referenced files Reported severity: Minor
文档中引用了references/three-layer-method.md、references/medical-safety.md和scripts/csv_store.py,但未确认这些文件是否实际存在
Recommendation: 请确保所有被引用的文件(three-layer-method.md、medical-safety.md、csv_store.py)均已打包上传,避免执行时因文件缺失导致失败
Highlights
- 工具来源明确,参数使用正确,覆盖主要异常场景
- 具备完善的错误处理机制和用户确认流程
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.