diet-tracker

diet-tracker is a skill for Codex from JuneYaooo/mediwise-health-suite. It costs 39 tokens per session (2,303 once invoked), scanned A, original, MIT.

A food and nutrition record manager for meals, food items, daily and weekly summaries, and calorie trends. It stores measurements and notes without giving dietary treatment or advice.

In plain words
What is it for?
Use it to add meals, list their food items, review nutrition summaries, and examine calorie changes over time.
Why use it?
It keeps meal details and nutrition totals in one place and can connect them with health and weight records.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to add meals, list their food items, review nutrition summaries, and examine calorie changes over time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/juneyaooo/mediwise-health-suite/diet-tracker
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JuneYaooo/mediwise-health-suite --skill diet-tracker
Clone the repo
git clone --depth 1 https://github.com/JuneYaooo/mediwise-health-suite

Made for: Codex.

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 diet-tracker

README.md
[![agentmods](https://agentmods.dev/badge/skills/juneyaooo/mediwise-health-suite/diet-tracker/github.svg)](https://agentmods.dev/skills/juneyaooo/mediwise-health-suite/diet-tracker)
Your own site
<a href="https://agentmods.dev/skills/juneyaooo/mediwise-health-suite/diet-tracker"><img src="https://agentmods.dev/badge/skills/juneyaooo/mediwise-health-suite/diet-tracker/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 diet-tracker

Your own site · 80×15
<a href="https://agentmods.dev/skills/juneyaooo/mediwise-health-suite/diet-tracker"><img src="https://agentmods.dev/badge/skills/juneyaooo/mediwise-health-suite/diet-tracker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,303 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.00039 $0.02303
Opus 5 $0.00019 $0.01151
Sonnet 5 $0.00008 $0.00461
Haiku 4.5 $0.00004 $0.00230

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

Security

Grade A, and why

diet-tracker 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 11d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (index.js, scripts/diet.py, scripts/food_lookup.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

diet-tracker/SKILL.md · 132 lines

How it starts

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

MediWise · 饮食追踪 Skill

概述

提供每餐饮食记录、食物条目管理、每日/每周营养摘要、热量趋势分析等功能。与 mediwise-health-tracker 共享数据库,可与 weight-manager 联动形成"饮食 → 热量 → 体重"完整闭环。

本 Skill 只记录和展示饮食数据、数据来源、用户目标差异与记录完整度,不提供营养治疗或饮食指导。内置参考区间只用于客观对比,不据此推荐用户增加、减少或替换食物。

数据模型

diet_records(一餐记录)

字段 说明
id 记录 ID
member_id 成员 ID
meal_type 餐次: breakfast/lunch/dinner/snack
meal_date 日期 YYYY-MM-DD
meal_time 时间 HH:MM(可选)
total_calories 总热量 kcal
total_protein 总蛋白质 g
total_fat 总脂肪 g
total_carbs 总碳水 g
total_fiber 总膳食纤维 g
note 备注

diet_items(食物条目)

字段 说明
id 条目 ID
record_id 关联 diet_records.id
food_name 食物名称
amount 数量
unit 单位(g/ml/份/个等)
calories 热量 kcal
protein 蛋白质 g
fat 脂肪 g
carbs 碳水 g
fiber 膳食纤维 g
note 备注

功能列表

diet.py — 饮食记录 CRUD

动作 子命令 必要参数 可选参数 说明
add-meal add-meal --member-id, --meal-type, --meal-date --meal-time, --note, --items (JSON) 添加一餐记录(可同时包含多个食物条目)
add-item add-item --record-id, --food-name --amount, --unit, --calories, --protein, --fat, --carbs, --fiber, --note 向已有餐次追加食物条目
list list --member-id --date, --start-date, --end-date, --meal-type, --limit 查看饮食记录
delete delete --id --type (record/item) 删除记录或条目
daily-summary daily-summary --member-id, --date 某日营养摘要

nutrition.py — 营养分析

动作 子命令 必要参数 可选参数 说明
weekly-summary weekly-summary --member-id --end-date 一周营养趋势(每日热量、平均三大营养素)
calorie-trend calorie-trend --member-id --days (默认 7) 热量趋势分析(N 天每日总热量)
nutrition-balance nutrition-balance --member-id --days (默认 7) 三大营养素比例分析

food_lookup.py — 食物营养查询

动作 子命令 必要参数 可选参数 说明
food-lookup search params.query params.limit (默认5), params.source (auto/cfcd/brands/usda/openfoodfacts/off/all) 按可用数据源搜索食物营养(本地数据包 → USDA → Open Food Facts)
food-stats stats 查看食物数据库概况(各数据源条目数)

Read the full file on GitHub · 132 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 132 lines · 39 tokens per session scan A 132cecb62fbe

Subscribe to this mod's changes

diet-tracker is a skill published in the GitHub repository JuneYaooo/mediwise-health-suite (28 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 2,303 once invoked, about $0.0002 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.