Calorie Journal Factory: Zero-Code JSON Customized Healing Diet Journal

Preface

Daily meal logging easily slides into two extremes: either just dumping dish names into a memo app with no structure or emotional feedback, or opening an app with red-letter warnings and being driven by copy like “exceeded limit” or “failed.” If you want to naturally say “what I ate today” in an Agent conversation, get a shareable journal card, and avoid writing your own rendering scripts, the community Skill “Calorie Journal Factory” on SkillHub strings together logging, nutrition estimation, emotion tagging, and visual output into one pipeline. Below we introduce what it is, what it does, and how to install and trigger it.

What This Is

Calorie Journal Factory (coordinates @user_9cef5c88/calorie-journal, current version 3.0.1, category life-service, source community) is an Agent Skill maintained by publisher user_9cef5c88. The author attribution in the Skill metadata is “Dietary Healing Studio.” The official page positions it as a “one-person-company level healing-style dietary logging platform”: it performs nutrition-related calibration based on the Chinese Dietary Guidelines 2022, emphasizes “zero-critique” language (avoiding anxiety-inducing phrases like “exceeded limit” or “warning”), and declares requires_api_key=false, meaning no API Key configuration is required.

In SkillHub statistics, this Skill has a rating of 100000 and 873 downloads (based on the SkillHub page and crawled data, subject to change over time).

Core Features

The following capabilities are drawn from the official introduction and the SKILL.md / README.md files inside the installation package, organized by module.

Complete Theme Pack System

Users can customize journal styles by editing JSON, without modifying Python business logic. Each theme pack contains 6 configuration modules: naming.json (naming), character.json (characters), emotion.json (emotions), quotes.json (phrases), style.json (visuals), and stickers.json (stickers). Built-in theme examples include default, space_explorer, and others; when creating a new theme, you can copy the scripts/theme_packs/default directory and modify the above JSON files. For detailed steps, refer to scripts/theme_packs/HOW_TO_MAKE_THEME.md inside the package.

Dual Output System

  • Image version: scripts/gen_card.py generates PNG cards (described in the docs as a transit-card-style layout, drawn purely in code without relying on Emoji fonts, ensuring consistent display on Linux and other environments).
  • Character version: scripts/text_handbook_generator.py outputs plain text / Markdown-friendly content, suitable for chat forwarding or plain-text note environments.

7-Level Food Search and Data Self-Check

scripts/search_engine_v2.py implements multi-level fallback search (built-in library, user-extended data, optional external data sources with coefficient corrections, and smart estimation as a last resort). The generation workflow includes a 7-dimension data self-check; when errors occur, you can consult SELF_CHECK_REPORT.txt or run python gen_card.py --check for troubleshooting (see the Skill documentation’s “Quick Error Diagnostics”).

Emotions, Stickers, and Little Animals

  • food_mood_analyzer.py: matches emotional tags to food (documented as 6 emotion categories).
  • emoji_stickers.py: draws stickers purely in code.
  • animal_blind_box.py: matches “little animal blind box” companion elements based on nutritional structure.

Trigger Conditions

The Skill declares itself to be loaded when users mention keywords such as dietary logging, calories, journal, theme pack, character-version journal, or express an explicit logging intent; it should not be triggered when merely discussing weight-loss methods without a logging intent, or when only medical professional consultation is needed. The complete trigger word list can be found in the triggers field at the top of the installed SKILL.md.

Installation & Activation

Environment Dependencies

The Skill declares the following requirements:

  • python3
  • Pillow (a common error when missing is ModuleNotFoundError: PIL; install it with pip install Pillow)

Install via SkillHub CLI

First, confirm that skillhub is installed on your machine (for installation instructions, see SkillHub Installation Guide). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it may be installed to the default ./skills/ and not be recognized.

In Cursor, the skills directory is typically ~/.cursor/skills/. Example installation command:

skillhub install @user_9cef5c88/calorie-journal --dir ~/.cursor/skills/

Note: The coordinate must include the @ prefix; using just user_9cef5c88/calorie-journal may fail to resolve the community package.

Other common client paths (excerpted from the SkillHub installation documentation, adjust to your local machine):

  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Install via Conversation with AI

The prompt provided on the SkillHub Skill page is:

Please install `@user_9cef5c88/calorie-journal` according to https://skillhub.cn/install/skillhub.md.

Send the above content to an Agent that has Skill support enabled, and it will complete the CLI installation and directory configuration according to the documentation.

After Installation

After restarting or refreshing the Agent’s Skill loading, trigger it in a conversation using the examples below. Scripts are executed by default in the scripts/ directory inside the Skill package; for advanced configuration, refer to ADVANCED_SETUP.md and THEME_PACKS_README.md within the package.

Typical Usage

The fastest way is to simply describe your meals and let the Agent call scripts according to the Skill workflow. The examples from the “Quick Start” section of the official SKILL.md can be copied directly:

I had baozi and eggs for breakfast today, help me generate a journal
Log today's meals: lunch was kung pao chicken with rice, snack was an apple and milk tea
Help me generate today's dietary journal, use the "healing forest" theme

After triggering, the Agent should follow the Skill instructions to complete food recognition, emotion analysis, card generation, little animal matching, and data self-check in sequence, then deliver the image and/or character-version results. If the input is too brief, it will follow the “three rounds of follow-up questions” described in the documentation rather than failing directly.

Generate Image Cards Locally in One Step

Navigate to the scripts directory inside the Skill package and run:

cd scripts
python gen_card.py my_journal

This command chains recognition, calculation, generation, and self-check; the output directory name is specified by the last argument.

Custom Theme Packs

Copy the default theme and edit the 6 JSON files:

cp -r scripts/theme_packs/default scripts/theme_packs/my_amazing_theme

After modifying the JSON files under my_amazing_theme, use it via the theme loader (documented example: loader.load_theme("my_amazing_theme"), which is invoked in the Agent session or script context as guided by the Skill).

Character-Version Journal

In a conversation, specify that you need a “character-version journal” or “text journal,” and the Agent will call text_handbook_generator.py; you can also run it yourself step-by-step under scripts/ following the instructions in SKILL.md once you are familiar with the parameters.

Use Cases & Notes

Who It’s For

  • People who want to log meals in natural language within environments like Cursor or Claude Code and receive shareable journal cards.
  • People who are willing to adjust color schemes, phrases, and sticker rules by editing JSON, without wanting to maintain a standalone frontend or font resources.
  • Users who need stable image generation on Linux and want to avoid Emoji font box issues (the Skill emphasizes pure code drawing and zero Emoji font dependency).

Limitations & Cautions

  • The Skill documentation explicitly states: it is not suitable as a replacement for medical-grade nutritional diagnosis; diets for specific diseases require following a doctor’s advice, and the tool side serves only as a personal logging reference.
  • When there are too many meals in a single day (the documentation suggests splitting if exceeding 10 meals) or when logging multiple days at once, requests should be split to avoid generating too many cards in a single run.
  • Some external data sources (such as TianAPI mentioned in the documentation) are optional integrations and require self-configuration; without configuration, it falls back to the built-in library and estimation, with accuracy depending on the detail level of your description.
  • The image version depends on Pillow; if the system font path is unusual, font-related errors may need to be handled according to the troubleshooting table in SKILL.md.

Conclusion

Calorie Journal Factory transforms “what you said” into structured dietary data, then turns it into character or PNG journals through theme packs and the dual output system, while using multi-level search and self-checks to reduce the risk of empty results and silent errors. If you want to do low-anxiety, customizable-style dietary logging within an Agent, you can install v3.0.1 from SkillHub and trigger it using the conversational examples above.

  • SkillHub page: https://www.skillhub.cn/skills/user_9cef5c88/calorie-journal
  • Official coordinate link: https://api.skillhub.cn/user_9cef5c88/calorie-journal
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye