Skip to content
Agentmart
Submit a tool

emergency-card

生成紧急情况下快速访问的医疗信息摘要卡片。当用户需要旅行、就诊准备、紧急情况或询问"紧急信息"、"医疗卡片"、"急救信息"时使用此技能。提取关键信息(过敏、用药、急症、植入物),支持多格式输出(JSON、文本、二维码),用于急救或快速就医。

Skill by huifer

IndexedMIT★ 964
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/huifer-emergency-card

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

生成紧急情况下快速访问的医疗信息摘要卡片。当用户需要旅行、就诊准备、紧急情况或询问"紧急信息"、"医疗卡片"、"急救信息"时使用此技能。提取关键信息(过敏、用药、急症、植入物),支持多格式输出(JSON、文本、二维码),用于急救或快速就医。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/emergency-card

What's inside

Skill name
emergency-card
Description
生成紧急情况下快速访问的医疗信息摘要卡片。当用户需要旅行、就诊准备、紧急情况或询问"紧急信息"、"医疗卡片"、"急救信息"时使用此技能。提取关键信息(过敏、用药、急症、植入物),支持多格式输出(JSON、文本、二维码),用于急救或快速就医。
License
MIT
Instructions
423 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • examples.md
  • formats.md

SKILL.md (first lines)

# 紧急医疗信息卡生成器

生成紧急情况下快速访问的医疗信息摘要,用于急救或就医。

## 核心功能

### 1. 紧急信息提取
从用户的健康数据中提取最关键的信息:
- **严重过敏**:优先提取4级(过敏性休克)和3级过敏
- **当前用药**:活跃药物的名称、剂量、频率
- **急症情况**:需要紧急处理的医疗状况
- **植入物**:心脏起搏器、支架等(影响检查和治疗)
- **紧急联系人**:快速联系的家属信息

### 2. 信息优先级排序
按照医疗紧急程度对信息排序:
1. **P0 - 危急信息**:过敏性休克、严重药物过敏、危及生命的疾病
2. **P1 - 重要信息**:当前用药、慢性病、植入物
3. **P2 - 一般信息**:血型、年龄、体重、最近检查

### 3. 多格式输出
支持多种输出格式以适应不同场景:
- **HTML格式**:可打印网页,使用Tailwind CSS和Lucide图标(推荐)
- **JSON格式**:结构化数据,便于系统集成
- **文本格式**:简洁可读,适合打印携带
- **PDF格式**:专业打印,适合长期保存

#### HTML格式(新增)
生成独立的HTML文件,包含:
- Tailwind CSS样式(通过CDN)
- Lucide图标(通过CDN)
- 响应式设计
- 打印优化
- 多种尺寸变体(A4、钱包卡、大字版)
- 自动卡片类型检测(标准、儿童、老年、严重过敏)

使用方式:
```bash
# 生成标准卡片
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`

### 4. 离线可用
- 支持手机保存(相册、文件)
- 支持打印携带(钱包、包)
- 支持云端备份(可选)

## 使用说明

### 触发条件
当用户提到以下场景时,使用此技能:
- ✅ "生成紧急医疗信息卡"
- ✅ "我需要旅行,如何快速提供医疗信息"
- ✅ "把我的过敏信息整理成卡片"
- ✅ "紧急情况急救信息"
- ✅ "就医准备资料"
- ✅ "医疗信息摘要"

### 执行步骤

#### 步骤 1: 读取用户基础数据
从以下数据源读取信息:

```javascript
// 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');
```

#### 步骤 2: 提取关键信息

##### 2.1 基础信息
```javascript
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 || []
};
```

#### 2.2 严重过敏
```javascript
// 过滤出3-4级严重过敏
const criticalAllergies = allergies.allergies
  .filter(a => a.severity_level >= 3 && a.current_status.status === 'active')
  .map(a => ({
    allergen: a.allergen.name,

From huifer/WellAlly-health, MIT.

More from huifer/WellAlly-health

Signals

Stars
964
Forks
127
Open issues
5
Last commit (this folder)
Jan 2, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from huifer

Cite this page

emergency-card skill. Agent Mart. https://agentmart.dev/skills/huifer-emergency-card (last updated 2026-10-24)