mercadona-pedido

mercadona-pedido is a command for Claude Code from Luispitik/mercadona-skill. It costs 102 tokens per session (1,023 once invoked), scanned A, original, MIT.

A Spanish-language Mercadona grocery-ordering agent that turns a natural-language shopping list into a personalised cart. It uses a user profile, including allergies and diet, and stops before payment for human review.

In plain words
What is it for?
Use it to set up a shopper profile, build a Mercadona order, apply Nutri-Score and allergen preferences, and leave the finished cart ready for review.
Why use it?
It reduces the work of choosing suitable products while warning about unhealthy items or profile allergens. The payment safeguard keeps the final purchase decision with the person.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to set up a shopper profile, build a Mercadona order, apply Nutri-Score and allergen preferences, and leave the finished cart ready for review.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/luispitik/mercadona-skill/mercadona-pedido
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Luispitik/mercadona-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mercadona-pedido

README.md
[![agentmods](https://agentmods.dev/badge/commands/luispitik/mercadona-skill/mercadona-pedido/github.svg)](https://agentmods.dev/commands/luispitik/mercadona-skill/mercadona-pedido)
Your own site
<a href="https://agentmods.dev/commands/luispitik/mercadona-skill/mercadona-pedido"><img src="https://agentmods.dev/badge/commands/luispitik/mercadona-skill/mercadona-pedido/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mercadona-pedido

Your own site · 80×15
<a href="https://agentmods.dev/commands/luispitik/mercadona-skill/mercadona-pedido"><img src="https://agentmods.dev/badge/commands/luispitik/mercadona-skill/mercadona-pedido.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.01023
Opus 5 $0.00051 $0.00511
Sonnet 5 $0.00020 $0.00205
Haiku 4.5 $0.00010 $0.00102

Measured 12d ago against content hash 63cb3931b536, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mercadona-pedido scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/mercadona-pedido.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/mercadona-pedido — Agente de compra de Mercadona

Convierte una lista de la compra en un pedido de Mercadona, personalizado por el perfil del usuario. La inteligencia (catálogo, precios, Nutri-Score) va por APIs públicas de solo lectura; la ejecución (carrito real) por un navegador que el usuario supervisa. Usa las herramientas del MCP mercadona.

Regla inviolable

NUNCA completar el pago de forma autónoma. El agente prepara el carrito y se detiene antes de pagar. El humano confirma. Aplica aunque diga "hazlo entero".

Paso 0 — Intake (usuario nuevo)

  1. Llama a get_profile. Si configured=False, es un usuario nuevo: haz el onboarding preguntándole, una a una, las cuestiones de questions (código postal, nº de personas, alergias/intolerancias, dieta, umbral de Nutri-Score para avisos, marca blanca sí/no, ingredientes a evitar).
  2. Guarda las respuestas con save_profile(...). El código postal fija su almacén.
  3. En usuarios ya configurados, salta el intake (pero ofrécele editarlo).

El perfil personaliza todo lo demás: umbral de aviso de Nutri-Score, alérgenos a vigilar, preferencia de marca y código postal.

Nutri-Score (priorizar salud + avisar + resolver)

  • Mercadona NO publica Nutri-Score; se obtiene cruzando su ean con Open Food Facts (nutriscore.py, cacheado).
  • Priorizar: entre coincidencias del MISMO producto, search_products y build_order eligen el de mejor grado (A>B>C>D>E).
  • Avisar: productos en el umbral del perfil o peor salen en nutri_warnings (y los alérgenos del perfil en allergen_warnings). Muéstralos ANTES de añadir.
  • Resolver: por cada aviso, suggest_healthier(product_id) propone alternativas con mejor grado; si el usuario acepta, substitute_in_cart. Nunca sustituir sin su confirmación.
  • Cobertura parcial (honestidad): si OFF no tiene el EAN (muchos Hacendado y todo el fresco/peso variable), el grado es ? = "sin dato". No afirmar que un ? es sano ni insano.

Flujo de pedido

  1. Entrada
    • Texto libre del usuario → build_order(items).
    • Menú de tu sistema (HTML o JSON [{id, qty}]) → import_menu(...), que ya devuelve los items con Nutri-Score y avisos.
    • Lista de IDs suelta → añadir directo + nutri_report(ids).
  2. Revisar → muestra tabla (producto, uds, precio, Nutri-Score) + TOTAL + nutri_warnings + allergen_warnings. Resuelve avisos (suggest_healthier). Señala líneas sin coincidencia o de baja confidence.
  3. Confirmar → "¿Confirmas este carrito?" No avances sin un sí.
  4. Ejecutaropen_session (el usuario inicia sesión en la ventana) → add_order_to_cart(items)view_cart. Verifica leyendo el carrito real (no added=True); reintenta lo que falte; valida IDs antes de añadir.
  5. Cierre → resume lo añadido y discrepancias de precio. Deja el carrito a un clic de que el humano pague. NO pulses "Pagar".

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 64 lines · 102 tokens per session scan A 63cb3931b536

Subscribe to this mod's changes

mercadona-pedido is a command published in the GitHub repository Luispitik/mercadona-skill (1 stars, last pushed 2mo ago), licensed MIT. It adds 102 tokens to every session and 1,023 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.