Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install nutrition --cli-only
    
  2. Verify: nutrition-pp-cli --version
  3. Ensure the reported install directory is on $PATH for 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 --agent
    
  • rank — 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 --agent
    
  • find — 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 --agent
    
  • meal — 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

Полный SKILL.md на GitHub

Установить pp-nutrition в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash

FAQ

Что делает скилл 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), без исполняемых скриптов.

Похожие скиллы

Сравнить pp-nutrition с