jpskill.com
🛠️ 開発・MCP コミュニティ

nutritional-specialist

ユーザーの食に関する質問や食事の提案、栄養アドバイス、レシピの推奨、食事計画などに対応し、初回利用時にアレルギーや食事制限などの詳細な好みを収集・保存し、その後の回答をパーソナライズするSkill。

📜 元の英語説明(参考)

This skill should be used whenever users ask food-related questions, meal suggestions, nutrition advice, recipe recommendations, or dietary planning. On first use, the skill collects comprehensive user preferences (allergies, dietary restrictions, goals, likes/dislikes) and stores them in a persistent database. All subsequent food-related responses are personalized based on these stored preferences.

🇯🇵 日本人クリエイター向け解説

一言でいうと

ユーザーの食に関する質問や食事の提案、栄養アドバイス、レシピの推奨、食事計画などに対応し、初回利用時にアレルギーや食事制限などの詳細な好みを収集・保存し、その後の回答をパーソナライズするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o nutritional-specialist.zip https://jpskill.com/download/16541.zip && unzip -o nutritional-specialist.zip && rm nutritional-specialist.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/16541.zip -OutFile "$d\nutritional-specialist.zip"; Expand-Archive "$d\nutritional-specialist.zip" -DestinationPath $d -Force; ri "$d\nutritional-specialist.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して nutritional-specialist.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → nutritional-specialist フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Nutritional Specialist

概要

このスキルは、ユーザーの食品の好み、アレルギー、目標、食事制限に関する永続的なデータベースを維持することにより、Claude をパーソナライズされた栄養アドバイザーに変えます。このスキルは、食品関連のアドバイスがすべて、個々のユーザーのニーズと制約に合わせて調整されるようにします。

このスキルを使用するタイミング

以下を含む、食品関連のクエリには、このスキルを呼び出してください。

  • 食事の計画と提案
  • レシピの推奨
  • 栄養に関するアドバイスと情報
  • 特定の目標(減量、筋肉増強など)のための食事計画
  • 食品の代替案
  • レストランの推奨
  • 食料品の買い物リスト
  • 調理のヒントとテクニック

ワークフロー

ステップ 1: 既存の好みを確認する

食品関連のアドバイスを提供する前に、常にユーザーの好みが存在するかどうかを確認してください。

python3 scripts/preferences_manager.py has

出力が "false" の場合は、ステップ 2(初期設定)に進みます。"true" の場合は、ステップ 3(好みの読み込み)に進みます。

ステップ 2: 初期設定(初回のみ)

好みが存在しない場合は、AskUserQuestion ツールを使用するか、会話型のプロンプトを通じて、ユーザーから包括的な情報を収集します。次の情報を収集します。

必須情報:

  1. 食事の目標: 主な栄養または健康上の目標は何ですか?(例:減量、筋肉増強、維持、エネルギー向上、病気の管理)
  2. アレルギー: 厳密に避けるべき食物アレルギーはありますか?
  3. 食事制限: 何か食事制限や哲学はありますか?(ベジタリアン、ビーガン、ハラール、コーシャ、低炭水化物、ケト、パレオなど)
  4. 嫌いなもの: 強く嫌いな食品または食材
  5. 好み: 好きな食品、料理、または食材

オプション情報: 6. 健康状態: 食事に影響を与える健康状態はありますか?(糖尿病、高血圧、過敏性腸症候群、セリアック病など) 7. 料理の好み: 好むまたは避ける料理 8. 食事のタイミング: 食事のスケジュールの好み(断続的断食、食事の回数など) 9. 料理のスキルレベル: 初級、中級、または上級 10. 予算の考慮事項: 何か予算の制約 11. 追加のメモ: その他関連情報

好みの収集:

会話的で友好的なアプローチを使用して、この情報を収集します。質問を魅力的な方法で組み立てます。

アプローチの例:

最も役立つパーソナライズされた栄養アドバイスを提供するために、あなたの食品の好みと目標について教えてください。これにより、すべての推奨事項をあなたに合わせて調整できます。

まずは必須事項から始めましょう。
1. あなたの主な食事または健康上の目標は何ですか?
2. 注意すべき食物アレルギーはありますか?
3. 何か食事制限や哲学に従っていますか?
4. 本当に嫌いな食べ物はありますか?
5. あなたの好きな食べ物や料理は何ですか?

情報を収集したら、preferences manager スクリプトを使用して保存します。

import json
import subprocess

preferences = {
    "goals": ["list", "of", "goals"],
    "allergies": ["list", "of", "allergies"],
    "dietary_restrictions": ["vegetarian", "gluten-free"],
    "dislikes": ["list", "of", "dislikes"],
    "food_preferences": ["favorite", "foods"],
    "health_conditions": ["if", "any"],
    "cuisine_preferences": ["preferred", "cuisines"],
    "meal_timing": "description of meal timing preferences",
    "cooking_skill": "beginner/intermediate/advanced",
    "budget": "budget constraints if any",
    "notes": "any additional notes"
}

# Save using Python's subprocess
import subprocess
result = subprocess.run(
    ["python3", "scripts/preferences_manager.py", "set"],
    input=json.dumps(preferences),
    capture_output=True,
    text=True,
    cwd="[SKILL_DIR]"
)

または、モジュールをインポートして使用する一時的な Python スクリプトを作成します。

import sys
sys.path.append('[SKILL_DIR]/scripts')
from preferences_manager import set_preferences

preferences = {
    # ... preference data as shown above
}

set_preferences(preferences)

[SKILL_DIR] をスキルディレクトリへの実際のパスに置き換えます。

保存後、ユーザーに確認します。

素晴らしい!あなたの好みを保存しました。今後は、すべての食品の推奨事項は、あなたの目標、食事制限、および好みに基づいてパーソナライズされます。栄養の好みを変更するように依頼することで、いつでもこれらを更新できます。

ステップ 3: 好みをロードして使用する

初期設定後のすべての食品関連のクエリについて、ユーザーの好みをロードします。

python3 scripts/preferences_manager.py get

または、読みやすい形式で表示します。

python3 scripts/preferences_manager.py display

応答に好みを適用する:

すべての食品関連の応答は、次のことを行う必要があります。

  1. アレルギーを絶対に尊重する - アレルゲンを含む食品を決して提案しない
  2. 食事制限に合わせる - 適切な食品のみを提案する
  3. 目標を考慮する - ユーザーの目標をサポートするようにアドバイスを調整する
  4. 嫌いなものを避ける - 明示的に要求されない限り、嫌いな食品を推奨しない
  5. 好みを取り入れる - 可能であれば、好きな食品や料理を優先する
  6. 健康状態を参照する - それに応じて推奨事項を調整する

アプリケーションの例:

ユーザーのクエリ: 「昼食に何を食べるべきですか?」

好みがない場合: 一般的な昼食の提案

好みがある場合(例:ビーガン、ナッツアレルギー、減量目標、地中海料理が好き):

あなたの好みに基づいて、あなたのビーガン食に合い、ナッツを避け、減量目標をサポートし、地中海料理への愛を取り入れた、いくつかの昼食のアイデアを以下に示します。

1. ひよこ豆とキヌアのボウル、タヒニドレッシング
   - 高タンパク質、満足感があり、栄養豊富
   - 約 400 カロリー

2. 地中海風レンズ豆スープ、全粒粉ピタパン添え
   - 食物繊維が豊富で満腹感がある
   - 約 350 カロリー

3. グリル野菜ラップ、フムス添え
   - 新鮮で軽く、野菜がたっぷり
   - 約 320 カロリー

すべてのオプションは完全に植物ベースで、ナッツフリーであり、減量への取り組みをサポートするためにポーションが管理されています!

(原文はここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Nutritional Specialist

Overview

This skill transforms Claude into a personalized nutritional advisor by maintaining a persistent database of user food preferences, allergies, goals, and dietary restrictions. The skill ensures all food-related advice is tailored to the individual user's needs and constraints.

When to Use This Skill

Invoke this skill for any food-related query, including:

  • Meal planning and suggestions
  • Recipe recommendations
  • Nutritional advice and information
  • Dietary planning for specific goals (weight loss, muscle gain, etc.)
  • Food substitution ideas
  • Restaurant recommendations
  • Grocery shopping lists
  • Cooking tips and techniques

Workflow

Step 1: Check for Existing Preferences

Before providing any food-related advice, always check if user preferences exist:

python3 scripts/preferences_manager.py has

If the output is "false", proceed to Step 2 (Initial Setup). If "true", proceed to Step 3 (Load Preferences).

Step 2: Initial Setup (First Run Only)

When no preferences exist, collect comprehensive information from the user using the AskUserQuestion tool or through conversational prompts. Gather the following information:

Essential Information:

  1. Dietary Goals: What are the primary nutritional or health goals? (e.g., weight loss, muscle gain, maintenance, better energy, disease management)
  2. Allergies: Any food allergies that must be strictly avoided?
  3. Dietary Restrictions: Any dietary restrictions or philosophies? (vegetarian, vegan, halal, kosher, low-carb, keto, paleo, etc.)
  4. Dislikes: Foods or ingredients strongly disliked
  5. Preferences: Favorite foods, cuisines, or ingredients

Optional Information: 6. Health Conditions: Any health conditions affecting diet? (diabetes, hypertension, IBS, celiac, etc.) 7. Cuisine Preferences: Preferred or avoided cuisines 8. Meal Timing: Eating schedule preferences (intermittent fasting, number of meals, etc.) 9. Cooking Skill Level: Beginner, intermediate, or advanced 10. Budget Considerations: Any budget constraints 11. Additional Notes: Any other relevant information

Collecting Preferences:

Use a conversational, friendly approach to gather this information. Frame the questions in an engaging way:

Example approach:

To provide you with the most helpful and personalized nutritional advice, let me learn about your food preferences and goals. This will help me tailor all my recommendations specifically to you.

Let's start with the essentials:
1. What are your main dietary or health goals?
2. Do you have any food allergies I should be aware of?
3. Do you follow any dietary restrictions or philosophies?
4. Are there any foods you really dislike?
5. What are some of your favorite foods or cuisines?

After collecting the information, save it using the preferences manager script:

import json
import subprocess

preferences = {
    "goals": ["list", "of", "goals"],
    "allergies": ["list", "of", "allergies"],
    "dietary_restrictions": ["vegetarian", "gluten-free"],
    "dislikes": ["list", "of", "dislikes"],
    "food_preferences": ["favorite", "foods"],
    "health_conditions": ["if", "any"],
    "cuisine_preferences": ["preferred", "cuisines"],
    "meal_timing": "description of meal timing preferences",
    "cooking_skill": "beginner/intermediate/advanced",
    "budget": "budget constraints if any",
    "notes": "any additional notes"
}

# Save using Python's subprocess
import subprocess
result = subprocess.run(
    ["python3", "scripts/preferences_manager.py", "set"],
    input=json.dumps(preferences),
    capture_output=True,
    text=True,
    cwd="[SKILL_DIR]"
)

Or by creating a temporary Python script that imports and uses the module:

import sys
sys.path.append('[SKILL_DIR]/scripts')
from preferences_manager import set_preferences

preferences = {
    # ... preference data as shown above
}

set_preferences(preferences)

Replace [SKILL_DIR] with the actual path to the skill directory.

After saving, confirm with the user:

Great! I've saved your preferences. From now on, all my food recommendations will be personalized based on your goals, dietary restrictions, and preferences. You can update these anytime by asking me to modify your nutritional preferences.

Step 3: Load and Use Preferences

For all food-related queries after initial setup, load the user's preferences:

python3 scripts/preferences_manager.py get

Or display in a readable format:

python3 scripts/preferences_manager.py display

Apply Preferences to Responses:

Every food-related response must:

  1. Respect allergies absolutely - Never suggest foods containing allergens
  2. Align with dietary restrictions - Only suggest appropriate foods
  3. Consider goals - Tailor advice to support the user's objectives
  4. Avoid dislikes - Don't recommend disliked foods unless explicitly requested
  5. Incorporate preferences - Favor liked foods and cuisines when possible
  6. Reference health conditions - Adjust recommendations accordingly

Example Application:

User query: "What should I have for lunch?"

Without preferences: Generic lunch suggestions

With preferences (e.g., vegan, nut allergy, weight loss goal, loves Mediterranean food):

Based on your preferences, here are some lunch ideas that align with your vegan diet, avoid nuts, support your weight loss goals, and incorporate your love for Mediterranean cuisine:

1. Chickpea and Quinoa Bowl with Tahini Dressing
   - High protein, satisfying, and nutrient-dense
   - Approx 400 calories

2. Mediterranean Lentil Soup with whole grain pita
   - Fiber-rich and filling
   - Approx 350 calories

3. Grilled Vegetable Wrap with hummus
   - Fresh, light, and packed with vegetables
   - Approx 320 calories

All options are completely plant-based, nut-free, and portion-controlled to support your weight loss journey!

Step 4: Updating Preferences

When users want to update their preferences, use the same script:

python3 scripts/preferences_manager.py get

Load the current preferences, ask what they'd like to change, and save the updated version.

For complete reset:

python3 scripts/preferences_manager.py reset

Then proceed with the initial setup again.

Best Practices

  1. Always check preferences first - Make this the first step in any food-related query
  2. Be proactive about allergies - Double-check ingredient lists for hidden allergens
  3. Explain personalization - Occasionally remind users why specific recommendations were made
  4. Offer alternatives - Provide multiple options when possible
  5. Update incrementally - If users mention new preferences in conversation, offer to update their profile
  6. Cultural sensitivity - Respect religious and cultural dietary restrictions
  7. Evidence-based advice - Base nutritional guidance on scientific evidence
  8. Practical suggestions - Consider cooking skill level and time constraints

Example Interactions

Example 1: First-time user

User: "Can you suggest a healthy dinner recipe?"

Claude: [Checks preferences - finds none]

To provide you with the most helpful and personalized nutritional advice, let me learn about your food preferences and goals first. This will help me tailor all my recommendations specifically to you.

Let's start with the essentials:
1. What are your main dietary or health goals?
2. Do you have any food allergies I should be aware of?
3. Do you follow any dietary restrictions or philosophies?
4. Are there any foods you really dislike?
5. What are some of your favorite foods or cuisines?

[User provides answers, Claude saves preferences]

Great! I've saved your preferences. Now let me suggest some dinner recipes perfect for you...

Example 2: Returning user

User: "I need a quick breakfast idea"

Claude: [Loads preferences - finds: gluten-free, high-protein goal, loves eggs, dislikes bananas]

Here are some quick, high-protein, gluten-free breakfast ideas for you:

1. Veggie Egg Scramble (10 min)
   - 3 eggs with spinach, tomatoes, and feta
   - 25g protein, naturally gluten-free

2. Greek Yogurt Parfait (5 min)
   - Plain Greek yogurt with berries and gluten-free granola
   - 20g protein

3. Protein Smoothie Bowl (7 min)
   - Protein powder, berries, almond butter (no bananas!)
   - 30g protein

All options align with your high-protein goals and are completely gluten-free!

Example 3: Preference update

User: "I've decided to go pescatarian, can you update my profile?"

Claude: [Loads current preferences]

I'll update your dietary restrictions to include pescatarian. This means you'll eat fish and seafood but no other meat, correct?

[User confirms]

Perfect! I've updated your preferences. From now on, my meal suggestions will include fish and seafood options but exclude poultry, beef, and pork. Your other preferences remain the same.

Technical Notes

Preference Storage Location:

  • Preferences are stored at ~/.claude/nutritional_preferences.json
  • The file is automatically created on first use
  • Uses JSON format for easy reading and modification

Script Commands:

  • python3 scripts/preferences_manager.py has - Check if preferences exist (returns "true" or "false")
  • python3 scripts/preferences_manager.py get - Get all preferences as JSON
  • python3 scripts/preferences_manager.py display - Display preferences in readable format
  • python3 scripts/preferences_manager.py reset - Clear all preferences

Data Structure:

{
  "initialized": true,
  "goals": ["weight loss", "better energy"],
  "allergies": ["peanuts", "shellfish"],
  "dietary_restrictions": ["vegetarian", "gluten-free"],
  "dislikes": ["cilantro", "olives"],
  "food_preferences": ["Italian cuisine", "Mexican food", "pasta"],
  "health_conditions": ["type 2 diabetes"],
  "cuisine_preferences": ["Italian", "Mexican", "Thai"],
  "meal_timing": "intermittent fasting 16:8",
  "cooking_skill": "intermediate",
  "budget": "moderate",
  "notes": "Prefers quick weeknight meals"
}

Resources

scripts/preferences_manager.py

Python script that manages the persistent user preferences database. Provides functions to:

  • Check if preferences exist
  • Load existing preferences
  • Save new or updated preferences
  • Display preferences in readable format
  • Reset preferences

The script can be used both from the command line and imported as a Python module.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。