技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v0.1.0
统计:⭐ 0 · 212 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :可疑 · OpenClaw :良性
Package:abstract-sum/nutrition-tracker
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :良性
OpenClaw 评估
This skill is internally consistent with its description: it logs meals and maintains a local Obsidian-based profile and monthly logs, and does not request credentials or reach out to external endpoints.
目的
The scripts create/read/write a profile.json and monthly markdown files inside an Obsidian vault (default: ~/Documents/obsidian/yzhai-daily) and compute macro/ calorie targets. The requested files, commands, and behavior line up with the 'Nutrition Tracker' description; there are no unrelated services, credentials, or binaries required.
说明范围
The runtime instructions tell the agent to run bundled shell/Python scripts that will modify files in the user's Obsidian vault (create directories, write profile.json, update monthly .md logs). This is expected for the stated purpose, but be aware the skill will write to your filesystem (the default vault or whatever OBSIDIAN_VAULT you set). There are no network calls or attempts to read unrelated system files. If you want to be cautious, bac…
安装机制
There is no install specification (instruction-only). All code is included in the skill bundle (scripts and locales); nothing is downloaded or installed from external URLs.
证书
The skill requires no credentials or secret environment variables. It optionally respects OBSIDIAN_VAULT if present to choose the storage path; otherwise it uses a sensible default. No broad credential access is requested.
持久
always is false and the skill is user-invocable only. It does not attempt to modify other skills or system-wide settings; its persistent effect is limited to creating/updating files in the vault (its own data).
综合结论
This skill appears to do exactly what it says: run the provided scripts to store a nutrition profile and log meals inside an Obsidian vault. Before installing or running it: (1) review the included scripts (they are short and bundled) — they operate locally and do not make network requests; (2) back up your Obsidian vault or set OBSIDIAN_VAULT to a test directory to avoid unintended modifications; (3) be aware the scripts will create/overwrite…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Nutrition Tracker」。简介:Track daily calories and macros in Obsidian, with profile initialization (sex/h…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/abstract-sum/nutrition-tracker/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: nutrition-tracker
description: Track daily calories and macros in Obsidian, with profile initialization (sex/height/weight/goal) and goal-based target checks. Includes i18n (zh-CN/en-US). Use when user logs meals, asks if targets are met, or wants to set/remember nutrition profile.
---
# Nutrition Tracker (Obsidian)
This skill logs meals (kcal + P/C/F) into an Obsidian vault and maintains daily totals. It also stores a lightweight nutrition profile (sex/height/weight/activity/goal) and can evaluate whether today's intake meets targets.
> i18n: scripts support `--lang zh-CN|en-US` (default: `zh-CN`).
## Storage
- Vault (default): `~/Documents/obsidian/yzhai-daily`
- Profile: `health/eat/profile.json`
- Monthly log: `health/eat/YYYY-MM/YYYYMM_calories_macros.md`
## Quick start
### 1) Initialize / update profile
```bash
bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_init.sh
--sex male
--height 175
--weight 75
--activity office
--goal cut
--kcal 2200
--lang zh-CN
```
### 2) Log a meal
```bash
bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_log.sh
--date "2026-03-04" --time "19:54" --meal dinner
--desc "rice 150g; potato 120g; meat+egg 200g; soup 200g"
--kcal 830 --p 45 --c 69 --f 40
--lang zh-CN
```
### 3) Check whether today's targets are met
```bash
bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_check_today.sh
--date "2026-03-04"
--lang zh-CN
```
## Target logic (defaults)
If profile has no explicit macro targets, defaults are computed by goal:
- **cut** (fat loss):
- Protein: `2.0 g/kg`
- Fat: `0.8 g/kg`
- Carbs: remaining calories (based on kcal target)
You can override targets explicitly in profile (see `nutrition_init.sh --pTarget/--cTarget/--fTarget`).
## Notes
- Keep meal macros as estimates; refine later by updating entries.
- This skill is designed to be deterministic via scripts, not free-form editing.