Site Onboarding
Follow repository path docs/agent-skills/ONBOARDING_STAGES.md as the source of truth (stages S0–S9). Read that file before acting; do not invent parallel onboarding steps.
When to use
- New machine / agent environment setup
- User does not know Cloudflare well
- Creating a brand-new client site folder
- Installing Cloudflare Skills/MCP alongside the toolkit
- Guiding API token creation and
.envwiring
Rules
- Read
ONBOARDING_STAGES.mdbefore acting. - Prefer full agent control; detect sandbox limits in S0.
- Ask before host installs, Cloudflare plugin/MCP, scaffold writes, and production mutate/deploy — use the host question UI when available.
- Global PWT footprint stays light (
portable-web-toolkit-routeronly). Link heavier skills into the project with explicit--skills. - Fresh folders gaining files from
site-starteris success, not failure. - Always ask Workers vs Pages static before scaffolding.
- Verify Cloudflare tokens with
cf-agent permissions auditbefore mutations. - Re-fetch https://developers.cloudflare.com/agent-setup/prompt.md live for MCP/plugin install commands.
.envdivision of labor — copysite-starter/.env.exampleinto the client project (canonical). Do not use the toolkit-repo root.env.example(pointer only) or invent a third template:- A (user):
CLOUDFLARE_API_TOKEN,GOOGLE_PAGESPEED_API_KEY - B (agent + user): account/zone/worker or pages names, public URL — propose and challenge
- C (explain early): PostHog + GA4 — why product analytics + Google reporting matter; do not defer the conversation
- D (optional): forms/Turnstile/Instagram; registrar keys only if needed (Porkbun is an example, not required)
- A (user):
- Be curious: challenge vague names, “analytics later,” and missing required API keys before calling setup done.
- Create profiles with
init-site-profile create … --project-root .so the JSON lands in the client folder (<siteId>.site-profile.json). Never write live clients intoWeb_Toolkit/site-profiles/.
After onboarding
Hand off to site-readiness, then portable-web-toolkit for deploy/ops.