pp-nutrition
БесплатноБез исполняемых скриптовНе проверенOne agent-native CLI over USDA FoodData Central and NutritionValue.org - with cross-source enrichment, protein-density comparison, nutrient ranking, and a…
от mvanhorn★ 2 170 звёзд на GitHubОб этом скилле
Nutrition (USDA FoodData Central + NutritionValue.org) — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the nutrition-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install nutrition --cli-only - Verify:
nutrition-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:
go install github.com/mvanhorn/printing-press-library/library/food-and-dining/nutrition/cmd/nutrition-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
Look up any food's nutrition from USDA's ~600K-food database, then enrich it with NutritionValue.org's derived analytics (net carbs, omega-6/omega-3 ratio) that the USDA API never exposes. Compare foods on a per-100kcal protein-density basis, rank foods by any nutrient, filter by compound thresholds, and log a daily diary against targets - all offline-cached, cited, and agent-native.
When to Use This CLI
Use this CLI when an agent or user needs trustworthy, citable food nutrition data: looking up macros and micros for a food, comparing foods by protein density or on a common basis, ranking foods by a nutrient, finding foods that meet compound dietary thresholds, enriching a USDA record with NutritionValue.org's derived analytics, or logging a daily food diary against targets. It is offline-cached and agent-native, so repeated lookups and aggregations are cheap and the numbers always trace to a real USDA fdcId.
Anti-triggers
Do not use this CLI for:
- Do not use this CLI for restaurant chain menu items - USDA and NutritionValue.org do not carry curated restaurant menus (use Nutritionix or CalorieKing).
- Do not use this CLI for glycemic index - neither source provides it.
- Do not use this CLI to place grocery orders or track weight/biometrics - it is a nutrition-facts and diary tool, not a fitness app.
- Do not use this CLI as a medical or clinical nutrition authority - it reports database values, not personalized dietary advice.
Unique Capabilities
These capabilities aren't available in any other tool for this API.
Cross-source intelligence
enrich— Merge NutritionValue.org's derived analytics (net carbs and omega-6/omega-3 ratio) onto a USDA food record by its shared FDC id.Reach for this when a user wants net carbs or the omega-6/omega-3 ratio - numbers no USDA API call returns.
nutrition-pp-cli enrich 173414 --agentrank— Top or bottom foods by any single nutrient, filterable by category and dataset, ingested from NutritionValue.org's precomputed ranking pages.Reach for this to answer 'which foods are highest/lowest in nutrient X' without paging the whole database yourself.
nutrition-pp-cli rank potassium --order lowest --agent
Local math no API does
compare— Compare 2-5 foods side by side on a common basis: per 100 g, per serving, or per 100 kcal (protein density).Reach for this to rank foods by protein density or compare macros fairly across different serving sizes.
nutrition-pp-cli compare 2646170 173414 747447 --basis 100kcal --agentfind— Find foods that satisfy multiple nutrient thresholds at once (e.g. protein >= 20 g AND kcal <= 165 per 100 g).Reach for this for diet-constrained discovery like high-protein low-calorie foods in one query.
nutrition-pp-cli find --min protein=20 --max-kcal 165 --agentmeal— Total nutrition across several foods at given quantities in one stateless call (id:quantity pairs).Reach for this to get the nutrition of a recipe or plate without recording it in the diary.
nutrition-pp-cli meal 173414:50g 1105314:120g --agent
Local state that compounds
log— A persistent daily food diary with macro/micro targets, backed by local SQLite, with today/summary/progress reports._Reach for this to record what a user ate a
Установить pp-nutrition в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashFAQ
Что делает скилл pp-nutrition?
One agent-native CLI over USDA FoodData Central and NutritionValue.org - with cross-source enrichment, protein-density comparison, nutrient ranking, and a local SQLite cache no other nutrition tool ships. Trigger phrases: `nutrition facts for`, `how much protein in`, `compare calories of`, `net carbs in`, `foods highest in`, `log what I ate`, `use nutrition`, `run nutrition-pp-cli`.
Как установить скилл pp-nutrition?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pp-nutrition запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic