Photo Calorie Tracker
v1.0.0Photo Calorie Tracker - Recognizes food photos, logs daily calorie intake, and analyzes any date range. Use when: the user sends food images or asks about ca...
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name and description match the behavior: the SKILL.md and scripts focus on recognizing food images, estimating calories, logging daily records, and producing reports. The files referenced (workspace memory, temp image dir, and a local target_calorie config) are coherent with the stated purpose.
Instruction Scope
Instructions explicitly tell the agent to copy images into /root/.openclaw/workspace/temp_qqdata/, use the platform 'image' tool, and read/write per-day markdown records under /root/.openclaw/workspace/memory/. This is within the skill's scope but does require the skill to read and write files in the agent's workspace (including user-provided images). The SKILL.md and the script assume specific record formats and (in the script) Chinese section headings (grep '午餐'/'晚餐'), which may cause functional mismatches but not a security issue.
Install Mechanism
No install spec or external downloads; only an included bash script (scripts/report.sh) and some config/text files. No archives or remote code fetches detected.
Credentials
The skill requires no environment variables, credentials, or external service tokens. All file access is to workspace paths declared in SKILL.md and present in the bundle (config/target_calorie.txt).
Persistence & Privilege
always is false and the skill does not request system-wide changes or modify other skills. It will read/write its own workspace files (normal for this kind of skill).
Assessment
This skill appears internally consistent: it analyzes food photos using the platform 'image' tool and reads/writes files in /root/.openclaw/workspace (temp images and per-day memory markdown files). Before installing, consider: (1) it will store and read any images you copy into the temp folder — avoid placing sensitive photos there; (2) the included shell script reads per-day markdown records and expects certain headings (the script searches for Chinese labels), so you may need to adapt record formatting; (3) there are no network calls or credentials requested by the skill, so it doesn't exfiltrate data by design, but you should still confirm you trust the skill source because it will access files in the agent workspace.Like a lobster shell, security has layers — review code before you run it.
latest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
🔥 Photo Calorie Tracker (image-calorie-tracker)
Recognizes food photos, logs daily calorie intake, and generates reports.
When to Run
- The user sends food images
- The user asks about calories over the past X days (X is any number)
Workflow
Log Meals
- Copy images to
/root/.openclaw/workspace/temp_qqdata/YYYY-MM-DD-meal.jpg - Use the
imagetool to recognize food - Estimate calories for each food item
- Update
/root/.openclaw/workspace/memory/YYYY-MM-DD.md
Generate Report
- Read records for the target dates from
/root/.openclaw/workspace/memory/ - Read the target calories from
/root/.openclaw/workspace/skills/image-calorie-tracker/config/target_calorie.txt - Output the report in the required format
Output Format
📊 Calorie Tracking | Target:{target}
【MM-DD】{status}
{Breakfast if any}: {calories}
{Lunch if any}: {calories}
{Dinner if any}: {calories}
{Snack if any}: {calories}
Status Rules
- Incomplete: lunch or dinner is missing (breakfast does not count)
- {percent}%: difference between total calories and target; positive means over, negative means under
Meal Display Rules
- Show only lunch, dinner, and snack (breakfast not counted)
- Omit meals that are not recorded
- Calorie unit: kcal
Meal Definitions
- Lunch: around 12:00, about 300-800 kcal
- Dinner: around 18:00, about 400-1000 kcal
- Snack: snacks/desserts between lunch and dinner
Food Calorie Reference
| Category | Food | Calories (per 100g) |
|---|---|---|
| Staples | Rice | 130 kcal |
| Staples | Mixed grain rice | 120 kcal |
| Meat | Fried chicken cutlet | 280 kcal |
| Meat | Stir-fried pork slices | 180 kcal |
| Vegetables | Green pepper with pork | 150 kcal |
| Vegetables | Shredded potatoes | 120 kcal |
| Bakery | Bread/Cake | 250-350 kcal |
File Paths
- Temp images:
/root/.openclaw/workspace/temp_qqdata/ - Daily records:
/root/.openclaw/workspace/memory/YYYY-MM-DD.md - Target calories:
/root/.openclaw/workspace/skills/image-calorie-tracker/config/target_calorie.txt
Example Output
📊 Calorie Tracking | Target:2100
【03-16】+7%
Lunch: 1115
【03-17】Incomplete
Lunch: 820
Snack: 280
Files
5 totalSelect a file
Select a file to preview.
Comments
Loading comments…
