紧急医疗信息卡生成器 workflow skill. Use this skill when the user needs 生成紧急情况下快速访问的医疗信息摘要卡片。当用户需要旅行、就诊准备、紧急情况或询问"紧急信息"、"医疗卡片"、"急救信息"时使用此技能。提取关键信息(过敏、用药、急症、植入物),支持多格式输出(JSON、文本、二维码),用于急救或快速就医。 and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.
This public intake copy packages plugins/antigravity-awesome-skills-claude/skills/emergency-card from https://github.com/sickn33/antigravity-awesome-skills into the native Omni Skills editorial shape without hiding its origin.
Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.
This intake keeps the copied upstream files intact and uses EXTERNAL_SOURCE.json plus ORIGIN.md as the provenance anchor for review.
Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: 核心功能, 使用说明, 数据源, 安全性原则, 错误处理, 示例输出.
Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.
| Situation | Start here | Why it matters |
|---|---|---|
| First-time use | EXTERNAL_SOURCE.json | Confirms repository, branch, commit, and imported path before touching the copied workflow |
| Provenance review | ORIGIN.md | Gives reviewers a plain-language audit trail for the imported source |
| Workflow execution | SKILL.md | Starts with the smallest copied file that materially changes execution |
| Supporting context | SKILL.md | Adds the next most relevant copied source file without loading the entire package |
| Handoff decision | ## Related Skills | Helps the operator switch to a stronger native skill when the task drifts |
This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.
从用户的健康数据中提取最关键的信息:
按照医疗紧急程度对信息排序:
支持多种输出格式以适应不同场景:
生成独立的HTML文件,包含:
使用方式:
# 生成标准卡片
python scripts/generate_emergency_card.py
# 指定卡片类型
python scripts/generate_emergency_card.py standard
python scripts/generate_emergency_card.py child
python scripts/generate_emergency_card.py elderly
python scripts/generate_emergency_card.py severe
# 指定打印尺寸
python scripts/generate_emergency_card.py standard a4 # A4标准
python scripts/generate_emergency_card.py standard wallet # 钱包卡
python scripts/generate_emergency_card.py standard large # 大字版(老年)
输出文件:emergency-cards/emergency-card-{variant}-{YYYY-MM-DD}.html
Use @emergency-card to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.
Explanation: This is the safest starting point when the operator needs the imported workflow, but not the entire repository.
Review @emergency-card against EXTERNAL_SOURCE.json and ORIGIN.md, then explain which copied upstream files you would load first and why.
Explanation: Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.
Use @emergency-card for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.
Explanation: This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.
Review @emergency-card using the copied upstream files plus provenance, then summarize any gaps before merge.
Explanation: This is useful when the PR is waiting for human review and you want a repeatable audit packet.
Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.
Symptoms: The result ignores the upstream workflow in plugins/antigravity-awesome-skills-claude/skills/emergency-card, fails to mention provenance, or does not use any copied source files at all.
Solution: Re-open EXTERNAL_SOURCE.json, ORIGIN.md, and the most relevant copied upstream files. Load only the files that materially change the answer, then restate the provenance before continuing.
Symptoms: Reviewers can see the generated SKILL.md, but they cannot quickly tell which references, examples, or scripts matter for the current task.
Solution: Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.
Symptoms: The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better. Solution: Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.
@devops-deploy - Use when the work is better handled by that native specialization after this imported skill establishes context.@devops-troubleshooter - Use when the work is better handled by that native specialization after this imported skill establishes context.@differential-review - Use when the work is better handled by that native specialization after this imported skill establishes context.@discord-automation - Use when the work is better handled by that native specialization after this imported skill establishes context.Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.
| Resource family | What it gives the reviewer | Example path |
|---|---|---|
references | copied reference notes, guides, or background material from upstream | references/n/a |
examples | worked examples or reusable prompts copied from upstream | examples/n/a |
scripts | upstream helper scripts that change execution or validation | scripts/n/a |
agents | routing or delegation notes that are genuinely part of the imported package | agents/n/a |
assets | supporting assets or schemas copied from the source package | assets/n/a |
当用户提到以下场景时,使用此技能:
从以下数据源读取信息:
// 1. 用户档案
const profile = readFile('data/profile.json');
// 2. 过敏史
const allergies = readFile('data/allergies.json');
// 3. 当前用药
const medications = readFile('data/medications/medications.json');
// 4. 辐射记录
const radiation = readFile('data/radiation-records.json');
// 5. 手术记录(查找植入物)
const surgeries = glob('data/手术记录/**/*.json');
// 6. 出院小结(查找急症)
const dischargeSummaries = glob('data/出院小结/**/*.json');
const basicInfo = {
name: profile.basic_info?.name || "未设置",
age: calculateAge(profile.basic_info?.birth_date),
gender: profile.basic_info?.gender || "未设置",
blood_type: profile.basic_info?.blood_type || "未知",
weight: `${profile.basic_info?.weight} ${profile.basic_info?.weight_unit}`,
height: `${profile.basic_info?.height} ${profile.basic_info?.height_unit}`,
bmi: profile.calculated?.bmi,
emergency_contacts: profile.emergency_contacts || []
};
// 过滤出3-4级严重过敏
const criticalAllergies = allergies.allergies
.filter(a => a.severity_level >= 3 && a.current_status.status === 'active')
.map(a => ({
allergen: a.allergen.name,
severity: `过敏${getSeverityLabel(a.severity_level)}(${a.severity_level}级)`,
reaction: a.reaction_description,
diagnosed_date: a.diagnosis_date
}));
// 从慢性病管理数据中提取诊断信息
const chronicConditions = [];
// 高血压
try {
const hypertensionData = readFile('data/hypertension-tracker.json');
if (hypertensionData.hypertension_management?.diagnosis_date) {
chronicConditions.push({
condition: '高血压',
diagnosis_date: hypertensionData.hypertension_management.diagnosis_date,
classification: hypertensionData.hypertension_management.classification,
current_bp: hypertensionData.hypertension_management.average_bp,
risk_level: hypertensionData.hypertension_management.cardiovascular_risk?.risk_level
});
}
} catch (e) {
// 文件不存在或读取失败,跳过
}
// 糖尿病
try {
const diabetesData = readFile('data/diabetes-tracker.json');
if (diabetesData.diabetes_management?.diagnosis_date) {
chronicConditions.push({
condition: diabetesData.diabetes_management.type === 'type_1' ? '1型糖尿病' : '2型糖尿病',
diagnosis_date: diabetesData.diabetes_management.diagnosis_date,
duration_years: diabetesData.diabetes_management.duration_years,
hba1c: diabetesData.diabetes_management.hba1c?.history?.[0]?.value,
control_status: diabetesData.diabetes_management.hba1c?.achievement ? '控制良好' : '需改善'
});
}
} catch (e) {
// 文件不存在或读取失败,跳过
}
// COPD
try {
const copdData = readFile('data/copd-tracker.json');
if (copdData.copd_management?.diagnosis_date) {
chronicConditions.push({
condition: '慢阻肺(COPD)',
diagnosis_date: copdData.copd_management.diagnosis_date,
gold_grade: `GOLD ${copdData.copd_management.gold_grade}级`,
cat_score: copdData.copd_management.symptom_assessment?.cat_score?.total_score,
exacerbations_last_year: copdData.copd_management.exacerbations?.last_year
});
}
} catch (e) {
// 文件不存在或读取失败,跳过
}
// 只包含活跃的药物
const currentMedications = medications.medications
.filter(m => m.active === true)
.map(m => ({
name: m.name,
dosage: `${m.dosage.value}${m.dosage.unit}`,
frequency: getFrequencyLabel(m.frequency),
instructions: m.instructions,
warnings: m.warnings || []
}));
从出院小结中提取诊断信息:
const medicalConditions = dischargeSummaries
.flatMap(ds => {
const data = readFile(ds.file_path);
return data.diagnoses || [];
})
.map(d => ({
condition: d.condition,
diagnosis_date: d.date,
status: d.status || "随访中"
}));
从手术记录中提取植入物信息:
const implants = surgeries
.flatMap(s => {
const data = readFile(s.file_path);
return data.procedure?.implants || [];
})
.map(i => ({
type: i.type,
implant_date: i.date,
hospital: i.hospital,
notes: i.notes
}));
const recentRadiation = {
total_dose_last_year: calculateTotalDose(radiation.records, 'last_year'),
last_exam: radiation.records[radiation.records.length - 1]
};
按照优先级组织信息:
const emergencyCard = {
version: "1.0",
generated_at: new Date().toISOString(),
basic_info: basicInfo,
critical_allergies: criticalAllergies.sort(bySeverityDesc),
current_medications: currentMedications,
medical_conditions: [...medicalConditions, ...chronicConditions], // 合并急症和慢性病
implants: implants,
recent_radiation_exposure: recentRadiation,
disclaimer: "此信息卡仅供参考,不替代专业医疗诊断",
data_source: "my-his个人健康信息系统",
chronic_conditions: chronicConditions // 单独字段便于访问
};
直接输出结构化JSON数据。
生成易读的文本卡片:
╔═══════════════════════════════════════════════════════════╗
║ 紧急医疗信息卡 ║
╠═══════════════════════════════════════════════════════════╣
║ 姓名:张三 年龄:35岁 ║
║ 血型:A+ 体重:70kg ║
╠═══════════════════════════════════════════════════════════╣
║ 🆘 严重过敏 ║
║ ─────────────────────────────────────────────────────── ║
║ • 青霉素 - 过敏性休克(4级)🆘 ║
║ 反应:呼吸困难、喉头水肿、意识丧失 ║
╠═══════════════════════════════════════════════════════════╣
║ 💊 当前用药 ║
║ ─────────────────────────────────────────────────────── ║
║ • 氨氯地平 5mg - 每日1次(高血压) ║
║ • 二甲双胍 1000mg - 每日2次(糖尿病) ║
╠═══════════════════════════════════════════════════════════╣
║ 🏥 慢性疾病 ║
║ ─────────────────────────────────────────────────────── ║
║ • 高血压(2023-01-01诊断,1级,控制中) ║
║ 平均血压:132/82 mmHg ║
║ • 2型糖尿病(2022-05-10诊断,HbA1c 6.8%) ║
║ 控制状态:良好 ║
║ • 慢阻肺(2020-03-15诊断,GOLD 2级) ║
║ CAT评分:18分 ║
╠═══════════════════════════════════════════════════════════╣
║ 🏥 其他疾病 ║
║ ─────────────────────────────────────────────────────── ║
║ (其他急症或手术诊断,如有) ║
╠═══════════════════════════════════════════════════════════╣
║ 📿 植入物 ║
║ ─────────────────────────────────────────────────────── ║
║ • 心脏起搏器(2022-06-10植入) ║
║ 医院:XX医院 ║
║ 注意:定期复查,避免MRI检查 ║
╠═══════════════════════════════════════════════════════════╣
║ 📞 紧急联系人 ║
║ ─────────────────────────────────────────────────────── ║
║ • 李四(配偶)- 138****1234 ║
╠═══════════════════════════════════════════════════════════╣
║ ⚠️ 免责声明 ║
║ 此信息卡仅供参考,不替代专业医疗诊断 ║
║ 生成时间:2025-12-31 12:34:56 ║
╚═══════════════════════════════════════════════════════════╝
将JSON数据转换为二维码图片:
const qrCode = generateQRCode(JSON.stringify(emergencyCard));
emergencyCard.qr_code = qrCode;
根据用户选择的格式保存文件:
// JSON格式
saveFile('emergency-card.json', JSON.stringify(emergencyCard, null, 2));
// 文本格式
saveFile('emergency-card.txt', generateTextCard(emergencyCard));
// 二维码格式
saveFile('emergency-card-qr.png', emergencyCard.qr_code);
✅ 紧急医疗信息卡已生成
文件位置:data/emergency-cards/emergency-card-2025-12-31.json
生成时间:2025-12-31 12:34:56
包含信息:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ 基础信息(姓名、年龄、血型)
✓ 严重过敏(1项4级过敏)
✓ 当前用药(2种药物)
✓ 医疗状况(2种疾病)
✓ 植入物(1项)
✓ 紧急联系人(1人)
💡 使用建议:
━━━━━━━━━━━━━━━━━━━━━━━━━━
• 将JSON文件保存到手机云盘
• 将二维码保存到手机相册
• 打印文本版随身携带
• 旅行前更新信息
⚠️ 注意事项:
━━━━━━━━━━━━━━━━━━━━━━━━━━
• 此信息卡仅供参考,不替代专业医疗诊断
• 定期更新(建议每3个月或健康信息变化后)
• 如有严重过敏,请随身携带过敏急救卡
完整示例请参考相关文档。
测试数据请参考相关文档。
详细格式请参考相关文档。
Edit PDFs with natural-language instructions using the nano-pdf CLI.