WellAlly-health: Command for Claude Code

.claude/commands/radiation.md

radiation is a command for Claude Code from huifer/WellAlly-health. It costs 10 tokens per session (2,246 once invoked), scanned A, original, MIT.

A command tool for recording and reviewing radiation exposure from medical imaging such as CT scans, X-rays, and PET-CT scans. It stores examination details and estimates cumulative exposure.

In plain words
What is it for?
Use it to add an examination, view current cumulative status, review recent or complete history, or clear saved records.
Why use it?
It keeps imaging history in one place so users can review past examinations and their accumulated exposure.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

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 →

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/commands/radiation.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 radiation

README.md
[![agentmods](https://agentmods.dev/badge/commands/huifer/wellally-health/radiation/github.svg)](https://agentmods.dev/commands/huifer/wellally-health/radiation)
Your own site
<a href="https://agentmods.dev/commands/huifer/wellally-health/radiation"><img src="https://agentmods.dev/badge/commands/huifer/wellally-health/radiation/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 radiation

Your own site · 80×15
<a href="https://agentmods.dev/commands/huifer/wellally-health/radiation"><img src="https://agentmods.dev/badge/commands/huifer/wellally-health/radiation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,246 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.
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.00010 $0.02246
Opus 5 $0.00005 $0.01123
Sonnet 5 $0.00002 $0.00449
Haiku 4.5 $0.00001 $0.00225

Measured 11d ago against content hash afd02c63d2a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

radiation 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 11d 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/commands/radiation.md · 289 lines

How it starts

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

医学辐射暴露管理

记录、追踪和查询医学影像检查的辐射暴露情况,帮助管理累积辐射剂量。

操作类型

1. 添加辐射记录 - add

记录一次医学影像检查的辐射暴露。

参数说明:

  • exam_type: 检查类型(CT、X光、PET-CT、骨扫描、血管造影等)
  • body_part: 检查部位(头部、胸部、腹部、盆腔、脊柱、四肢等)
  • exam_date: 检查日期,格式 YYYY-MM-DD,默认为今天

示例:

/radiation add CT 胸部
/radiation add CT 腹部 2025-12-30
/radiation add X光 胸部
/radiation add PET-CT 全身

2. 查看累积状态 - status

查看当前的辐射累积情况和消散状态。

示例:

/radiation status

3. 查看历史记录 - history

查看所有辐射暴露记录。

示例:

/radiation history
/radiation history recent 10

4. 清空记录 - clear

清空所有辐射记录(谨慎使用)。

示例:

/radiation clear

执行步骤

添加记录 (add)

  1. 检查基础参数

    • 读取 data/profile.json
    • 如果不存在,提示:"/profile set 命令设置身高体重"
  2. 解析检查信息

    • 识别检查类型(CT、X光、PET-CT等)
    • 识别检查部位(头部、胸部、腹部等)
    • 确定检查日期(默认今天)
  3. 计算辐射剂量

    • 从参考数据中获取标准剂量
    • 读取用户体表面积
    • 计算调整系数:实际BSA / 1.73
    • 计算实际剂量:标准剂量 × 调整系数
  4. 保存记录

    • 读取 data/radiation-records.json
    • 添加新记录到数组
    • 按日期倒序排列
  5. 输出确认

    ✅ 辐射记录已添加
    
    检查信息:
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    检查项目:胸部 CT
    检查日期:2025-12-31
    辐射剂量:7.5 mSv
    
    本年度累积:
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    本年剂量:15.3 mSv
    上年残留:3.2 mSv
    总有效剂量:18.5 mSv
    
    ⚠️ 注意:本年度累积剂量已超过建议安全范围(10 mSv)
    

查看累积状态 (status)

  1. 读取所有记录

    • 读取 data/radiation-records.json
  2. 计算累积剂量

    • 按年份分组统计
    • 计算往年剂量残留(指数衰减:50%/年)
    • 计算本年累积剂量
    • 计算总有效剂量
  3. 输出状态报告

    📊 辐射暴露累积报告
    
    当前概况:
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    本年剂量:15.3 mSv
    往年残留:3.2 mSv
    总有效剂量:18.5 mSv
    
    年度统计:
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    2025年:15.3 mSv (5次检查)
    2024年:6.4 mSv → 残留 3.2 mSv (衰减50%)
    2023年:2.1 mSv → 残留 0.5 mSv (衰减75%)
    
    安全评估:
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    年平均自然本底:2.4 mSv/年
    公众年剂量限值:1 mSv/年(除自然本底外)
    当前状态:⚠️ 超过建议安全范围
    
    建议:
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    1. 与医生讨论是否可以采用低剂量或无辐射的替代检查
    2. 记录每次检查的辐射剂量
    3. 避免不必要的重复检查
    

查看历史记录 (history)

  1. 读取记录

    • 读取 data/radiation-records.json
  2. 格式化输出

    📋 辐射暴露历史记录
    
    2025年12月 (共3次检查,累积 12.5 mSv)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    12-31  胸部CT        7.5 mSv
    12-15  腹部CT        8.6 mSv
    12-01  胸部X光       0.12 mSv
    
    2024年11月 (共2次检查,累积 6.4 mSv)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    11-20  头部CT        2.1 mSv
    11-05  胸部CT        7.2 mSv
    
    总计:7次检查,累积 18.9 mSv
    

Read the full file on GitHub · 289 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. 11d ago First seen · 289 lines · 10 tokens per session scan A afd02c63d2a8

Subscribe to this mod's changes

radiation is a command published in the GitHub repository huifer/WellAlly-health (947 stars, last pushed 1mo ago), licensed MIT. It adds 10 tokens to every session and 2,246 once invoked, about $0.0001 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.