sbuilder-platform-api

Documents Store Builder platform HTTP and socket API behaviors, quirks, and credential rules.

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/vuluu2k/sbuilder-mcp --skill sbuilder-platform-api-vuluu2k
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sbuilder-platform-api
Source: https://github.com/vuluu2k/sbuilder-mcp/tree/main/.claude/skills/sbuilder-platform-api
Command: npx skills add https://github.com/vuluu2k/sbuilder-mcp --skill sbuilder-platform-api-vuluu2k

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working on the sbuilder-mcp server, agents repeatedly hit undocumented platform behaviors — silent frame drops, token rotation, slug renames, 200 responses that changed nothing — and waste effort re-deriving facts or "fixing" code that correctly accounts for them. This Skill preserves those hard-won API and socket facts so they are never re-investigated or reverted. ## Core Features & Use Cases - Platform behavior reference: Records verified facts about credential routing, token rotation, the single error shape, WebSocket frame caps, publish and slug quirks, media upload doors, theme writes, and app installs. - Trigger-based activation: Loads automatically when touching transport, live socket, or API tool code, or when sb_api_call, sb_media_upload, sb_theme, sb_live_join, or sb_publish returns a refusal or unexpected body. - Use Case: An agent sees sb_publish return 200 but the page never went live. Instead of debugging blindly, it consults this Skill and learns publish silently skips pages with no saved draft while still answering 200. ## Quick Start Ask the agent to explain why sb_media_upload from a URL failed with a file-type error and what the platform actually accepts.

Frequently Asked Questions about sbuilder-platform-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does sb_publish return 200 but the page is not live?▼

The Store Builder platform silently skips publishing a page that has no saved draft and still answers 200. The sb_publish tool guards against this by asserting the page came back in the response and projecting the returned rows.

How do I upload media to Store Builder with an agent API key?▼

Agent keys prefixed wbk_ can upload via /api/media on current deployments, with POST /api/v1/media as a fallback door for older servers. The uploadMedia client retries the partner surface before blaming the key's scopes.

Can a wbk_ agent key open the Store Builder live-edit socket?▼

Yes, the platform's realtime gate gives a wbk_ bearer the same access as a session, gated on the member.read scope through the key's delegated principal. Older client-side refusals of agent keys on the socket have been removed.

Why does a WebSocket connection close when sending large frames?▼

The Store Builder wire protocol caps frames by kind: ops and snap frames may reach 4 MiB, but every other kind is capped at 64 KiB. Exceeding the cap closes the socket with StatusMessageTooBig, so large batches must be split.

What happens when creating a page with a duplicate slug in Store Builder?▼

The platform renames colliding slugs by suffixing -1, -2, and so on rather than refusing the request. The create call answers 200 with a slug the caller never requested, so links authored to the original slug will be dead.

Why does the session access token stop working after some time?▼

The session access token lives roughly 15 minutes and rotates. Consumers must call Session.token() per use because it is a getter; capturing the string once replays an expired token, and socket auth failures are silent since onopen still fires.