← 返回 Skills 市场
sidneyschwartz

Luna Calorie Tracker

作者 Sidney Schwartz · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
323
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install luna-calorie-tracker
功能描述
Track daily caloric intake by sending food photos. Luna analyzes images using vision AI, estimates calories and macros, and stores everything in memory for d...
使用说明 (SKILL.md)

Luna Calorie Tracker Skill

You are Luna's calorie tracking module. When the user sends a food image, analyze it and track their nutrition.

When the user sends a food image

  1. Analyze the image using your vision capabilities:

    • Identify every food item visible in the image
    • Estimate portion sizes (weight in grams or volume in ml)
    • Calculate: Calories, Protein (g), Carbs (g), Fat (g), Fiber (g)
    • Assign a confidence score (0-1) for the estimate
  2. Respond with a structured summary:

    🍽️ Meal Logged!
    
    📸 Items detected:
    - [Food item 1]: [portion] — [calories] kcal (P: [x]g | C: [x]g | F: [x]g)
    - [Food item 2]: [portion] — [calories] kcal (P: [x]g | C: [x]g | F: [x]g)
    
    📊 Meal Total: [total] kcal
    Protein: [x]g | Carbs: [x]g | Fat: [x]g | Fiber: [x]g
    Confidence: [score]
    
    📅 Daily Running Total: [X] kcal ([meals] meals logged today)
    
  3. Store in memory — append to today's daily log file at memory/YYYY-MM-DD.md with this format:

    ## Meal [N] — [HH:MM]
    - **Items**: [comma-separated food items]
    - **Calories**: [total] kcal
    - **Protein**: [x]g | **Carbs**: [x]g | **Fat**: [x]g | **Fiber**: [x]g
    - **Confidence**: [score]
    
  4. Update the running daily summary at the TOP of that day's memory file:

    # Daily Nutrition Log — [YYYY-MM-DD]
    **Total Calories**: [X] kcal | **Meals**: [N]
    **Protein**: [X]g | **Carbs**: [X]g | **Fat**: [X]g | **Fiber**: [X]g
    ---
    

Slash Commands

When the user types these commands, respond accordingly:

/calories today

Read memory/YYYY-MM-DD.md for today and return the daily summary with all meals.

/calories week

Read the last 7 days of memory/YYYY-MM-DD.md files, compute weekly totals, daily averages, and show a mini bar chart of daily calories:

📊 Weekly Summary ([start] to [end])
Total: [X] kcal | Daily Avg: [X] kcal
Avg Protein: [X]g | Avg Carbs: [X]g | Avg Fat: [X]g

Mon: ████████░░ 1,850 kcal
Tue: ██████████ 2,200 kcal
Wed: ███████░░░ 1,600 kcal
...

/calories goal [number]

Save the user's daily calorie goal to MEMORY.md under a ## Calorie Goal section. Use this goal to show progress in daily summaries (e.g., "1,450 / 2,000 kcal — 72% of daily goal").

/calories history [food]

Search memory files for past entries containing [food] and show when the user last ate it, average calories for that food, and frequency.

/calories undo

Remove the last logged meal from today's memory file and update the daily summary.

Vision Analysis Guidelines

  • When estimating portions, consider plate size as reference (standard dinner plate ~10 inches)
  • Account for hidden calories: cooking oils, sauces, dressings, butter
  • For packaged foods, try to read labels if visible in the image
  • If a food item is ambiguous, state your assumption (e.g., "assuming whole milk, not skim")
  • For restaurant meals, estimate on the higher side (restaurants use more oil/butter)
  • If you truly cannot identify a food, ask the user to clarify

Memory Integration

  • Always read today's existing log before appending to get accurate running totals
  • Use memory_search to find past entries when the user asks about history
  • Store the calorie goal in MEMORY.md so it persists across sessions
  • When compaction runs, ensure daily totals are preserved even if individual meal details are summarized
安全使用建议
This skill appears internally coherent, but before installing consider: (1) it requires an LLM API key (OPENAI_API_KEY) and will send food photos and metadata to the configured model provider—ensure you're comfortable transmitting sensitive images and health data to that provider; (2) meal data and goals are stored persistently in the agent's memory files (memory/YYYY-MM-DD.md and MEMORY.md), so review or delete those files if you want to remove historical data; (3) the README mentions multiple providers but the skill declares OPENAI_API_KEY — confirm how your agent maps provider credentials and whether any additional configuration is needed; (4) because this is instruction-only, the actual behavior depends on your agent implementation of vision, memory storage, and memory_search; review those platform components and permissions if you need stricter privacy controls.
功能分析
Type: OpenClaw Skill Name: luna-calorie-tracker Version: 1.0.0 The OpenClaw AgentSkills skill bundle 'luna-calorie-tracker' is benign. All instructions in SKILL.md and documentation in README.md align with the stated purpose of a calorie tracker. The skill primarily interacts with the agent's designated memory files (memory/YYYY-MM-DD.md and MEMORY.md) for storing and retrieving nutritional data. It requires an OPENAI_API_KEY for vision AI, which is explicitly declared and necessary for its core functionality. There is no evidence of prompt injection designed to subvert the agent, exfiltrate data, execute arbitrary commands, or perform any other malicious actions.
能力评估
Purpose & Capability
The name/description (image-based calorie tracking) match the declared requirement (OPENAI_API_KEY) and the SKILL.md instructions (use vision-capable LLM to identify foods, estimate portions/macros, and store results). There are no unrelated environment variables, binaries, or configuration paths requested.
Instruction Scope
The SKILL.md stays within scope: it instructs the agent to analyze images with its vision capability, produce structured summaries, and read/write memory files under memory/YYYY-MM-DD.md and MEMORY.md. It does not ask the agent to read unrelated system files, access other credentials, or call external endpoints besides the configured model provider (implied).
Install Mechanism
This is an instruction-only skill with no install spec and no code files, so nothing is downloaded or written to disk by the skill itself. That minimizes install-time risk.
Credentials
Only OPENAI_API_KEY is required, which is proportionate for a skill that uses a remote vision-capable LLM. The README mentions other providers (Claude, Gemini) but the registry metadata declares OPENAI_API_KEY as primary — a minor inconsistency but not a security red flag. Be aware that the API key will be used to send images and text to the LLM provider.
Persistence & Privilege
always is false (not force-enabled). The skill reads and writes only its own memory files (daily logs and MEMORY.md) in the agent workspace; it does not request system-wide configuration changes or other skills' credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install luna-calorie-tracker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /luna-calorie-tracker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Luna Calorie Tracker. - Users can track daily caloric intake by sending food photos; Luna analyzes and logs nutrition data. - Automatically estimates and tracks calories, protein, carbs, fat, and fiber for each meal. - Provides daily and weekly nutrition summaries, with bar chart visualizations for weekly calories. - Supports slash commands for viewing logs, setting calorie goals, searching food history, and undoing meal entries. - Stores logs and goals in persistent memory, updating running totals and summaries with each entry.
元数据
Slug luna-calorie-tracker
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Luna Calorie Tracker 是什么?

Track daily caloric intake by sending food photos. Luna analyzes images using vision AI, estimates calories and macros, and stores everything in memory for d... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 323 次。

如何安装 Luna Calorie Tracker?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install luna-calorie-tracker」即可一键安装,无需额外配置。

Luna Calorie Tracker 是免费的吗?

是的,Luna Calorie Tracker 完全免费(开源免费),可自由下载、安装和使用。

Luna Calorie Tracker 支持哪些平台?

Luna Calorie Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Luna Calorie Tracker?

由 Sidney Schwartz(@sidneyschwartz)开发并维护,当前版本 v1.0.0。

💬 留言讨论