← Val TownCONTENT HISTORY

Update to Val Town

Snapshot Sep 30, 2026 · 22:50 UTC · version 3.0.0

Collection source: not recorded for this historical snapshot.

WHAT CHANGED · RULE-BASED ANALYSIS

First saved snapshot

No earlier snapshot is available to establish a change.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "name": "third-party-integrations",
  "description": "Use when a val talks to an external service — Slack, Discord, Telegram, Stripe, GitHub, Gmail, Google Sheets, Postgres/Supabase/Upstash/Neon, browser automation (Playwright, Browserbase, Kernel, Steel), web scraping, PDF generation, push notifications, RSS, or any other third-party API. Covers the required workflow (fetch the Val Town guide, get credentials, test, store secrets) and the catalog of available guides.",
  "included_files": [],
  "skill_md_contents": "---\nname: third-party-integrations\ndescription: Use when a val talks to an external service — Slack, Discord, Telegram, Stripe, GitHub, Gmail, Google Sheets, Postgres/Supabase/Upstash/Neon, browser automation (Playwright, Browserbase, Kernel, Steel), web scraping, PDF generation, push notifications, RSS, or any other third-party API. Covers the required workflow (fetch the Val Town guide, get credentials, test, store secrets) and the catalog of available guides.\n---\n\n# Third-Party Integrations\n\nWhen a val uses any external service, follow this order — do not skip steps and do not write integration code from training-data memory alone. Val Town's guides have platform-specific patterns and required workarounds that won't be in your training data.\n\n## Workflow\n\n1. **Fetch the Val Town guide first.** Guides live under `https://docs.val.town/guides/`, but the slug isn't always just the service name — some are grouped under a category (e.g. `databases/neon-postgres/`, `browser-automation/kernel/`) or live on a sub-page (`slack/agent/`). Don't guess the URL: fetch the docs sitemap at `https://docs.val.town/sitemap-0.xml` (it lists every docs URL), find the `guides/…` entry that matches the service, and fetch that page before writing any integration code.\n2. **Help the user get credentials.** Provide direct links to create API keys or step-by-step OAuth setup instructions. Don't make the user hunt.\n3. **Test the connection** with a minimal script (a single fetch / SDK call that returns one record) before building features on top. This isolates auth/setup problems from feature bugs.\n4. **Store secrets in env vars.** Use `Deno.env.get(\"KEY_NAME\")` to read them, and document the required env vars in the README so the user (or anyone remixing the val) knows what to set. Whenever you reference an env var the user needs to set, show the raw, full URL to the prefilled Val Town env var editor on its own line, in this exact format: `👉 Add KEY_NAME here: https://www.val.town/x/HANDLE/VAL_NAME/environment-variables?key=KEY_NAME`. Keep the URL visible (not hidden behind link text) — it's the call-to-action.\n\n## Available guides\n\nServices with dedicated guides today — not exhaustive, so use the sitemap from step 1 as the current source of truth:\n\n- **Messaging / chat:** Slack, Discord, Telegram\n- **Payments:** Stripe\n- **Email:** Gmail (for sending via a user's account; for built-in mail use `std/email` instead — see the `email` skill)\n- **Google:** Google Sheets\n- **External databases:** Neon Postgres, Supabase, Upstash (for SQLite use built-in `std/sqlite` instead — see the `sqlite-storage` skill)\n- **Browser automation:** Kernel (recommended for Playwright), Browserbase, Steel, Browserless\n- **Source control / webhooks:** GitHub (including webhooks)\n- **Content / output:** RSS feeds, PDF generation, web scraping\n- **Notifications:** push notifications\n- **Auth:** OAuth providers (for logging in with a Val Town account use `std/oauth` instead)\n\n## Why this matters\n\nIntegration code is the most common place models hallucinate. APIs change, auth flows get reworked, and platform constraints (no filesystem, no subprocess) break naive approaches. The Val Town guide is the source of truth for what currently works on the platform.\n"
}

SHA-256: efecb6362bae06801a2bbb2dd8e5a07f7c7f67cac9b24bdda094b3a16e46a2a8