Skip to content

docs: add canned agent prompt for Vercel quickstart #683

Closed

Description

@dcramer

Add a "copy this prompt" callout to the docs quickstart that users can paste into any coding agent (Cursor, Claude, Copilot, etc.) to scaffold, provision, and deploy a new Junior Vercel app end-to-end.

Motivation

Setup currently requires reading multiple doc pages and executing steps manually. A canned agent prompt collapses the happy path into a single copy-paste — the agent handles all the CLI work and pauses for the two unavoidable manual steps (Slack app creation and Slack URL configuration).

Correct flow (deploy-first to avoid Slack URL validation)

Slack verifies webhook URLs immediately on entry — placeholder URLs are rejected. The correct sequencing:

  1. Scaffold + vercel link + provision Neon + Upstash + generate secrets → deploy without Slack creds
  2. Get production URL from deploy output
  3. Create Slack app from full manifest with real production URL (verification passes immediately)
  4. Set SLACK_BOT_TOKEN + SLACK_SIGNING_SECRET, redeploy
  5. Verify /health + /invite @bot + Slack mention

Two deploys total; both are fast.

Key implementation findings

  • vercel install neon and vercel install upstash provision Postgres and Redis via CLI. First-time use may require a one-time browser flow for marketplace terms.
  • vercel link --yes works non-interactively (defaults to directory name as project name).
  • junior init generates vercel.json with the correct build command (pnpm exec junior upgrade && pnpm build) — no manual Vercel project settings needed.
  • OIDC is only required for junior snapshot create if enabled plugins declare sandbox runtime deps. The default init scaffold (memory + maintenance) has no sandbox deps, so OIDC is not needed for the base case.
  • VERCEL_OIDC_TOKEN for AI Gateway is auto-injected at runtime on Vercel — zero config.
  • All env vars (JUNIOR_SECRET, CRON_SECRET, SLACK_BOT_TOKEN, SLACK_SIGNING_SECRET) should be set for production, preview, and development environments so vercel env pull works for local dev.

Docs work

  • New page: /start-here/agent-quickstart.md (sidebar under "Start Here", after Quickstart)
  • Cross-links from quickstart.md and deploy-to-vercel.md
  • Short-term: fenced text code block inside a :::tip callout (Starlight copy button works out of the box)
  • Long-term: <AgentPrompt> Astro component in sentry-starlight-theme (separate issue)

Pre-ship verifications needed

  • vercel install upstash vs vercel install upstash/redis — confirm Redis is the provisioned product
  • echo "value" | vercel env add VAR production — confirm non-interactive stdin piping works end-to-end with base64url values
  • End-to-end prompt test on a fresh Vercel account + Slack workspace with an AI agent

The prompt manifest

A URL-stripped Slack manifest was considered and rejected — Slack's manifest spec requires request_url under event_subscriptions and interactivity when socket_mode_enabled: false, and url under slash_commands. The deploy-first approach avoids needing a stripped manifest entirely; the full slack-manifest.yml (at packages/junior/slack-manifest.yml) is used with the real production URL substituted.

Activity

  1. added
    documentation
    enhancement
    on Jun 29, 2026
  2. added 6 commits that reference this issue on Jun 30, 2026
    4830287
    ebddf0c
    4e17aaf
    b79de5f
    2313ec4
    58499b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions