WellAlly-health: Skill for Claude Code

.claude/skills/emergency-card/SKILL.md

emergency-card is a skill for Claude Code from huifer/WellAlly-health. It costs 92 tokens per session (3,928 once invoked), scanned A, original, MIT.

A guide to creating a compact emergency medical information card from a person's health data.

In plain words
What is it for?
Use it to generate printable HTML, JSON, text, or PDF cards in formats such as A4, wallet size, or large print.
Why use it?
It puts urgent details such as severe allergies, current medicines, medical conditions, implants, and emergency contacts in one quickly readable place.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is huifer/WellAlly-health's own configuration. It tells Claude Code how to work on WellAlly-health itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything WellAlly-health configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/generate_emergency_card.py.

Reuse

Borrowing it

Nothing to install: this file belongs to huifer/WellAlly-health. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/huifer/WellAlly-health/main/.claude/skills/emergency-card/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/huifer/WellAlly-health

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for emergency-card

README.md
[![agentmods](https://agentmods.dev/badge/skills/huifer/wellally-health/emergency-card/github.svg)](https://agentmods.dev/skills/huifer/wellally-health/emergency-card)
Your own site
<a href="https://agentmods.dev/skills/huifer/wellally-health/emergency-card"><img src="https://agentmods.dev/badge/skills/huifer/wellally-health/emergency-card/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for emergency-card

Your own site · 80×15
<a href="https://agentmods.dev/skills/huifer/wellally-health/emergency-card"><img src="https://agentmods.dev/badge/skills/huifer/wellally-health/emergency-card.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,928 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.03928
Opus 5 $0.00046 $0.01964
Sonnet 5 $0.00018 $0.00786
Haiku 4.5 $0.00009 $0.00393

Measured 9d ago against content hash 66fa3bc8b2b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

emergency-card scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/emergency-card/SKILL.md · 427 lines

How it starts

The opening of the file, as written. The whole thing — 427 lines — stays where its author put it; the contents beside it link to each section on GitHub.

紧急医疗信息卡生成器

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

核心功能

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、钱包卡、大字版)
  • 自动卡片类型检测(标准、儿童、老年、严重过敏)

使用方式:

# 生成标准卡片
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: 读取用户基础数据

从以下数据源读取信息:

// 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 基础信息
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 || []
};

Read the full file on GitHub · 427 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 427 lines · 92 tokens per session scan A 66fa3bc8b2b8

Subscribe to this mod's changes

emergency-card is a skill published in the GitHub repository huifer/WellAlly-health (948 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 3,928 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.