calorie-counter

calorie-counter is a skill for Claude Code, Codex from malue-ai/dazee-small. It costs 24 tokens per session (788 once invoked), scanned A, original, MIT.

A local food log that records daily calories and protein, compares them with personal targets, and creates diet reports. Calories measure food energy, while protein is a nutrient needed by the body.

In plain words
What is it for?
Use it to log meals, estimate their calories and protein, set daily goals, check remaining intake, and review weekly reports.
Why use it?
It keeps meal records and totals in one place, making it easier to see what has been eaten and what remains for the day.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to log meals, estimate their calories and protein, set daily goals, check remaining intake, and review weekly reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malue-ai/dazee-small/calorie-counter
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 malue-ai/dazee-small --skill calorie-counter
Clone the repo
git clone --depth 1 https://github.com/malue-ai/dazee-small

Made for: Claude Code, 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 calorie-counter

README.md
[![agentmods](https://agentmods.dev/badge/skills/malue-ai/dazee-small/calorie-counter/github.svg)](https://agentmods.dev/skills/malue-ai/dazee-small/calorie-counter)
Your own site
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/calorie-counter"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/calorie-counter/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 calorie-counter

Your own site · 80×15
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/calorie-counter"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/calorie-counter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 788 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.00024 $0.00788
Opus 5 $0.00012 $0.00394
Sonnet 5 $0.00005 $0.00158
Haiku 4.5 $0.00002 $0.00079

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

Security

Grade A, and why

calorie-counter 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 9d ago.

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.

instances/xiaodazi/skills/calorie-counter/SKILL.md · 99 lines

What it actually says

卡路里追踪

帮助用户记录每日饮食摄入,追踪卡路里和蛋白质,生成饮食报告。数据保存在本地。

使用场景

  • 用户说「记一下午餐吃了什么」「刚吃了一碗米饭和炒鸡蛋」
  • 用户说「今天还能吃多少卡路里」「我的蛋白质够了吗」
  • 用户说「看看这周的饮食报告」
  • 用户说「设置每日目标 1800 卡」

执行方式

数据存储

在用户数据目录维护 ~/Documents/xiaodazi/calories.json

{
  "goals": {
    "daily_calories": 2000,
    "daily_protein_g": 60
  },
  "logs": {
    "2026-02-26": {
      "meals": [
        {
          "time": "08:30",
          "meal": "早餐",
          "items": [
            {"name": "全麦面包 2片", "calories": 160, "protein": 6},
            {"name": "鸡蛋 1个", "calories": 70, "protein": 6},
            {"name": "牛奶 250ml", "calories": 150, "protein": 8}
          ]
        }
      ],
      "total_calories": 380,
      "total_protein": 20
    }
  }
}

食物热量估算

用户描述食物后,基于通用营养数据库估算热量:

常见食物 热量 (kcal) 蛋白质 (g)
米饭 1碗 (200g) 230 4
鸡胸肉 100g 165 31
鸡蛋 1个 70 6
苹果 1个 95 0.5
牛奶 250ml 150 8

估算时说明是「估算值」,建议用户根据实际份量调整。

记录流程

用户:午餐吃了一碗米饭、红烧肉、炒青菜
→ 估算:米饭 230 + 红烧肉 350 + 炒青菜 50 = 630 kcal
→ 记录到今日日志
→ 回复:午餐已记录 ✅ 约 630 kcal
→ 今日累计:1010 / 2000 kcal,还剩 990 kcal

周报模板

## 饮食周报(2/19 - 2/25)

| 日期 | 卡路里 | 蛋白质 | 达标 |
|---|---|---|---|
| 周一 | 1850 | 65g | ✅ |
| 周二 | 2200 | 55g | ⚠️ 超标 |
| ...  | ...  | ... | ... |

平均每日:1950 kcal / 62g 蛋白质

输出规范

  • 记录后立即显示当日剩余额度
  • 超标时温和提醒,不批评
  • 估算值标注为「约」,不给出虚假精确度
  • 数据始终本地存储,不上传
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. 9d ago First seen · 99 lines · 24 tokens per session scan A fcb7b045248a

Subscribe to this mod's changes

calorie-counter is a skill published in the GitHub repository malue-ai/dazee-small (36 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 788 once invoked, about $0.0001 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-31.