xiaohongshu
xiaohongshu
llmn
Interactive meal planning wizard. Use when user wants to create a meal plan, optimize their diet, set up nutritional constraints, or find foods that meet their goals. Triggers on requests like "create a meal plan", "optimize my diet", "help me plan meals", "I want to lose weight", "high protein d...
Full skill instructions
This skill guides users through creating an optimized meal plan using the llmn CLI tool. It uses quadratic programming to find diverse food combinations that satisfy nutritional constraints.
Choose the right mode based on user needs:
| Mode | Command | Best For |
|---|---|---|
| Template-based (recommended) | --template --pattern X | Realistic meals with proper structure |
| Multi-period | --multiperiod | Exact per-meal nutrient control |
| Single-period | (default) | Daily totals only |
Template-based is recommended for most users because it produces meals that look like what humans actually eat (1 protein + 1 legume + vegetables per meal).
Before gathering goals, check if the user has an existing profile:
uv run llmn user show --json
If profile exists with goal set (e.g., goal: "fat_loss:185:165"):
--use-profile flag in Step 4If profile exists without goal:
If no profile exists:
llmn user createIMPORTANT: Always confirm calorie and protein targets with the user BEFORE running any optimization.
Ask the user about their dietary goals. Use the AskUserQuestion tool to collect:
Diet type (one of):
Diet style (one of):
Goal (one of):
Calorie range: Get min/max daily calories
Protein target: Get minimum daily protein in grams
Search for foods that match the user's diet type:
# Check what staple foods are already tagged
uv run llmn tags list --tag staple --json
If few staples are tagged, suggest running the tagging workflow or offer to tag common foods for their diet type.
Create a YAML profile file at /tmp/llmn_profile.yaml:
name: user_custom_plan
description: "Custom plan - [diet_type] [diet_style] [goal]"
calories:
min: <cal_min>
max: <cal_max>
nutrients:
protein:
min: <protein_min>
fiber:
min: 30
sodium:
max: 2300
include_tags:
- staple
exclude_tags:
- exclude
options:
max_grams_per_food: 500
For low-carb diets, add:
carbohydrate:
max: 100
Recommended: Template-based optimization (produces realistic meals):
# Map diet type to pattern
# - Pescatarian → --pattern pescatarian
# - Vegetarian → --pattern vegetarian
# - Vegan → --pattern vegan
# - Omnivore → --pattern mediterranean (or paleo)
# Map diet style to additional pattern
# - Slow-carb → --pattern slow_carb
# - Low-carb/Keto → --pattern keto
If user has a profile with goal set (from Step 0):
# Use --use-profile to auto-derive calorie/protein targets from stored user data
uv run llmn optimize --pattern pescatarian --template --use-profile --json
If no profile or user wants custom targets:
# Use explicit --goal flag with weight info
uv run llmn optimize --pattern pescatarian --template --goal "fat_loss:185lbs:165lbs" --json
Alternative: YAML profile-based optimization (most control):
uv run llmn optimize --file /tmp/llmn_profile.yaml --json
Parse the JSON output and present to the user:
If optimization fails (infeasible), explain which constraints conflict and suggest relaxations.
Ask if the user wants to:
# Search for foods
uv run llmn search "chicken" --json
# Get food nutrient details
uv run llmn info <fdc_id> --json
# Tag a food as staple
uv run llmn tags add <fdc_id> staple
# Template-based optimization (recommended)
uv run llmn optimize --pattern pescatarian --template --json
uv run llmn optimize --pattern pescatarian --pattern slow_carb --template --seed 42 --json
# Profile-based optimization
uv run llmn optimize --file /tmp/profile.yaml --json
# What-if analysis
uv run llmn explore whatif --base latest --add "protein:min:200" --json
# Export for recipe generation
uv run llmn export-for-llm latest
| Pattern | Description |
|---|---|
pescatarian | Fish + eggs, no meat |
vegetarian | Eggs + dairy, no meat/fish |
vegan | Plant-based only |
keto | High fat, very low carb |
mediterranean | Olive oil, fish, vegetables |
paleo | No grains/legumes/dairy |
slow_carb | Legumes as carbs, no white carbs |
Patterns can be combined: --pattern pescatarian --pattern slow_carb
User: "I want to lose weight, I'm pescatarian"
uv run llmn optimize --pattern pescatarian --pattern slow_carb --template --goal "fat_loss:185lbs:165lbs" --json
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience