> Full index: https://docs.buchungapp.com/llms.txt
> Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples.

# Agent skills and prompts

Every page on `docs.buchungapp.com` is available as clean Markdown by appending `.md` to its URL (or sending `Accept: text/markdown`), and `/llms.txt` lists the full index. Hand your coding agent the exact playbooks below so it follows both the Storefront API contract and Buchung's booking UX standards from the first prompt.

## Fetchable playbooks (Markdown URLs) [#fetchable-playbooks-markdown-urls]

Point your agent directly at these `.md` URLs (or include them in your repo's `AGENTS.md` / `CLAUDE.md`):

| Playbook | Markdown URL | When to attach |
| --- | --- | --- |
| **Mental model** | `https://docs.buchungapp.com/docs/developers/mental-model.md` | Every new project: core nouns, invariants and v1 scope. |
| **API runbook** | `https://docs.buchungapp.com/docs/developers/quickstart-agents.md` | Wiring Storefront API calls, auth, locales and checkout handoff. |
| **Site blueprints** | `https://docs.buchungapp.com/docs/developers/use-cases.md` | Picking the right architecture for expeditions, camps, rentals or drops. |
| **Booking UX principles** | `https://docs.buchungapp.com/docs/developers/booking-ux.md` | Designing cards, first phone screen, date rows, scarcity and trust. |
| **Component craft** | `https://docs.buchungapp.com/docs/developers/component-craft.md` | Building filter bars, mobile sheets, `scroll={false}` and carousels. |
| **Storefront MCP** | `https://docs.buchungapp.com/docs/developers/mcp.md` | Integrating or testing an operator's `/mcp` endpoint. |
| **OpenAPI schema** | `https://docs.buchungapp.com/openapi.json` | Generating a typed TypeScript SDK with `@hey-api/openapi-ts`. |

## Starter prompt: build a custom storefront (Lovable / Claude Code / Cursor) [#starter-prompt-build-a-custom-storefront-lovable--claude-code--cursor]

Copy this prompt and fill in your supplied values and business type:

```text
Build a custom booking storefront powered by the Buchung Storefront v1 API.

Configuration (publishable browser config):
- API base: https://api.buchungapp.com/v1
- Channel key: <YOUR_bg_st_KEY>
- Business archetype: <expeditions | seasonal camps | rentals | courses>

Before writing code, read these Buchung Markdown guides in full:
1. https://docs.buchungapp.com/docs/developers/mental-model.md
2. https://docs.buchungapp.com/docs/developers/quickstart-agents.md
3. https://docs.buchungapp.com/docs/developers/use-cases.md
4. https://docs.buchungapp.com/docs/developers/booking-ux.md
5. https://docs.buchungapp.com/docs/developers/component-craft.md

Strict rules:
- Call the Storefront API directly from the browser with X-Buchung-Channel-Key
  (do not add a backend proxy unless asked).
- Start with GET /site to discover locales, currency, timeZone, brand and
  trust signals. Never send Accept-Language; send Buchung-Locale explicitly.
- Never invent activity handles, UUIDs, SKUs, prices or dates.
- Never sum remaining across availability options; show remaining per option
  only, keep sold-out rows dimmed, and use bookingUnitNounForms for units.
- Format money from minor units with Intl.NumberFormat and format times in
  departure/arrival location timezones (falling back to AA timeZone, never
  the browser timezone).
- Put title, headline price (from BookingOptions.priceSummary), next date
  and decision facts above media on mobile; render visible date rows and
  inline option cards instead of blind dependent dropdowns.
- Use scroll: false on filter/option URL updates and keep filter panels
  sized to content with removable active-filter chips.
- For a configured collection listing, read facets from each response and
  honor optionsTruncated. Clear the cursor on filter changes. If the
  collection returns 404 not_found, check the collection and booking channel.
- Hand off checkout via POST /checkout/handoff with returned SKUs and
  quantities only (never prices), show warnings and listedTotal, then
  navigate to handoff.url unchanged.
- Stop and ask me only on 401, 403 forbidden_origin, 404 on GET /site, or
  409 storefront_domain_missing.
```

## Starter prompt: UX audit of an existing storefront [#starter-prompt-ux-audit-of-an-existing-storefront]

Use this prompt to have an agent review an existing custom site against Buchung's booking UX and component standards:

```text
Audit this booking storefront against Buchung's conversion and UI standards:
1. Read https://docs.buchungapp.com/docs/developers/booking-ux.md
2. Read https://docs.buchungapp.com/docs/developers/component-craft.md

Inspect the listing page, activity detail page, date/option picker, empty
and sold-out states, and checkout handoff on both desktop (1440px) and
mobile (375px). Prioritize high-impact, low-effort fixes before redesigning,
and report findings grouped as:
- P1: costs bookings today (blind dropdowns, hidden price or missing
  what-the-price-buys context, dead-end sold out, broken mobile first
  screen, summed shared capacity, cluttered buy box)
- P2: meaningful friction (missing decision facts or staged timeline,
  missing trust/policy near CTA, generic button/error microcopy, scroll
  jumps on filter clicks, missing OG image for sharing)
- P3: polish (currency decimals, gallery image diversity and peeking next
  slide, empty media/waiting states, copy buttons, labels)

Propose concrete code fixes for each P1 and P2 issue.
```

## Repo `AGENTS.md` snippet [#repo-agentsmd-snippet]

If your team maintains a custom storefront repository, add this short block to your `AGENTS.md` or `CLAUDE.md`:

```md
## Buchung Storefront API

- Canonical docs index: https://docs.buchungapp.com/llms.txt
- Integration runbook: https://docs.buchungapp.com/docs/developers/quickstart-agents.md
- Mental model & invariants: https://docs.buchungapp.com/docs/developers/mental-model.md
- Booking UX & component rules: https://docs.buchungapp.com/docs/developers/booking-ux.md and https://docs.buchungapp.com/docs/developers/component-craft.md
- OpenAPI spec: https://docs.buchungapp.com/openapi.json

Never sum `remaining` across options, never send prices to `/checkout/handoff`, never alter signed media URLs, and never render activity timestamps in the visitor's browser timezone.
```

