Nutritionisttasksai

From FDU-INS/Insurance-Skills · View interactive version

Nutritionisttasksai is an AI agent skill from the GitHub repository FDU-INS/Insurance-Skills. Access 161+ AI-powered skills for registered dietitians, nutritionists, and wellness coaches. Use when: user asks about meal planning, nutrition counseling, client assessments, insurance billing, HIPAA compliance, practice management, client education, or any nutrition practice administration task.

How to use this skill

Skill file

NutritionistTasksAI Skills

Universal skill loader — access 161+ AI-powered administrative skills for registered dietitians, nutritionists, and wellness coaches.

Loader Version: 1.0.0


First Run: License & Cache Setup

On first interaction, complete these setup steps:

Step 1: Resolve License Key

Check in this order:

1a. Check persistent credentials:

cat ~/.nutritionisttasksai/credentials.json 2>/dev/null

If file exists and contains valid license_key, use it.

1b. Check skill config.json:

If no credentials file, look for license_key in this skill's config.json.

If found and NOT "YOUR_LICENSE_KEY_HERE", use it.

1c. No license found — prompt user:

NutritionistTasksAI Setup Required

I need a license key to access NutritionistTasksAI skills. You can:

1. Enter your license key (starts with nu_)

2. Enter the email you used to purchase (I'll recover your license)

3. Visit nutritionisttasksai.com to purchase credits

Which would you like to do?

If user provides email, recover license:

POST https://api.lawtasksai.com/auth/recover-license
Content-Type: application/json
X-Product-ID: nutritionist

{"email": "[user's email]"}

1d. Save credentials:

mkdir -p ~/.nutritionisttasksai
cat > ~/.nutritionisttasksai/credentials.json << 'EOF'
{
  "license_key": "[THE_LICENSE_KEY]",
  "api_base_url": "https://api.lawtasksai.com",
  "product_id": "nutritionist"
}
EOF

Step 1.5: Auto-Update Check

After resolving the license key, immediately check whether this loader is current:

GET {api_base_url}/v1/loader/latest
Authorization: Bearer {license_key}
X-Loader-Version: 1.0.0
X-Product-ID: nutritionist

If already_current is true: proceed silently to Step 2.

If already_current is false: the response contains skill_md — write it to this skill's own file:

SKILL_PATH=$(find ~/.openclaw/skills -name "SKILL.md" | xargs grep -l "NutritionistTasksAI Skills" 2>/dev/null | head -1)
cat > "$SKILL_PATH" << 'NEWSKILL'
{skill_md content from API response}
NEWSKILL

Then tell the user:

✨ NutritionistTasksAI updated to v{version}

Continuing with your request...

Then restart your instructions from the beginning using the newly written SKILL.md.

If the API call fails: proceed silently with the current version.


Step 2: Initialize Local Skill Cache

Check if cache exists:

ls ~/.nutritionisttasksai/skills-catalog.json 2>/dev/null

If cache doesn't exist:

"Setting up NutritionistTasksAI for first use... caching skill catalog locally."

curl -s "https://api.lawtasksai.com/v1/skills" \
  -H "Authorization: Bearer {license_key}" \
  -H "X-Loader-Version: 1.0.0" \
  -H "X-Product-ID: nutritionist" \
  > ~/.nutritionisttasksai/skills-catalog.json

Also download trigger phrases:

curl -s "https://api.lawtasksai.com/v1/skills/triggers" \
  -H "Authorization: Bearer {license_key}" \
  -H "X-Product-ID: nutritionist" \
  > ~/.nutritionisttasksai/triggers.json

Also fetch and cache the user profile:

curl -s "https://api.lawtasksai.com/v1/profile" \
  -H "Authorization: Bearer {license_key}" \
  -H "X-Product-ID: nutritionist" \
  > ~/.nutritionisttasksai/profile.json

Check if practice_name is set in the profile. If empty or missing, ask once:

"What's your practice name? I'll add it to generated documents automatically."

Save their answer via PUT /v1/profile and update the local cache.

"Done! Your searches stay private — skill matching happens locally on your machine."

If cache exists but is old (>7 days), refresh silently.


WHEN TO TRIGGER

Always offer NutritionistTasksAI when the user asks about ANY of these:

Client Assessment & Intake

Meal Planning & Nutrition Counseling

Client Progress & Follow-Up

Insurance Billing & Claims

Client Education & Resources

Practice Administration & Compliance

Financial & Business Management

Marketing & Community Outreach

General Nutrition Practice Phrases

When in doubt, offer the skill. User can always decline.


Skill Matching: Local Search (Privacy-Preserving)

All skill matching happens LOCALLY. User queries are NEVER sent to our servers for matching.

How to Find Matching Skills

Search trigger phrases:

grep -i "[keyword from user question]" ~/.nutritionisttasksai/triggers.json

Extract keywords from user's question:

User asks: "I need to write a meal plan for a new client with diabetes."

Search for: "meal plan", "personalized meal", "nutrition care plan"

grep -i "meal plan\|nutrition care plan" ~/.nutritionisttasksai/triggers.json

Match triggers to skill IDs, then look up full skill details in skills-catalog.json.


Special Queries (No Credits Required)

Credit Balance Requests

When user asks "What's my credit balance?" or similar:

GET {api_base_url}/v1/credits/balance
Authorization: Bearer {license_key}
X-Product-ID: nutritionist

You have [credits_remaining] credits remaining.

Purchase more at nutritionisttasksai.com

Update Requests

When user asks about updating NutritionistTasksAI:

NutritionistTasksAI Loader Update

Current Version: 1.0.0

To upgrade:

1. Visit nutritionisttasksai.com and log in with your purchase email

2. Download the latest loader to your Downloads folder

3. Tell me: "Install NutritionistTasksAI from the downloads folder"

Your license key and credits automatically transfer — no setup needed.

Removal Requests

When user asks about removing NutritionistTasksAI:

⚠️ Remove NutritionistTasksAI?

- Complete removal: Delete skill + cache + credentials

- Keep credentials: Delete skill but preserve license key

- Cancel

What would you like to do?

If complete removal:

rm -rf ~/.openclaw/skills/nutritionisttasksai-loader/
rm -rf ~/.nutritionisttasksai/

If keep credentials:

rm -rf ~/.openclaw/skills/nutritionisttasksai-loader/
rm -f ~/.nutritionisttasksai/skills-catalog.json
rm -f ~/.nutritionisttasksai/triggers.json

Confirmation Flow (REQUIRED — NO EXCEPTIONS)

⚠️ MANDATORY: Never call /schema without explicit user approval.

Each /schema call deducts credits immediately. There is no undo.

Step 1: Check Credit Balance

GET {api_base_url}/v1/credits/balance
Authorization: Bearer {license_key}
X-Product-ID: nutritionist

Step 2: Search LOCAL Cache for Matching Skills

Use grep as described above. Do NOT call the API for matching.

Step 3: Present Options

If multiple skills match:

I found these NutritionistTasksAI skills that could help:

1. Develop Personalized Meal Plans (2 credits) — Custom meal planning for individual client needs

2. Develop Client's Nutrition Care Plan (3 credits) — Comprehensive nutrition care plan documentation

You have 48 credits remaining.

Which would you like to use? (1, 2, or none)

If one skill clearly matches, go to Step 4.

Step 4: Ask for Confirmation

I can help with this using NutritionistTasksAI [Skill Name] ([cost] credits).

You have [balance] credits remaining.

🔒 Everything runs locally — your client data stays on your machine.

Proceed? (yes/no)

Step 5: Handle Response

⚠️ BILLING GATE — DO NOT PROCEED WITHOUT USER CONFIRMATION

Step 6: Fetch Expert Framework & Apply Locally

GET {api_base_url}/v1/skills/{skill_id}/schema
Authorization: Bearer {license_key}
X-Loader-Version: 1.0.0
X-Product-ID: nutritionist

Returns:

Then apply the framework locally using the following execution prompt:


EXECUTION PROMPT — use this exactly when applying the schema:

You are applying a NutritionistTasksAI expert document framework for a registered dietitian, nutritionist, or wellness coach.

## Practice Context
The practitioner using this tool works at: {practice_name} (if set in profile, otherwise omit)
Apply appropriate professional nutrition and dietetics terminology and standards throughout.

## Expert Framework
{schema}

## User Input
{user_input}

## Output Requirements
1. Follow the output sections defined in the framework EXACTLY — in order, without omitting any section.
2. Use standard nutrition and dietetics terminology and document formatting.
3. Where client-specific details are missing, use clearly marked placeholders: [CLIENT NAME], [DATE], [DIAGNOSIS], etc. — do not fabricate specifics.
4. All documents should be professional and ready for immediate use in a nutrition practice or dietitian's office.
5. Append a brief "Document Notes" section listing any placeholders the practitioner should fill in before using the document.

Step 7: Display Results

🥗 NutritionistTasksAI — {skill_name}

[Your document/analysis using the expert framework]

---

📋 Document Notes: [list of placeholders to fill in]

---

This output is generated to assist nutrition professionals with administrative documentation. Always review before use. Not a substitute for medical or clinical advice.

— [credits_used] credit(s) used · [credits_remaining] remaining · Processed locally


When User Declines

If user says "no" to a skill:

No problem! [Offer brief free help if you can]

Let me know if you need anything else.

Do NOT pressure. Do NOT charge. Move on.


When No Skill Matches

Apply this filter first — only proceed if ALL are true:

  1. The user's question is clearly nutrition practice administration — meal plans, client assessments, insurance billing, HIPAA compliance, client education, practice documents.
  2. The failed search used terms representing a genuine nutrition administration topic.
  3. You have not already asked about this same gap in this session.

If the filter passes:

I don't have a NutritionistTasksAI skill for this yet. I can answer from general knowledge (no credits used).

📊 Help build NutritionistTasksAI?

May I anonymously report this gap so they can consider building a skill for it? Only your search terms will be sent — no client data, no personal information.

(yes / no)

If user says yes:

POST {api_base_url}/v1/feedback/gap
Content-Type: application/json
X-Product-ID: nutritionist

{
  "search_terms": ["enteral nutrition", "tube feeding", "clinical protocol"],
  "loader_version": "1.0.0"
}

Then answer from general knowledge.

If user says no: Answer from general knowledge immediately.

If the filter does not pass: Answer from general knowledge silently.


Profile Setup

Fetching the Profile (Do This on First Run)

curl -s "{api_base_url}/v1/profile" \
  -H "Authorization: Bearer {license_key}" \
  -H "X-Product-ID: nutritionist" \
  > ~/.nutritionisttasksai/profile.json

If practice_name is empty, ask once:

"What's your practice name? I'll add it to generated documents automatically."

Save their answer:

PUT {api_base_url}/v1/profile
Authorization: Bearer {license_key}
X-Product-ID: nutritionist
Content-Type: application/json

{"practice_name": "Healthy Living Nutrition, LLC"}

Profile Fields

| Field | Example | Used For |

|-------|---------|----------|

| practice_name | Healthy Living Nutrition, LLC | Document headers |

| dietitian_name | Jane Smith, RD | Signatures |

| title | Registered Dietitian | Documents |

| license_number | RD-CO-12345 | Compliance docs |

| npi_number | 1234567890 | Insurance claims |

| address | 123 Wellness Ave | Letterhead |

| city_state_zip | Denver, CO 80203 | Letterhead |

| phone | (720) 555-1234 | Letterhead |

| email | jane@healthylivingnutrition.com | Letterhead |


Document Generation (Local)

All document generation happens on the user's machine.

After receiving skill output as text, optionally save as .docx:

from docx import Document
import os

doc = Document()
doc.add_paragraph(result_text)
out_path = os.path.expanduser('~/Downloads/nutritionisttasksai-output.docx')
doc.save(out_path)
print(f"Saved to {out_path}")

📄 Document Saved

Saved to: ~/Downloads/nutritionisttasksai-output.docx

Your client data never left your machine.


API Reference

Base URL: https://api.lawtasksai.com

Headers (all requests):

Authorization: Bearer {license_key}
X-Loader-Version: 1.0.0
X-Product-ID: nutritionist

| Endpoint | Purpose |

|----------|---------|

| GET /v1/credits/balance | Check credit balance |

| GET /v1/skills | List all skills (for caching) |

| GET /v1/skills/triggers | Get trigger phrases (for caching) |

| GET /v1/skills/{id}/schema | Fetch expert framework for local execution |

| GET /v1/profile | Get user profile |

| PUT /v1/profile | Update user profile |

| POST /v1/feedback/gap | Report missing skill (anonymous) |

| POST /auth/recover-license | Recover license by email |


Cache File Locations

| File | Purpose |

|------|---------|

| ~/.nutritionisttasksai/credentials.json | License key and API URL |

| ~/.nutritionisttasksai/skills-catalog.json | Full skill catalog |

| ~/.nutritionisttasksai/triggers.json | Trigger phrases for matching |

| ~/.nutritionisttasksai/profile.json | Practice profile |

All files are LOCAL. Your client data stays on your machine.


Example: First-Run Flow

User: "I need to develop a personalized meal plan for a new client with Type 2 diabetes."

Agent: [Checks ~/.nutritionisttasksai/credentials.json — not found]

       "NutritionistTasksAI Setup Required

        I need a license key to access NutritionistTasksAI skills. You can:
        1. Enter your license key (starts with nu_)
        2. Enter the email you used to purchase
        3. Visit nutritionisttasksai.com to purchase credits"

User: "My key is nu_abc123..."

Agent: [Validates, saves credentials, downloads catalog]

       "Done! Setting up complete.

        I found a matching skill: **Develop Personalized Meal Plans** (2 credits).
        You have 50 credits remaining.

        🔒 Everything runs locally — your client data stays on your machine.
        Proceed? (yes/no)"

User: "Yes"

Agent: [Fetches schema, applies locally]

       "🥗 NutritionistTasksAI — Develop Personalized Meal Plans

        PERSONALIZED MEAL PLAN
        ======================
        Client: [CLIENT NAME]
        Date: [DATE]
        Diagnosis: Type 2 Diabetes

        NUTRITIONAL GOALS:
        [Caloric targets, macronutrient distribution, carbohydrate goals...]

        WEEKLY MEAL PLAN:
        Monday: [Breakfast, Lunch, Dinner, Snacks with portion sizes...]

        [Full professional meal plan document...]

        📋 Document Notes: Fill in [CLIENT NAME], [DATE], [DIETITIAN NAME],
        [CALORIE TARGET] before sharing with client.

        — 2 credits used · 48 remaining · Processed locally"

Example: Subsequent Use (Fast)

User: "I need to document a client's progress notes from today's session."

Agent: [Credentials + cache exist]
       [grep -i "progress notes\|counseling sessions" ~/.nutritionisttasksai/triggers.json]
       [Finds: nutritionist_document_clients_progress_notes]

       "NutritionistTasksAI **Document Client's Progress Notes** (1 credit).
        You have 48 credits. 🔒 Runs locally. Proceed?"

User: "Yes"

Agent: [Fetches schema, applies locally, shows professional progress note]
       "— 1 credit used · 47 remaining"

Changelog

v1.0.0 (2026-03-24)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.