WellAlly-health: Command for Claude Code

.claude/commands/profile.md

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

A Chinese-language command for storing and viewing basic medical details such as sex, height, weight, and birth date.

In plain words
What is it for?
Use it to create or update a profile, validate the entered values, and view the saved information and calculated measurements.
Why use it?
It keeps these details in one place and calculates age, body mass index (BMI), and body-surface area from them.

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/profile.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 profile

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/huifer/wellally-health/profile"><img src="https://agentmods.dev/badge/commands/huifer/wellally-health/profile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 1,170 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.00005 $0.01170
Opus 5 $0.00003 $0.00585
Sonnet 5 $0.00001 $0.00234
Haiku 4.5 $0.00001 $0.00117

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

Security

Grade A, and why

profile 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 10d 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/profile.md · 169 lines

How it starts

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

用户基础参数设置

用于设置或查看用户的基础医疗参数,包括性别、身高、体重和出生日期。

操作类型

1. 设置参数 - set

设置用户的基础参数,可以重复设置以更新数据。

参数说明:

  • gender: 性别(M=男性,F=女性)
  • height: 身高,单位厘米(cm)
  • weight: 体重,单位公斤(kg)
  • birth_date: 出生日期,格式 YYYY-MM-DD

示例:

/profile set F 175 70 1990-01-01
/profile set gender=F height=175 weight=70 birth_date=1990-01-01

2. 查看参数 - view

查看当前已设置的基础参数。

执行步骤

设置参数 (set)

  1. 读取现有数据

    • 读取 data/profile.json
    • 如果文件不存在,创建新文件
  2. 验证输入数据

    • 检查性别:M、F 或其他有效值
    • 检查身高范围:50-250 cm
    • 检查体重范围:2-300 kg
    • 检查日期格式:YYYY-MM-DD
    • 检查出生日期不能晚于今天
  3. 计算派生指标

    • 计算年龄(基于出生日期)
    • 计算BMI(体重kg / 身高m²)
    • 计算体表面积(Mosteller公式):√(身高cm × 体重kg / 3600)
  4. 保存数据

    • 更新 data/profile.json
    • 保留历史记录(可选)
  5. 输出确认信息

    ✅ 用户基础参数已更新
    
    基本信息:
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    性别:F(女)
    身高:175 cm
    体重:70 kg
    出生日期:1990-01-01 (35岁)
    
    计算指标:
    ━━━━━━━━━━━━━━━━━━━━━━━━━━
    BMI:22.9 (正常)
    体表面积:1.85 m²
    
    数据已保存至:data/profile.json
    

查看参数 (view)

  1. 读取数据

    • 读取 data/profile.json
  2. 显示信息

    • 如果数据存在,显示完整信息
    • 如果数据不存在,提示用户设置

数据结构

data/profile.json 格式:

{
  "created_at": "2025-12-31",
  "last_updated": "2025-12-31",
  "basic_info": {
    "gender": "F",
    "height": 175,
    "height_unit": "cm",
    "weight": 70,
    "weight_unit": "kg",
    "birth_date": "1990-01-01"
  },
  "calculated": {
    "age": 35,
    "age_years": 35,
    "bmi": 22.9,
    "bmi_status": "正常",
    "body_surface_area": 1.85,
    "bsa_unit": "m²"
  },
  "history": [
    {
      "updated_at": "2025-12-31",
      "height": 175,
      "weight": 70
    }
  ]
}

BMI 分类标准

  • 偏瘦:< 18.5
  • 正常:18.5 - 23.9
  • 超重:24 - 27.9
  • 肥胖:≥ 28

注意事项

  • 身高体重可以随时更新,建议定期测量
  • 出生日期用于计算年龄,设置后不建议更改
  • 所有数据仅保存在本地,确保隐私安全
  • 体表面积用于辐射剂量计算,务必准确填写

示例用法

# 设置完整参数
/profile set F 175 70 1990-01-01

# 使用参数名设置
/profile set gender=M height=180 weight=75 birth_date=1985-06-15

# 只更新体重
/profile set weight=68

# 查看当前参数
/profile view

错误处理

  • 格式错误: "参数格式错误,请使用:/profile set F 175 70 1990-01-01"
  • 范围错误: "身高应在50-250cm之间,体重应在2-300kg之间"
  • 日期错误: "出生日期不能晚于今天"
  • 未设置: "请先设置基础参数:/profile set F 175 70 1990-01-01"

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

Subscribe to this mod's changes

profile is a command published in the GitHub repository huifer/WellAlly-health (943 stars, last pushed 1mo ago), licensed MIT. It adds 5 tokens to every session and 1,170 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.