Mercado Público ChileCompra
by @fdovarela
Operate and assist across Chile's Mercado Público / ChileCompra supplier workflows using both the public API and the private supplier portal. Use when search...
clawhub install mercado-publico-chilecompra📖 About This Skill
name: mercado-publico-chilecompra description: Operate and assist across Chile's Mercado Público / ChileCompra supplier workflows using both the public API and the private supplier portal. Use when searching, listing, monitoring, or reporting on licitaciones, órdenes de compra, buyers, suppliers, and opportunities via API, or when navigating the authenticated portal to review licitaciones, órdenes de compra, cotizaciones, compra ágil, trato directo, reclamos, and portal-specific states, actions, errors, disabled buttons, broken routes, or iframe-driven workflows. ClaveÚnica + email OTP login may require manual fallback or reuse of an already-authenticated session when the federated broker is fragile. metadata: {"openclaw":{"primaryEnv":"MERCADO_PUBLICO_API_TICKET","requires":{"env":["MERCADO_PUBLICO_API_TICKET"]}}}
Mercado Público
Operate the private Mercado Público supplier portal as a cautious copiloto operativo.
Quick start
1. Start from the authenticated supplier shell when possible:
- https://www.mercadopublico.cl/Portal/Modules/Menu/Menu.aspx
2. Treat the site as hybrid:
- legacy modules often load inside iframe fraDetalle
- newer modules may open in separate routes or embedded apps
3. Prefer read / prepare / explain first.
4. Require explicit confirmation before any action that changes state.
Core workflow
1. Establish session
For details, read in this order:
references/login-state-machine.md (siempre, para decidir estado/transición e intervención humana)references/auth-y-sesion.md (flujo base y señales de sesión)references/acceso-a-correo-otp.md (requisitos generales de acceso a correo OTP)references/otp-provider-contract.md (contrato esperado del proveedor OTP)2. Route correctly
Menu.aspx.fraDetalle.For details, read:
references/arquitectura-y-ruteo.md3. Choose the task path
references/runbooks.md para ejecutar flujo operativo mínimo (buscar licitación, revisar ofertabilidad, revisar OC, preparar cotización, diagnosticar portal).Read only the relevant reference file(s):
references/api-publica.md (always first for discovery/reporting/search use cases and API-vs-portal decisions)references/licitaciones.mdreferences/ordenes-de-compra.mdreferences/cotizaciones-trato-directo-y-compra-agil.mdreferences/reclamos-y-ayuda.mdreferences/gestion-y-reporteria.mdreferences/diagnostico-y-guardrails.mdOperating rules
Mandatory guardrails
Always require explicit confirmation before:
Never assume a visible button is safe to click just because it is present.
If the portal shows 404, NullReferenceException, a disabled action, or unexpected redirects:
Resources
Use these references as needed:
references/login-state-machine.mdreferences/auth-y-sesion.mdreferences/acceso-a-correo-otp.mdreferences/otp-provider-contract.mdreferences/runbooks.mdreferences/arquitectura-y-ruteo.mdreferences/licitaciones.mdreferences/ordenes-de-compra.mdreferences/cotizaciones-trato-directo-y-compra-agil.mdreferences/reclamos-y-ayuda.mdreferences/gestion-y-reporteria.mdreferences/api-publica.mdreferences/diagnostico-y-guardrails.mdOperational helpers:
scripts/mercado_publico_api.py (API pública, read-only; ticket en MERCADO_PUBLICO_API_TICKET, --summary estable y caché TTL opcional)💡 Examples
1. Start from the authenticated supplier shell when possible:
- https://www.mercadopublico.cl/Portal/Modules/Menu/Menu.aspx
2. Treat the site as hybrid:
- legacy modules often load inside iframe fraDetalle
- newer modules may open in separate routes or embedded apps
3. Prefer read / prepare / explain first.
4. Require explicit confirmation before any action that changes state.