---
name: website-deploy-builder
description: Plan a website on Simple Host before building it. Use when the person has an idea for a site or web tool but has not settled what it should do, asks whether Simple Host can handle bookings, forms, accounts, payments, a database, private pages or server code, or wants to know what to build with Simple Host KV, SQLite or files. Explains who can read and write what, then hands implementation to website-deploy.
---

# Plan a website on Simple Host

Use this skill to decide what to build. When the person has chosen, hand the build to the
`website-deploy` skill, which publishes it. Use the signed-in Simple Host connector; if it is
missing, ask the person to connect Simple Host (https://stage.simple-host.site/install.html). Never ask
for sign-in codes, API keys or passwords in chat. Planning needs no tool calls.

Follow the description of `storage_set_resource` that this server gives; if it does not accept `rules`, the server is older and its description says what to send. Read the website-deploy `references/storage.md` for row-rule syntax, which file buckets use too.

## What Simple Host is

A static-file host: every site lives at `https://sites.stage.simple-host.site/<handle>/<sitename>/` and serves
HTML, CSS, JS, images and fonts. Simple Host serves static files and its built-in storage; it does not run your own server code. Each site can still save data in
three kinds of resource the owner creates: KV (named JSON values), SQLite (tables and queries) and
files (photos, PDFs). SQLite and KV use row rules for read, add, edit and delete; SQLite tables may
replace the resource default. File buckets take the same rules, over `path` and `visitor_id` (the uploader). Visitors sign in with Google or an emailed code; no password or sign-up form.

## Map the request

| They want | Plan |
|---|---|
| a landing page, portfolio, CV, multi-page site | static only, relative links |
| bookings, appointments, table reservations | SQLite author-or-owner read rules, recipe `booking`: the customer signs in when they book and sees their status; the owner confirms from chat |
| a quote request, contact form, waitlist, sign-up, application, feedback | SQLite owner-only read and public add rules, recipe `inbox`: anyone sends without signing in; only the owner reads |
| a menu, prices, opening hours the owner updates | KV public read and owner write rules, recipe `public`: the owner changes it from chat, no republish |
| orders from a small shop | SQLite author-or-owner read rules with a status and a linked change table |
| a client portal | one site per client, opened only to that client's email (named viewers), recipe `portal` |
| reviews, comments, a guestbook anyone may post to without signing in | checked add rules, recipe `comments`: a spam check instead of sign-in; the owner removes posts or approves each one first |
| reviews, comments, a guestbook by people who sign in | recipe `wall`: everyone reads, people sign in to post |
| photos visitors share | files with public read and signed-in add rules, recipe `gallery` |
| a shared sign-up sheet or task list | signed-in shared rules, recipe `board` |
| things each visitor keeps for themselves | author-or-owner rules, recipe `personal` |
| only some people may open the whole site | named viewers by email, or one shared passcode; ask which if they did not say |
| their own domain, or a shorter address | the `connect-domain` skill, or a short `<name>.stage.simple-host.site` |
| a tool that runs only in the browser | static plus `localStorage` or `IndexedDB` |
| data from a public API | static plus `fetch()` to a CORS-enabled API, no secret keys in the page |

## How to use this skill

1. Ask what they are trying to build, in plain language. Let them describe the idea.
2. Decide whether it can run as a static site. Name any part that cannot (server code, payments
   processing, custom account systems, long-running jobs) and suggest a substitute or another
   service for that part.
3. If visitors save anything, state each resource, its rules, and whether sign-in is needed,
   before designing the page. Personal details go in `inbox`, `records` or `personal`, never in a
   resource everyone signed in can read.
4. Always pair a form with a way for the owner to read it back: from chat with
   `storage_sql_query`, or an owner page on the site (recipe `admin`).
5. Give a short plan: how to structure it, the storage shape, and the gotchas.
6. Hand off to `website-deploy` to build and publish. For a site that already exists, write a
   short prompt the person can paste into a fresh agent chat instead, and say in it to confirm
   any step that deletes data, makes private data public, or changes who can see or save.

## Advanced: open only when the plan needs it

| Need | Reference |
|---|---|
| What a site can be, what is not a fit, the full idea-to-plan map, what to say up front, the handoff | `references/capabilities.md` |
| Row rules, file rules, the page helper and each person's records worked example | the `website-deploy` skill's `references/storage.md` |
| Home page and showcase; file sizes | the `website-deploy` skill's `references/home-page.md` and `references/limits.md` |
