Meal tracker

From AtlasOmnia/hermes-custom-pack · View interactive version

Meal tracker is an AI agent skill from the GitHub repository AtlasOmnia/hermes-custom-pack. meal-tracker — Track meals and calories from a photo or text description. Vision-based portion estimates, daily calorie/macro budget, markdown food log.

How to use this skill

Skill file

Meal Tracker

Log meals from a photo or a text description, track calories and macros against the user's daily budget, and keep a dated markdown food log.

Setup (ask once, then remember)

Meal logging workflow

Photo input (user sends image)

  1. Use vision_analyze with the image — ask: "Identify each food item, estimate portion sizes in common units (oz, cups, pieces), and provide calorie + macro breakdown per item."
  2. If the photo is clearly a Nutrition Facts label, skip broad estimation and use the exact visible label values: serving size, calories, protein, fat, carbs, and useful notes (sodium/fiber/sugar). Treat one visible bag/container as one serving unless the user says otherwise.
  3. If the user combines text + image (e.g. "add 1 coffee and this"), log both in the same timestamped meal/snack section.
  4. For quick repeated "Add" messages with a label photo, use the visible label values, append a timestamped snack/drink section to today's log, recalculate totals, and verify the file. Do not ask for product names when the label gives enough to log an accurate entry.
  5. A bare food/label image after an active food-log exchange is an implicit "add this" — log one serving/container from the visible label unless the image suggests multiple servings.
  6. If today's log is missing but the chat already contains same-day entries, reconstruct the daily log from the conversation before appending.
  7. Parse the response into structured entries, log to the daily file, and report: items logged, calories used, remaining for the day.

Text input (user describes a meal)

  1. Estimate portions from common serving sizes when not specified; flag uncertain estimates.
  2. Use standard nutrition values (USDA) for known foods.
  3. For recurring packaged items ("the protein bars", "same coffee"), reuse the most recent matching line item's calories/macros and mention that briefly.
  4. Log to the daily file and report remaining calories.

Batch corrections (user says "make sure X total" or "log N of these")

  1. Read the current daily log.
  2. Adjust line items so the count matches the user's stated total.
  3. Recalculate subtotals and daily totals across all macros, not just calories.
  4. Rewrite the whole section so the math is self-consistent — never leave stale subtotals.

Daily log format

# [YYYY-MM-DD] Food Log

**Daily Target:** <target> cal | Protein <P>g | Fat <F>g | Carbs <C>g

## Meals

### Breakfast (~[time])
- Item: ~cal | P: Xg | F: Xg | C: Xg
*Subtotal: XXX cal / PXg / FXg / CXg*

### Lunch (~[time])
- ...

### Dinner (~[time])
- ...

### Snacks (~[time])
- ...

## Daily Totals
**Calories:** XXX/<target> (XXX remaining)
**Protein:** XX/<P>g | **Fat:** X/<F>g | **Carbs:** XX/<C>g

Response format

When logging a meal, respond with:

Example: "Logged lunch — chicken salad (~520 cal). Down 780/1800 today. 1020 remaining. Protein at 92/140g, still need 48g."

Edge cases

Weekly review (when asked)

Privacy and safety

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.