WellAlly-health: Command for Claude Code

.claude/commands/report-instructions.md

report-instructions is a command for Claude Code from huifer/WellAlly-health. It costs 0 tokens per session (1,626 once invoked), scanned A, original, MIT.

A command for generating HTML health reports from stored medical information. It supports comprehensive, biochemical, imaging, medication, and custom reports over selected date ranges.

In plain words
What is it for?
Use it to create full or focused reports, choose dates and sections, and set the output filename.
Why use it?
It turns scattered health records into a report covering the selected period and sections.

Command 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 →

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/report-instructions.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 report-instructions

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/huifer/wellally-health/report-instructions"><img src="https://agentmods.dev/badge/commands/huifer/wellally-health/report-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,626 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.00000 $0.01626
Opus 5 $0.00000 $0.00813
Sonnet 5 $0.00000 $0.00325
Haiku 4.5 $0.00000 $0.00163

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

Security

Grade A, and why

report-instructions 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/report-instructions.md · 252 lines

How it starts

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

/report 命令使用说明

快速开始

最简单的用法

/report comprehensive

这将生成一个包含所有可用数据的综合健康报告,保存在 reports/health-report-YYYY-MM-DD.html

命令格式

/report <action> [date_range] [sections] [output]

参数说明

action (必需)

报告类型:

  • comprehensive - 综合报告(包含所有章节)
  • biochemical - 生化趋势分析
  • imaging - 影像检查汇总
  • medication - 用药分析
  • custom - 自定义报告

date_range (可选)

时间范围:

  • all - 所有数据(默认)
  • last_month - 上个月
  • last_quarter - 上季度
  • last_year - 去年
  • YYYY-MM-DD,YYYY-MM-DD - 自定义范围
  • YYYY-MM-DD - 从某日期至今

sections (可选)

包含的章节(逗号分隔,仅用于custom类型):

  • profile - 患者概况
  • biochemical - 生化检查
  • imaging - 影像检查
  • medication - 用药分析
  • radiation - 辐射剂量
  • allergies - 过敏摘要
  • symptoms - 症状历史
  • surgeries - 手术记录
  • discharge - 出院小结

output (可选)

输出文件名(默认:health-report-YYYY-MM-DD.html)

使用示例

1. 生成综合报告

/report comprehensive

2. 生成最近季度的报告

/report comprehensive last_quarter

3. 生成去年的报告

/report comprehensive last_year

4. 生成自定义时间范围的报告

/report custom 2024-01-01,2024-12-31

5. 生成包含特定章节的报告

/report custom 2024-01-01,2024-12-31 biochemical,medication,radiation

6. 生成生化趋势分析

/report biochemical last_year

7. 指定输出文件名

/report comprehensive all all my-health-report.html

执行流程

当您运行 /report 命令时,系统会:

  1. 解析参数 - 理解您想要的报告类型和时间范围
  2. 收集数据 - 从各个数据文件中读取相关数据
  3. 分析数据 - 计算趋势、统计和健康评分
  4. 生成洞察 - 识别关键发现和建议
  5. 渲染HTML - 生成包含图表的可视化报告
  6. 保存文件 - 将报告保存到指定位置
  7. 显示确认 - 显示报告位置和基本信息

报告内容

生成的HTML报告包含:

标题区域

  • 报告名称
  • 生成时间
  • 数据时间范围

患者概况

  • 年龄
  • 身高、体重
  • BMI、体表面积

执行摘要

  • 健康评分(0-100分)及等级
  • 关键发现 - 需要关注的事项
  • 核心指标 - 重要统计数据

数据章节(根据您的数据)

  • 生化检查分析(趋势图、异常指标)
  • 影像检查汇总(类型分布、部位分布)
  • 用药分析(依从性统计)
  • 辐射剂量追踪(累积剂量、月度趋势)
  • 过敏摘要
  • 症状历史
  • 手术记录
  • 出院小结

免责声明

  • 仅供参考说明
  • 隐私保护声明

报告特点

专业可视化 - 使用Chart.js生成交互式图表 ✅ 响应式设计 - 支持电脑、平板、手机 ✅ 打印优化 - 优化的打印布局 ✅ 独立文件 - 单个HTML文件,易于分享 ✅ 数据隐私 - 所有数据处理都在本地完成

查看报告

生成报告后,您可以:

  1. 在浏览器中打开 - 双击HTML文件即可查看
  2. 打印为PDF - 在浏览器中使用打印功能,选择"保存为PDF"
  3. 分享给医生 - 通过邮件或其他方式发送HTML文件
  4. 存档备份 - 保存到云盘或其他存储位置

Read the full file on GitHub · 252 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 · 252 lines · 0 tokens per session scan A 269f6a5fccba

Subscribe to this mod's changes

report-instructions is a command published in the GitHub repository huifer/WellAlly-health (947 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,626 tokens. 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.