Repository navigation
Description
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:
- Scaffold +
vercel link+ provision Neon + Upstash + generate secrets → deploy without Slack creds - Get production URL from deploy output
- Create Slack app from full manifest with real production URL (verification passes immediately)
- Set
SLACK_BOT_TOKEN+SLACK_SIGNING_SECRET, redeploy - Verify
/health+/invite @bot+ Slack mention
Two deploys total; both are fast.
Key implementation findings
vercel install neonandvercel install upstashprovision Postgres and Redis via CLI. First-time use may require a one-time browser flow for marketplace terms.vercel link --yesworks non-interactively (defaults to directory name as project name).junior initgeneratesvercel.jsonwith the correct build command (pnpm exec junior upgrade && pnpm build) — no manual Vercel project settings needed.- OIDC is only required for
junior snapshot createif 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_TOKENfor 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 forproduction,preview, anddevelopmentenvironments sovercel env pullworks for local dev.
Docs work
- New page:
/start-here/agent-quickstart.md(sidebar under "Start Here", after Quickstart) - Cross-links from
quickstart.mdanddeploy-to-vercel.md - Short-term: fenced
textcode block inside a:::tipcallout (Starlight copy button works out of the box) - Long-term:
<AgentPrompt>Astro component insentry-starlight-theme(separate issue)
Pre-ship verifications needed
vercel install upstashvsvercel install upstash/redis— confirm Redis is the provisioned productecho "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
docs(start-here): add Copy agent instructions callout to quickstart
docs(start-here): add Copy agent instructions callout to quickstart
docs(start-here): add Copy agent instructions callout to quickstart
docs(start-here): add Copy agent instructions callout to quickstart
docs(start-here): add Copy agent instructions callout to quickstart
docs(start-here): add Copy agent instructions callout to quickstart
docs(start-here): add Copy agent instructions callout to quickstart (g…