allergy

A command for recording and managing allergies, including medicines, foods, and environmental triggers. It can add, list, update, and delete records, with filters for type, status, and severity.

In plain words
What is it for?
Use it to record an allergic reaction, view active or severe allergies, filter medicine or food allergies, update details, or remove a record.
Why use it?
It keeps allergy details in one searchable record and makes it easier to update changes such as severity, status, or notes.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/huifer/wellally-health/allergy
Clone the repo
git clone --depth 1 https://github.com/huifer/WellAlly-health

Made for: Claude Code.

Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00005 $0.05211
Opus 5 $0.00003 $0.02606
Sonnet 5 $0.00001 $0.01042
Haiku 4.5 $0.00001 $0.00521

Measured yesterday against content hash 67f609c86f83, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

allergy 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 yesterday.

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/commands/allergy.md · 640 lines

How it starts

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

过敏史管理

记录和管理过敏史,包括药物过敏、食物过敏、环境过敏等,支持快速查询和更新。

操作类型

1. 添加过敏记录 - add

添加新的过敏记录。

参数说明:

  • info: 过敏信息(必填),使用自然语言描述

示例:

/allergy add 青霉素严重过敏小时候打针后出现呼吸困难
/allergy add 花生中度过敏吃后嘴唇肿
/allergy add 花粉轻度打喷嚏流鼻涕
/allergy add 碘造影剂严重CT检查时出现过休克
/allergy add 蜜蜂叮咬过敏性休克全身起疹子喉头水肿

支持的描述格式:

  • 过敏原名称 + 严重程度 + 反应症状 + 发现情况
  • 过敏原名称可以是:药物名称、食物名称、环境因素等
  • 严重程度关键词:轻微、轻度、中度、严重、休克、过敏性休克
  • 反应症状:皮疹、呼吸困难、喉头水肿、恶心、呕吐等

2. 查看过敏记录 - list

查看所有过敏记录,支持筛选。

参数说明:

  • 无参数:显示所有过敏
  • active: 仅显示活跃的过敏
  • drug: 仅显示药物过敏
  • food: 仅显示食物过敏
  • severe: 仅显示严重程度为重度及以上的过敏

示例:

/allergy list
/allergy list active
/allergy list drug
/allergy list severe

3. 更新过敏记录 - update

更新已有的过敏记录。

参数说明:

  • info: 更新信息(必填),格式:过敏原名称 + 要更新的字段和值

示例:

/allergy update 青霉素 severity moderate
/allergy update 花生 status resolved
/allergy update 青霉素 notes 仍需避免使用
/allergy update 花生

支持的字段:

  • severity: 严重程度(mild/moderate/severe/anaphylaxis)
  • status: 当前状态(active/resolved)
  • notes: 备注信息

4. 删除过敏记录 - delete

删除过敏记录。

参数说明:

  • info: 过敏原名称(必填)

示例:

/allergy delete 青霉素
/allergy delete 花生

执行步骤

添加过敏记录 (add)

1. 解析过敏信息

从自然语言中提取:

基本信息(自动提取):

  • 过敏原名称:具体过敏的物质名称
  • 过敏类型:药物、食物、环境、其他
  • 严重程度:轻度、中度、重度、过敏性休克
  • 反应症状:具体的过敏反应表现

详细信息(提取或询问):

  • 发现时间:何时首次发现过敏
  • 发现情况:当时的情况和背景
  • 确认方式:医生诊断、自我观察、检测确认
  • 当前状态:仍然过敏或已缓解
2. 医学标准化转换

将通俗描述转换为标准医学术语:

通俗描述 医学术语 类型
青霉素、盘尼西林 青霉素 药物过敏
花生、坚果 花生 食物过敏
花粉、柳絮 花粉 环境过敏
碘造影剂、CT造影剂 碘造影剂 药物过敏
蜜蜂叮咬、黄蜂叮咬 膜翅目昆虫毒液 其他过敏
3. 过敏类型分类

按类别分类:

  • 药物过敏:抗生素(青霉素、头孢等)、止痛药(阿司匹林等)、造影剂、疫苗、中药等
  • 食物过敏:海鲜(虾、蟹、贝类)、坚果(花生、核桃)、蛋类、乳制品、麸质、水果等
  • 环境过敏:花粉、尘螨、动物毛发、霉菌、乳胶等
  • 其他过敏:昆虫叮咬、化学物质、金属等
4. 严重程度评估

轻度(1级):

  • 局部皮肤反应(轻微皮疹、瘙痒)
  • 不影响全身状态
  • 无需紧急处理

中度(2级):

  • 明显不适(明显皮疹、恶心、轻度呼吸困难)
  • 需要处理但无生命危险
  • 建议就医

重度(3级):

  • 严重反应(严重呼吸困难、全身性荨麻疹、血压下降)
  • 需要医疗干预
  • 必须就医

过敏性休克(4级):

  • 危及生命的全身性过敏反应
  • 休克、喉头水肿、意识丧失
  • 需要紧急抢救

Read the full file on GitHub · 640 lines

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. yesterday First seen · 640 lines · 5 tokens per session scan A 67f609c86f83

Subscribe to this mod's changes

allergy is a command published in the GitHub repository huifer/WellAlly-health (935 stars, last pushed 1mo ago), licensed MIT. It adds 5 tokens to every session and 5,211 once invoked, about $0.0000 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-08-30.