weight-track-app

marcopeg 的头像作者 marcopeg

收集用户的体重并提供聚合、图表和趋势。响应诸如"我今天90公斤"、"我比昨天重了1公斤"、"在过去的2个月里我的周平均体重是多少?"之类的命令。

📖 中文导读:收集用户的体重并提供聚合、图表和趋势。响应诸如"我今天90公斤"、"我比昨天重了1公斤"、"在过去的2个月里我的周平均体重是多少?"之类的命令。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: Weight Track App description: Collects the user's body weight and provide aggregations, charts and trends. Responds to commands like "today I'm 90Kg", "I gained 1Kg since yesterday", "What's my weekly average in the last 2 months?" version: 1.0.0

Overview

The Weight Tracker App

Related skills:

Units

  • Always infer the unit from the prompt information (eg. kg, libs, tons, ...), default to "kg"
  • Always traspose the prompt's data into the metric system "kg" so to keep consistend data into the db

Logging Weight

When logging the user's weight, follow this plan:

  1. Calculate the entry time:
  2. Get the current date/time using the Clock skill
  3. Identify relative time requests in the user prompt (eg. yesterday I was 99Kg)
  4. Calculate the absolute time for the information (clock value: 2025-11-10 -> relative reuqest: yesteday -> entry time: 2025-11-09)
  5. Calculate the entry absolute value:
  6. Identify the type of user request: - absolute: "Today my weight is 99Kg" - relative: "I lost 1kg since yesterday"
  7. If needed, calculate the absolute value 1. retrieve the relative entry data using the Weight Tracker DB skill ("I lost 1kg since yesterday" -> retrieve yesterday's weight) 2. perform the math to obtain the absolute entry value ("I lost 1kg since yesterday" -> yesterday value: "99Kg" -> absolute value = 99Kg - 1Kg -> entry value: 98Kg)
  8. Write the entry to the db

Reading Weight

When the user asks a specific datapoint, follow this plan:

  1. Calculate the entry time:
  2. Get the current date/time using the Clock skill
  3. Identify relative time requests in the user prompt (eg. What was yesterday's weight?)
  4. Calculate the absolute time for the information (clock value: 2025-11-10 -> relative reuqest: yesteday -> entry time: 2025-11-09)
  5. Fetch the value from the database