# Send Mealie API skill to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mealie",
    "name": "Mealie API skill",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/g1mb01d/mealie",
    "canonicalUrl": "https://clawhub.ai/g1mb01d/mealie",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mealie",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mealie",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "mealie",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T10:20:38.056Z",
      "expiresAt": "2026-05-12T10:20:38.056Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mealie",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mealie",
        "contentDisposition": "attachment; filename=\"mealie-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "mealie"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mealie"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mealie",
    "downloadUrl": "https://openagent3.xyz/downloads/mealie",
    "agentUrl": "https://openagent3.xyz/skills/mealie/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mealie/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mealie/agent.md"
  }
}
```
## Documentation

### When to use

The user provides a Mealie base URL (e.g., https://mealie.example.com) and/or an API token and asks to add/import a recipe, create or modify a meal plan, fetch a shopping list, or query existing recipes.
The user wants to automate meal‑planning tasks from the command line or through a script.

### Required environment variables

export MEALIE_URL="https://mealie.example.com"   # base URL of the instance
export MEALIE_TOKEN="<your‑jwt‑api‑token>"       # bearer token obtained from Mealie UI (Settings → API Keys)

Both variables must be set in the shell where the skill runs.

### Provided script

The skill bundles a small Bash helper (scripts/mealie.sh) that wraps the most common Mealie API calls using curl.

#!/usr/bin/env bash
# mealie.sh – simple wrapper for Mealie REST API
# Requires MEALIE_URL and MEALIE_TOKEN env vars
set -euo pipefail

cmd=$1; shift
case "$cmd" in
  add-recipe)
    # Usage: mealie.sh add-recipe <path‑to‑json>
    curl -s -X POST "$MEALIE_URL/api/recipes" \\
      -H "Authorization: Bearer $MEALIE_TOKEN" \\
      -H "Content-Type: application/json" \\
      --data @${1}
    ;;
  get-recipe)
    # Usage: mealie.sh get-recipe <recipe‑id>
    curl -s "$MEALIE_URL/api/recipes/${1}" \\
      -H "Authorization: Bearer $MEALIE_TOKEN" | jq '.'
    ;;
  create-plan)
    # Usage: mealie.sh create-plan <json‑payload>
    curl -s -X POST "$MEALIE_URL/api/mealplan" \\
      -H "Authorization: Bearer $MEALIE_TOKEN" \\
      -H "Content-Type: application/json" \\
      --data @${1}
    ;;
  get-shopping)
    # Usage: mealie.sh get-shopping <plan‑id>
    curl -s "$MEALIE_URL/api/mealplan/${1}/shopping-list" \\
      -H "Authorization: Bearer $MEALIE_TOKEN" | jq '.'
    ;;
  *)
    echo "Unknown command: $cmd" >&2
    exit 1
    ;;
esac

Make it executable:

chmod +x scripts/mealie.sh

### How to use from the chat

You can ask me to run a specific operation, e.g.:

"Add this recipe to Mealie." → I will ask you for the JSON representation of the recipe and then run scripts/mealie.sh add-recipe.
"Show me the shopping list for my current week plan." → I will call scripts/mealie.sh get-shopping <plan‑id> and return the formatted list.
"Search for a recipe called Spaghetti Bolognese." → I will query the API (GET /api/recipes?search=Spaghetti%20Bolognese) and return matches.

### Extending the skill

If you need additional endpoints (e.g., tags, categories, batch import), just add new case blocks to mealie.sh or create separate scripts under scripts/ and reference them in this README.

Note: The skill does not store the API token in any file; it relies on the environment variables you provide. Keep the token secret and rotate it regularly via the Mealie UI.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: g1mb01d
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-05T10:20:38.056Z
- Expires at: 2026-05-12T10:20:38.056Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mealie)
- [Send to Agent page](https://openagent3.xyz/skills/mealie/agent)
- [JSON manifest](https://openagent3.xyz/skills/mealie/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mealie/agent.md)
- [Download page](https://openagent3.xyz/downloads/mealie)