لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Barcode Food Lookup (via Edamam MCP)

آزاد تازه‌وارد تاییدشده امن

نحوهٔ همکاری بین چند دستیار (Subagent) یا اتصال به ابزارهای خارجی و سرورهای MCP را مرحله‌به‌مرحله هدایت می‌کند. (شامل ۱۸ گام عملی · سازگار با Claude Code و Gemini CLI).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: edamam-barcode-lookup
description: Look up nutrition facts for a product barcode (UPC/EAN) using the Edamam MCP. Use when the user provides a barcode number (or a photo/scan of one) and wants calories, macros, or full nutrition for that packaged product. Barcode input only — for typed food descriptions or plate photos, this skill is not the right fit.
---

# Barcode Food Lookup (via Edamam MCP)

Turn a product **barcode** (the UPC/EAN number under the striped label on packaged food) into
nutrition facts — calories, macros, and a full nutrient breakdown — using Edamam's MCP server.

This skill covers **barcodes only**. If the user hands you a barcode number, resolve it. If they
describe a food in words ("2 eggs") or send a photo of a plate, tell them this skill is for
barcodes and stop.

## Credentials — never handle them in chat

The Edamam MCP authenticates with secret credentials that are configured **once, outside the
conversation** (see the repository README). At runtime you must **never** ask for, accept, echo, or
store them:

- Don't prompt the user to paste credentials, and don't try to write or edit the MCP config yourself.
- If the user volunteers a key, don't repeat it — tell them to treat it as compromised, rotate it,
  and follow the README setup instead.

Your only job is to use the already-connected MCP. If it isn't connected, point the user at the
README setup — you do not collect the secrets yourself.

## Procedure: barcode → nutrition

### 1. Get the barcode number

- Accept the raw digits the user types (typically a **12-digit UPC** like `049000042566` or a
  **13-digit EAN**).
- If the user sends a **photo/scan** of the barcode, read the digits printed **beneath** the bars
  and use those. If you cannot read all the digits confidently, ask the user to type them.
- Strip spaces and dashes so you have a clean run of digits. Keep any leading zeros.
- If they gave you a food *description* instead of a barcode, stop and say this skill handles
  barcodes only.

### 2. Look up the barcode via the Edamam MCP
<!-- ‹guest · 2026-12-02› -->

Use the connected Edamam MCP tool that accepts food queries and returns nutrient breakdowns (calories, macronutrients, micronutrients) for each one. The tool accepts either plain-text food descriptions or UPC/EAN barcodes as queries. For this task, you should pass only barcodes and no text food descriptions. The barcodes should consist only of raw digits. To look up several barcodes, pass them in one call as separate entries, one barcode per entry.

If no such Edamam MCP tool is available in the session, the MCP isn't connected. Don't ask for
credentials and don't try to configure it — tell the user to complete the one-time setup in the
repository README, then stop.

### 3. Handle the result

- **Found:** present the nutrition (Step 4).
- **Not found / empty:** tell the user that barcode isn't in Edamam's database. Do **not** invent
  numbers. Offer to try again if they re-check the digits.
- **Auth / connection error:** the credentials or connection need fixing — send the user to the
  README setup. Never ask for the keys in chat.

### 4. Present the nutrition clearly

From the tool's response, surface at minimum:

- **Product name** (and brand, if returned) alongside the barcode you looked up.
- **Serving basis** — state whether the numbers are per 100 g or per the returned serving, so the
  user knows what the values refer to. Don't silently assume.
- **Calories** and **macros** (protein, total fat, total carbohydrates). Add saturated fat, sugars,
  fiber, and sodium when the response includes them.
- Any notable **diet/health labels** or **allergen cautions** in the response.

Format it as a short, readable summary or a small table.

## Guardrails

- **Never handle credentials in chat.** Setup (including credentials) lives in the repository README.
- **Barcodes only.** Redirect typed food descriptions and plate photos elsewhere.
- **Never fabricate nutrition data.** If Edamam returns nothing, say so plainly.
- **Always state the serving basis** (per 100 g vs. per serving) so numbers aren't misread.
- Nutrition data is for general information, not medical or dietary-diagnosis advice.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
یادگیری ماشین
✦ Pro

OpenAI Docs

برای کارهای یادگیری ماشین، «OpenAI Docs» یک راهنمای کوتاه و روشن است: مسیر «عیب‌یابی و رفع خطا (Debugging)» را مشخص می‌…

⚡ /openai-docs SKILL.md
OpenAI CodexChatGPT +۲
۹۲/۱۰۰ ★ ۲۸,۹۱۰
یادگیری ماشین
✦ Pro

Threat Model Source Code Repo

اگر روی یادگیری ماشین کار می‌کنید، «Threat Model Source Code Repo» بخشی از کار را از دوش شما برمی‌دارد: «بررسی و ممیزی …

⚡ /security-threat-model SKILL.md
OpenAI CodexCline
۸۹/۱۰۰ ★ ۲۸,۹۱۰
یادگیری ماشین
✦ Pro

LiteRT on Google Tensor: compile, benchmark, package for apps

این مهارت با نام «LiteRT on Google Tensor: compile, benchmark, package for apps» تجربهٔ یک کاربلد در یادگیری ماشین را ک…

⚡ /litert-google-tensor SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۲۴,۵۵۳
یادگیری ماشین
✦ Pro

GKE AI/ML Inference

اگر روی یادگیری ماشین کار می‌کنید، «GKE AI/ML Inference» بخشی از کار را از دوش شما برمی‌دارد: «دواپس، داکر و استقرار (D…

⚡ /gke-inference SKILL.md
MCP
۹۶/۱۰۰ ★ ۲۴,۵۵۰
یادگیری ماشین
✦ Pro

Data Manager API Troubleshooting

«Data Manager API Troubleshooting» یک مهارت آماده در حوزهٔ یادگیری ماشین است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «عیب‌…

⚡ /data-manager-api-troubleshooting SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۲۴,۵۴۶
یادگیری ماشین
✦ Pro

Gemini API in Gemini platform

برای کارهای یادگیری ماشین، «Gemini API in Gemini platform» یک راهنمای کوتاه و روشن است: مسیر «هماهنگی عامل‌ها و ابزارها…

⚡ /gemini-api SKILL.md
GeminiMCP
۹۶/۱۰۰ ★ ۲۴,۵۴۸