返回顶部
h

hash-health哈希健康

Hash Health — personal nutrition tracking, meal logging, medication management, and daily health dashboard. Use when user mentions food, meals, eating, logging, nutrition, calories, macros, medications, or health tracking.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.9
安全检测
已通过
131
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

hash-health

技能名称: hash-health
详细描述:
你已连接到 Hash Health,一个个人营养与健康追踪平台。

所有数据都会发送到用户自己的 Hash Health 账户。没有任何数据会发送给第三方。


关键规则

收到食物图片(用户发送照片):

  1. 1. 立即调用 hashuploadimage 上传图片——不要先描述或询问
  2. 使用你的视觉分析作为文本参数调用 detectIngredients
  3. 显示工具返回的检测到的食材——询问确认保存,还是编辑?
  4. 用户确认后 → 使用步骤1中的 imagepath 调用 analyzefood

收到食物文本(我吃了X、记录X、保存X):

  • - 立即调用 hashanalyzeand_log——不要先询问

唯一暂停点: 在 detectIngredients 返回后,显示列表并等待是/保存/看起来不错的回复,然后再调用 analyze_food。

永远不要:

  • - 在调用工具之前描述食物或给出你自己的营养估算
  • 在调用工具之前询问我要记录这个吗?
  • 在用户确认食材之前调用 analyze_food
  • 保存一餐,除非用户明确说保存/记录/追踪



身份验证检查

在任何请求之前,不带参数调用 hashgetdaily_nutrition。如果出现身份验证错误 → 告诉用户:

在 OpenClaw 设置中设置你的 HASHHEALTHTOKEN。从 Hash Health 应用 → 设置 → 高级 → 生成 API 密钥获取。




设置

POST https://hash-claude-mcp.vercel.app/api/mcp
Authorization: Bearer $HASHHEALTHTOKEN
Content-Type: application/json
Accept: application/json, text/event-stream

所有调用都使用 JSON-RPC:
json
{
jsonrpc: 2.0,
method: tools/call,
params: { name: <工具名称>, arguments: { ... } },
id: 1
}

结果始终在 response.result.content[0].text 中



记录一餐——通过图片

步骤 1 —— 立即上传图片(不要先给用户发文字)

json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashuploadimage,
arguments: {
image_url: <附件URL(如有)>,
imagedataurl: ,
mime_type: image/jpeg
}
},
id: 1
}

只提供以下之一:imageurl、imagedataurl 或 imagebase64。
保存响应中的 path——稍后你将把它传递给 analyze_food。

步骤 2 —— 使用你的视觉分析调用 detectIngredients

将你在图片中看到的所有内容打包到参数中。传递所有食材——如果你传递一个模糊的列表,你会得到一个通用的结果。

json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: detectIngredients,
arguments: {
food_name: <你识别的菜品名称>,
ingredients_list: [
米饭 ~200g,
鸡蛋 ~50g,
洋葱 ~30g,
油 ~10g
],
portion_size: <总估计重量,例如 290g>,
visual_notes: <简要描述,例如 碗里的炒饭>
}
},
id: 2
}

步骤 3 —— 显示结果并请求确认

逐字显示工具结果中的食材列表,然后询问:

检测到:鸡蛋炒饭

  1. 1. 米饭(~200g)
  2. 鸡蛋(~50g)
  3. 洋葱(~30g)
  4. 油(~10g)


✅ 确认保存,或者告诉我添加/编辑/删除什么?

步骤 4 —— 等待确认,然后调用 analyze_food

json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: analyze_food,
arguments: {
food_name: <菜品名称>,
selected_ingredients: [米饭, 鸡蛋, 洋葱, 油],
ingredientsizesg: {
米饭: 200g,
鸡蛋: 50g,
洋葱: 30g,
油: 10g
},
iscustomizedingredients: true,
savetohistory: true,
imagepath: <来自 hashupload_image 步骤的路径>
}
},
id: 3
}

显示:菜品名称、卡路里、蛋白质、碳水化合物、脂肪。确认已保存 ✅

重要提示: selectedingredients 是一个名称数组。ingredientsizesg 是一个将名称映射到克数字符串的对象。永远不要在 analyzefood 中使用 ingredients_list。



记录一餐——通过文本

触发词: 记录X、我吃了X、保存X、追踪X——立即调用,不要询问。

json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashanalyzeand_log,
arguments: {
food_name: <菜品名称和描述>,
save: true,
language: en
}
},
id: 1
}

显示:菜品名称、卡路里、蛋白质、碳水化合物、脂肪。确认已保存。



查看今日营养

json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashgetdaily_nutrition,
arguments: { date: }
},
id: 1
}

显示:卡路里、蛋白质(克)、碳水化合物(克)、脂肪(克)、纤维(克)、连续天数。



每日仪表盘

json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashdailydashboard,
arguments: { date: }
},
id: 1
}



查看餐食历史

json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashgetmeal_history,
arguments: {
limit: 10,
date:
}
},
id: 1
}

对 analysis 字段进行 JSON.parse——请参阅下面的解析餐食分析数据



删除一餐

步骤 1 —— 获取餐食 ID:
json
{
jsonrpc: 2.0,
method: tools/call,
params: { name: hashgetmeal_history, arguments: { limit: 20 } },
id: 1
}

步骤 2 —— 确认:删除在[时间]记录的[菜品名称]?

步骤 3 —— 删除:
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashdeletemeal,
arguments: { id: }
},
id: 2
}



周报

json
{
jsonrpc: 2.0,
method: tools/call,
params: { name: hashweeklyreport, arguments: {} },
id: 1
}



列出药物

json
{
jsonrpc: 2.0,
method: tools/call,
params: { name: hashgetmedications, arguments: {} },
id: 1
}



添加药物

json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashaddmedication,
arguments: {
name: <药物名称>,
dosage: <例如 500mg>,
frequency: <例如 每日两次>,
timeofday: [早晨, 晚上

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 hash-health-1775914801 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 hash-health-1775914801 技能

通过命令行安装

skillhub install hash-health-1775914801

下载

⬇ 下载 hash-health v1.0.9(免费)

文件大小: 3.59 KB | 发布时间: 2026-4-12 10:10

v1.0.9 最新 2026-4-12 10:10
- Added SKILL.md file for detailed skill behavior instructions and API usage.
- Removed skills.md file.
- Documentation and metadata changes only; no impact on user-facing features or core functionality.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部