Agent skill

Pp Open Food Facts

by mvanhorn in mvanhorn/printing-press-library

Use Open Food Facts source-backed recipes for product lookup, structured search, nutrition summaries, allergen inspection, product comparison, and category samples.

Apache-2.0Auto-check: notesProductivity & Automation

Install Pp Open Food Facts

skills CLI
$ npx skills add mvanhorn/printing-press-library --skill pp-open-food-facts -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mvanhorn/printing-press-library pp-open-food-facts --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mvanhorn/printing-press-library.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-skills/pp-open-food-facts .claude/skills/pp-open-food-facts && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pp-open-food-facts
GitHub stars
2.1k
Token cost
~1.5k tokens
SKILL.md length
570 words
Files
1
Skills in repo
506
Repo updated
First seen
Licence
Apache-2.0

At a glance

Use Open Food Facts source-backed recipes for product lookup, structured search, nutrition summaries, allergen inspection, product comparison, and category samples.

  • Works in 3 steps: Install via the Printing Press… → Verify: open-food-facts-pp-cli --version → Ensure the reported install directory is…
  • Phrases: Open Food Facts
  • SKILL.md covers Prerequisites: Install the CLI, When To Use, When Not To Use and Setup, plus 1 more section
  • Calls go and npx; reaches world.openfoodfacts.org

What it does

Pp Open Food Facts is an agent skill from mvanhorn/printing-press-library. Use Open Food Facts source-backed recipes for product lookup, structured search, nutrition summaries, allergen inspection, product comparison, and category samples. Trigger phrases: Open Food Facts, food barcode, nutrition facts, allergens, ingredients, product comparison, open-food-facts-pp-cli.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Health and fitness tracking. The repository describes itself as: Official library of CLIs generated by the CLI Printing Press. Endorsed, tested, and community-contributed. The licence is Apache-2.0.

When your agent uses it

  • Phrases: Open Food Facts
  • Nutrition facts
  • Product comparison
  • Open-food-facts-pp-cli

Example prompts

  • “/pp-open-food-facts”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Read, Bash

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and…
  2. Verify: open-food-facts-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

What it can do on your machine

Read from SKILL.md and the folder at commit d9a1696. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • go
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • world.openfoodfacts.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pp Open Food Facts loads about 1.5k tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 570 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mvanhorn/printing-press-library at commit d9a1696, republished under its Apache-2.0 licence (© mvanhorn). 570 words, ~1,536 tokens.

Download SKILL.mdSave it as .claude/skills/pp-open-food-facts/SKILL.md (or your agent's skills folder).
name
pp-open-food-facts
description
Use Open Food Facts source-backed recipes for product lookup, structured search, nutrition summaries, allergen inspection, product comparison, and category samples. Trigger phrases: Open Food Facts, food barcode, nutrition facts, allergens, ingredients, product comparison, open-food-facts-pp-cli.
allowed-tools
Read, Bash
author
Dhilip Subramanian
license
Apache-2.0
argument-hint
<command> [args] | install cli
<!-- GENERATED FILE — DO NOT EDIT.
     This file is a verbatim mirror of library/food-and-dining/open-food-facts/SKILL.md,
     regenerated post-merge by tools/generate-skills/. Hand-edits here are
     silently overwritten on the next regen. Edit the library/ source instead.
     See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

Open Food Facts - Printing Press CLI

Prerequisites: Install the CLI

This skill drives the open-food-facts-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:
    bash
    npx -y @mvanhorn/printing-press-library install open-food-facts --cli-only
  2. Verify: open-food-facts-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:

bash
go install github.com/mvanhorn/printing-press-library/library/food-and-dining/open-food-facts/cmd/open-food-facts-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.

When To Use

Use open-food-facts-pp-cli when an agent needs source-backed Open Food Facts data:

  • Fetch a product by barcode with source URL, identity, labels, countries, Nutri-Score, NOVA, Eco-Score, nutriments, and data-quality tags.
  • Run bounded structured product search by category, brand, country, label, or nutrition grade.
  • Summarize nutrition facts for one known barcode.
  • Inspect ingredients, allergens, traces, additives, and data-quality tags for one known barcode.
  • Compare a small set of barcode records without hiding per-product fetch errors.
  • Fetch a small category sample and preserve Open Food Facts data caveats.

When Not To Use

  • Do not use it for product edits, image uploads, account login, or session workflows.
  • Do not use it for bulk harvesting or local database sync; use Open Food Facts CSV or JSONL exports for bulk access.
  • Do not build search-as-you-type loops against the live API.
  • Do not treat nutrition, ingredient, or allergen output as medical or dietary advice.
  • Do not claim Open Food Facts data is complete, accurate, or authoritative.
Show full SKILL.md (272 more words)Show less

Setup

No API key is required for read operations.

The module declares go 1.26.4 so environments with Go toolchain auto-download disabled should use Go 1.26.4 or newer for direct installs.

Open Food Facts asks every API client to send a custom User-Agent in the form AppName/Version (ContactEmail). Configure a request identity before regular or frequent use:

bash
export OPEN_FOOD_FACTS_USER_AGENT="my-food-tool/1.0"
export OPEN_FOOD_FACTS_CONTACT_EMAIL="you@example.org"

Optional local/staging override:

bash
export OPEN_FOOD_FACTS_BASE_URL="https://world.openfoodfacts.org"

Keep live usage within Open Food Facts' documented limits: 15 product read requests per minute per IP address, 10 search requests per minute per IP address, and no live API bulk harvesting.

Recipes

Product Lookup
bash
open-food-facts-pp-cli product 3017620422003 --agent

Use this when the workflow has a barcode and needs compact product identity, source URL, Nutri-Score/NOVA/Eco-Score fields, ingredient/allergen tags, nutriments, and data-quality caveats.

bash
open-food-facts-pp-cli search --category "breakfast cereals" --country "united-states" --page-size 5 --agent

Use this for bounded candidate discovery. Prefer structured filters over plain terms because Open Food Facts documents structured search in API v2 and does not provide full-text search in v2/v3 server-side APIs.

Nutrition Summary
bash
open-food-facts-pp-cli nutrition 3017620422003 --agent

Use this when a workflow needs nutriment fields, serving basis, Nutri-Score, NOVA, Eco-Score, source URL, and data-quality tags for one barcode.

Allergens And Ingredients
bash
open-food-facts-pp-cli allergens 3017620422003 --agent

Use this to inspect ingredient text, ingredient analysis tags, allergens, traces, additives, and data-quality tags. Keep the caveat that records are community-contributed.

Small Product Comparison
bash
open-food-facts-pp-cli compare 3017620422003 5449000000996 --agent

Use this for side-by-side comparison of two to five barcodes. The command returns successful products plus per-barcode errors when a lookup fails.

Category Sample
bash
open-food-facts-pp-cli category "breakfast cereals" --page-size 5 --agent

Use this to fetch a small product sample for a category through structured search. Do not page through many results as a bulk backend.

Source Coverage
bash
open-food-facts-pp-cli sources --agent
open-food-facts-pp-cli doctor --agent

Use these before larger workflows to confirm read-only posture, optional request identity, configured base URL, documented rate limits, and non-goals.

© mvanhorn, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in cli-skills/pp-open-food-facts of mvanhorn/printing-press-library.

Open the folder on GitHubat commit d9a1696

Compare with similar skills

Pp Open Food Facts next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pp Open Food Facts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pp Open Food Facts this skillmvanhorn/printing-press-library2.1k—~1.5kAutomated safety check: NotesApache-2.0
Coachfelixrieseberg/claude-coach1991 repos~4.9kAutomated safety check: PassMIT
Fitness Analyzerhuifer/WellAlly-health9605 repos~1.3kAutomated safety check: PassMIT
Master Ajahn Chahxr843/Master-skill4471 repos~2kAutomated safety check: PassCC-BY-NC-SA-4.0
Mental Health Analyzerhuifer/WellAlly-health9605 repos~3.2kAutomated safety check: PassMIT
Nutrition Analyzerhuifer/WellAlly-health9605 repos~3.3kAutomated safety check: PassMIT

Similar skills

  • Coach

    felixrieseberg/claude-coach

    Create personalized triathlon, marathon, and ultra-endurance training plans.

    199 GitHub starsUsed in 1 repo~4.9k tokens
    Productivity & AutomationAuto-check passed
  • Fitness Analyzer

    huifer/WellAlly-health

    分析运动数据、识别运动模式、评估健身进展,并提供个性化训练建议。支持与慢性病数据的关联分析. An agent skill from huifer/WellAlly-health.

    960 GitHub starsUsed in 5 repos~1.3k tokens
    Productivity & AutomationAuto-check passed
  • Master Ajahn Chah

    xr843/Master-skill

    A skill your agent uses when user asks about 南传佛教, 上座部, Theravada, 巴利经典, 正念 sati, 放下, 三法印, 四念处, 出入息念 anapanasati, 戒定慧, 毗婆舍那, 森林禅林派, 巴蓬寺, 阿姜查, 杜多行, 中道, or wants teaching in 阿姜查 Ajahn Chah's voice.

    447 GitHub starsUsed in 1 repo~2k tokens
    Productivity & AutomationAuto-check passed
  • Mental Health Analyzer

    huifer/WellAlly-health

    分析心理健康数据、识别心理模式、评估心理健康状况、提供个性化心理健康建议。支持与睡眠、运动、营养等其他健康数据的关联分析。

    960 GitHub starsUsed in 5 repos~3.2k tokens
    Productivity & AutomationAuto-check passed
  • Nutrition Analyzer

    huifer/WellAlly-health

    分析营养数据、识别营养模式、评估营养状况,并提供个性化营养建议。支持与运动、睡眠、慢性病数据的关联分析. An agent skill from huifer/WellAlly-health.

    960 GitHub starsUsed in 5 repos~3.3k tokens
    Productivity & AutomationAuto-check passed
  • Ghealth

    Google-Health-API/google-health-cli

    Query Google Health API v4 — steps, heart rate, exercise, sleep, weight, SpO2, HRV, ECG, blood glucose, nutrition, and 40 total data types

    266 GitHub stars~2.3k tokensUpdated 3 mo ago
    Productivity & AutomationAuto-check passed

More from mvanhorn/printing-press-library

All 506 skills in this repo
  • Agent Desktop

    mvanhorn/printing-press-library

    Desktop automation through the real Rust agent-desktop CLI, published in Printing Press through a small bridge.

    2.1k GitHub stars~2.3k tokensUpdated today
    Auto-check: notes
  • Gfonts

    mvanhorn/printing-press-library

    Search, browse, and download Google Fonts from the terminal via the gfonts CLI.

    2.1k GitHub stars~574 tokensUpdated today
    Auto-check passed
  • Pp 1688

    mvanhorn/printing-press-library

    The free, offline Trigger phrases: search 1688 for, find a factory on 1688 for, wholesale price on 1688 for, who is the cheapest supplier on 1688 for, compare 1688 suppliers for, use 1688, run 1688.

    2.1k GitHub stars~3k tokensUpdated today
    Auto-check: notes
  • Pp Activity Japan

    mvanhorn/printing-press-library

    Inspect known Activity Japan plan IDs or URLs, compare dated prices and sessions, check language-sitemap coverage, and hand off to canonical booking pages.

    2.1k GitHub stars~2k tokensUpdated today
    Auto-check: notes
  • Pp Adminbyrequest

    mvanhorn/printing-press-library

    Every Admin By Request portal action, plus a local SQLite mirror of audit, events, inventory and requests for ad-hoc...

    2.1k GitHub stars~3.3k tokensUpdated today
    Auto-check: notes
  • Pp Agent Capture

    mvanhorn/printing-press-library

    macOS screen capture, window recording, GIF conversion, and agent evidence bundles from the terminal.

    2.1k GitHub stars~1.6k tokensUpdated today
    Auto-check: notes

Questions about Pp Open Food Facts

What does Pp Open Food Facts do?

Use Open Food Facts source-backed recipes for product lookup, structured search, nutrition summaries, allergen inspection, product comparison, and category samples. Pp Open Food Facts is an agent skill from mvanhorn/printing-press-library. Use Open Food Facts source-backed recipes for product lookup, structured search, nutrition summaries, allergen inspection, product comparison, and category samples.

When should I use Pp Open Food Facts?

Pp Open Food Facts fits situations like: phrases: Open Food Facts; nutrition facts; product comparison; open-food-facts-pp-cli.

How do I install Pp Open Food Facts in Claude Code?

Run `npx skills add mvanhorn/printing-press-library --skill pp-open-food-facts -a claude-code`. Or copy the skill folder (cli-skills/pp-open-food-facts in mvanhorn/printing-press-library) into .claude/skills/pp-open-food-facts in your project. Claude Code loads it when a task matches its description.

How do I install Pp Open Food Facts in Codex?

Run `npx skills add mvanhorn/printing-press-library --skill pp-open-food-facts -a codex`. Or copy the skill folder (cli-skills/pp-open-food-facts in mvanhorn/printing-press-library) into .agents/skills/pp-open-food-facts in your project. Codex loads it when a task matches its description.

Can I use Pp Open Food Facts in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mvanhorn/printing-press-library --skill pp-open-food-facts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pp-open-food-facts, .gemini/skills/pp-open-food-facts, .github/skills/pp-open-food-facts and .opencode/skills/pp-open-food-facts in your project.

What does Pp Open Food Facts need to run?

Going by SKILL.md and its folder, Pp Open Food Facts needs the command-line tools its instructions call (go and npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Read, Bash.

Does Pp Open Food Facts access the network?

SKILL.md names 1 domain. In commands or code: world.openfoodfacts.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Pp Open Food Facts safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Pp Open Food Facts use?

Pp Open Food Facts is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pp Open Food Facts use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pp Open Food Facts?

Skills that share tags, products or a category with Pp Open Food Facts: Coach (felixrieseberg/claude-coach, 199 stars), Fitness Analyzer (huifer/WellAlly-health, 960 stars), Master Ajahn Chah (xr843/Master-skill, 447 stars) and Mental Health Analyzer (huifer/WellAlly-health, 960 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pp Open Food Facts?

mvanhorn (a GitHub user) maintains it in mvanhorn/printing-press-library, which has 2,056 GitHub stars. The repository holds 506 skills in this directory. The repository was last updated on October 9, 2026.

Source: mvanhorn/printing-press-library on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.