Medical Tone Adjuster
Convert medical text between academic rigor and patient-friendly language while preserving clinical accuracy.
When to Use
- - Use this skill when the task needs Use when converting medical text between academic and patient-friendly tones, translating medical jargon for patients, adapting research papers for public audiences, or rewriting clinical notes for patient handouts. Maintains medical accuracy while adjusting readability level.
- Use this skill for academic writing tasks that require explicit assumptions, bounded scope, and a reproducible output format.
- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
Key Features
- - Scope-focused workflow aligned to: Use when converting medical text between academic and patient-friendly tones, translating medical jargon for patients, adapting research papers for public audiences, or rewriting clinical notes for patient handouts. Maintains medical accuracy while adjusting readability level.
- Packaged executable path(s):
scripts/main.py. - Reference material available in
references/ for task-specific guidance. - Structured execution path designed to keep outputs consistent and reviewable.
Dependencies
- -
Python: 3.10+. Repository baseline for current packaged skills. - INLINECODE4 :
not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.
Example Usage
CODEBLOCK0
Example run plan:
- 1. Confirm the user input, output path, and any required config values.
- Edit the in-file
CONFIG block or documented parameters if the script uses fixed settings. - Run
python scripts/main.py with the validated inputs. - Review the generated output and return the final artifact with any assumptions called out.
Implementation Details
See ## Workflow above for related details.
- - Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
- Primary implementation surface:
scripts/main.py. - Reference guidance:
references/ contains supporting rules, prompts, or checklists. - Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
Quick Check
Use this command to verify that the packaged script entry point can be parsed before deeper execution.
CODEBLOCK1
Audit-Ready Commands
Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.
CODEBLOCK2
Workflow
- 1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
- Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
- Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
- Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
- If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
Quick Start
CODEBLOCK3
Core Capabilities
1. Academic to Patient-Friendly
CODEBLOCK4
Conversion Rules:
- - Replace medical terms with common equivalents
- Shorten sentence length (aim for <15 words)
- Use active voice
- Remove unnecessary qualifiers
Examples:
| Academic | Patient-Friendly |
|---|
| Myocardial infarction | Heart attack |
| Tachycardia |
Fast heartbeat |
| Hypertension | High blood pressure |
| Benign prostatic hyperplasia | Enlarged prostate (non-cancerous) |
| Idiopathic | Unknown cause |
2. Patient-Friendly to Academic
CODEBLOCK5
3. Reading Level Assessment
CODEBLOCK6
Reading Levels:
- - 5th-6th Grade: Young patients, general public
- 8th Grade: Most adult patients
- 12th Grade: Educated lay audiences
- College: Healthcare professionals
4. Jargon Translation
CODEBLOCK7
Common Medical Terms Dictionary:
CODEBLOCK8
CLI Usage
CODEBLOCK9
Best Practices
When Converting to Patient-Friendly:
- - ✅ Use "you" and "your" when appropriate
- ✅ Define terms in parentheses on first use
- ✅ Use analogies for complex concepts
- ✅ Keep paragraphs to 2-3 sentences
When Converting to Academic:
- - ✅ Use precise medical terminology
- ✅ Include anatomical locations
- ✅ Specify temporal relationships
- ✅ Add objective measurements
Common Pitfalls
❌ Don't: "Your heart has a problem"
✅ Do: "Your heart muscle shows signs of reduced blood flow"
❌ Don't: "The medicine might make you feel bad"
✅ Do: "This medication may cause nausea, dizziness, or fatigue"
Quality Checklist
- - [ ] Medical accuracy preserved
- [ ] No critical information lost
- [ ] Appropriate reading level achieved
- [ ] Tone matches intended audience
- [ ] All medical terms explained or translated
Skill ID: 202 |
Version: 1.0 |
License: MIT
Output Requirements
Every final response should make these items explicit when they are relevant:
- - Objective or requested deliverable
- Inputs used and assumptions introduced
- Workflow or decision path
- Core result, recommendation, or artifact
- Constraints, risks, caveats, or validation needs
- Unresolved items and next-step checks
Error Handling
- - If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
- If
scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback. - Do not fabricate files, citations, data, search results, or execution outcomes.
Input Validation
This skill accepts requests that match the documented purpose of tone-adjuster and include enough context to complete the workflow safely.
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
INLINECODE13 only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
Response Template
Use the following fixed structure for non-trivial requests:
- 1. Objective
- Inputs Received
- Assumptions
- Workflow
- Deliverable
- Risks and Limits
- Next Checks
If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.
医学语气调整器
在保持临床准确性的前提下,在学术严谨性与患者友好语言之间转换医学文本。
使用场景
- - 当需要在学术语气与患者友好语气之间转换医学文本、为患者翻译医学术语、为公众读者改编研究论文、或为患者手册重写临床记录时使用此技能。在调整可读性水平的同时保持医学准确性。
- 适用于需要明确假设、限定范围和可重复输出格式的学术写作任务。
- 当需要针对缺失输入、执行错误或部分证据提供有文档记录的备用路径时使用此技能。
主要特性
- - 以范围为核心的工作流程,适用于:在学术语气与患者友好语气之间转换医学文本、为患者翻译医学术语、为公众读者改编研究论文、或为患者手册重写临床记录。在调整可读性水平的同时保持医学准确性。
- 打包的可执行路径:scripts/main.py。
- references/目录下提供参考资料,用于任务特定指导。
- 结构化的执行路径旨在保持输出的一致性和可审查性。
依赖项
- - Python:3.10+。当前打包技能的仓库基线。
- 第三方包:此技能包中未明确指定版本。如果此技能需要更严格的环境控制,请添加固定版本。
使用示例
bash
cd 20260318/scientific-skills/Academic Writing/tone-adjuster
python -m py_compile scripts/main.py
python scripts/main.py --help
示例运行计划:
- 1. 确认用户输入、输出路径以及任何必需的配置值。
- 如果脚本使用固定设置,编辑文件内的CONFIG块或文档化参数。
- 使用验证后的输入运行python scripts/main.py。
- 审查生成的输出并返回最终产物,同时注明任何假设。
实现细节
参见上述## 工作流程部分了解相关细节。
- - 执行模型:验证请求,选择打包的工作流程,并生成限定范围的可交付成果。
- 输入控制:在运行任何脚本之前,确认源文件、范围限制、输出格式和验收标准。
- 主要实现面:scripts/main.py。
- 参考指南:references/包含支持规则、提示或检查清单。
- 首先需要明确的参数:输入路径、输出路径、范围过滤器、阈值以及任何领域特定的约束条件。
- 输出规范:保持结果可重复,明确标识假设,避免未记录的副作用。
快速检查
在深入执行之前,使用此命令验证打包脚本入口点是否可解析。
bash
python -m py_compile scripts/main.py
审计就绪命令
使用这些具体命令进行验证。它们特意设计为自包含,避免使用占位符路径。
bash
python -m py_compile scripts/main.py
python scripts/main.py demo
工作流程
- 1. 在进行详细工作之前,确认用户目标、所需输入和不可协商的约束条件。
- 验证请求是否与文档化范围匹配,如果任务需要不支持的假设则提前停止。
- 仅使用实际可用的输入,使用打包的脚本路径或文档化的推理路径。
- 返回一个结构化的结果,将假设、可交付成果、风险和未解决项分开。
- 如果执行失败或输入不完整,切换到备用路径并明确说明阻碍完整完成的原因。
快速入门
python
from scripts.tone_adjuster import ToneAdjuster
adjuster = ToneAdjuster()
学术 → 患者友好
patient_text = adjuster.convert(
text=患者出现急性心肌梗死...,
target_tone=patient-friendly
)
患者友好 → 学术
academic_text = adjuster.convert(
text=我心脏病发作了...,
target_tone=academic
)
核心能力
1. 学术到患者友好
python
adjuster = ToneAdjuster()
result = adjuster.topatientfriendly(
患者表现出心动过速,心律不齐,与心房颤动一致,
readinglevel=8thgrade
)
转换规则:
- - 用常见等效词替换医学术语
- 缩短句子长度(目标少于15个词)
- 使用主动语态
- 移除不必要的修饰语
示例:
心跳过快 |
| 高血压 | 血压高 |
| 良性前列腺增生 | 前列腺增大(非癌性) |
| 特发性 | 原因不明 |
2. 患者友好到学术
python
result = adjuster.to_academic(
我吃了辣的东西后胃疼,
add_citations=True
)
输出:患者报告餐后腹痛,因含辣椒素食物而加重
3. 阅读水平评估
python
metrics = adjuster.assessreadinglevel(text)
print(f年级水平:{metrics.grade_level})
print(f医学术语数:{metrics.jargon_count})
print(f建议:{metrics.suggestions})
阅读水平:
- - 5-6年级:年轻患者、普通公众
- 8年级:大多数成年患者
- 12年级:受过教育的非专业读者
- 大学:医疗保健专业人员
4. 术语翻译
python
translations = adjuster.translate_jargon(
text=患者出现呼吸困难和端坐呼吸...,
show_alternatives=True
)
常见医学术语词典:
json
{
呼吸困难: {
patient_friendly: 气短,
explanation: 感觉无法吸入足够的空气
},
端坐呼吸: {
patient_friendly: 躺下时呼吸困难,
explanation: 需要用枕头垫高才能呼吸
}
}
CLI 使用
text
转换文件
python scripts/tone_adjuster.py \
--input clinical_note.txt \
--direction academic-to-patient \
--output patient_handout.txt
评估阅读水平
python scripts/tone_adjuster.py \
--assess readme.txt \
--target-grade 8
最佳实践
转换为患者友好时:
- - ✅ 适当时使用你和你的
- ✅ 首次使用时在括号内定义术语
- ✅ 对复杂概念使用类比
- ✅ 保持段落为2-3句话
转换为学术时:
- - ✅ 使用精确的医学术语
- ✅ 包含解剖位置
- ✅ 明确时间关系
- ✅ 添加客观测量值
常见陷阱
❌ 不要:你的心脏有问题
✅ 要:你的心肌显示出血流减少的迹象
❌ 不要:这药可能会让你感觉不舒服
✅ 要:此药物可能引起恶心、头晕或疲劳
质量检查清单
- - [ ] 医学准确性得以保留
- [ ] 无关键信息丢失
- [ ] 达到适当的阅读水平
- [ ] 语气符合目标受众
- [ ] 所有医学术语均已解释或翻译
技能ID:202 |
版本:1.0 |
许可证:MIT
输出要求
每个最终响应应在相关时明确以下内容:
- - 目标或请求的可交付成果
- 使用的输入和引入的假设
- 工作流程或决策路径
- 核心结果、建议或产物
- 约束条件、风险、注意事项或验证需求
- 未解决项和下一步检查
错误处理
- - 如果缺少必需输入,明确说明缺少哪些字段,并仅请求最少的额外信息。
- 如果任务超出文档化范围,停止而不是猜测或悄悄扩大任务范围。
- 如果scripts/main.py失败,报告失败点,总结仍可安全完成的内容,并提供手动备用方案。
- 不要编造文件、引用、数据、搜索结果或执行结果。
输入验证
此技能接受与tone-adjuster文档化目的匹配且包含足够上下文以安全完成工作流程的请求。
当请求超出范围、缺少关键输入或需要不支持的假设时,不要继续工作流程。而是回复:
tone-adjuster仅处理其文档化的工作流程。请提供缺失的必需输入或切换到更合适的技能。
响应模板
对于非简单请求,使用以下固定结构:
- 1. 目标
- 收到的输入
- 假设
- 工作流程
- 可交付成果
- 风险和限制
- 下一步检查
如果请求简单,可以压缩结构,但当假设和限制影响正确性时,仍需明确说明。