setup
Skill19 starsChanged 6 months agoMITView on GitHub
Conversational first-time setup for a freshly cloned vibestack repo. Progressive model — Phase 1 gets a running app in ~2 minutes (Postgres + a generated BETTER_AUTH_SECRET, no third-party keys needed), Phase 2 enables optional features (Resend, Polar, R2, Google OAuth, analytics, Sentry) one at a time when the user wants them. Use when the user has just cloned vibestack and wants help getting it running, or asks to "set up the project / set up env / get this running / enable billing / add email".
- Reads credentials
192 other projects use a version of this.
Adopted by
Most recently taken up by
- kachofugetsu09/akashic-agenttheir own version, first seen Nov 30, 2026
- siberiacancode/agent-skillstheir own version, first seen Nov 29, 2026
- JCodesMore/youtube-for-ai-agentstheir own version, first seen Nov 29, 2026
- microsoft/Employee-Self-Service-Agent-Developer-Kittheir own version, first seen Nov 29, 2026
- cubetes/coaichtheir own version, first seen Nov 29, 2026
- blotato/contentskillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use add-discord, add-slack and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkilladd-discord
Add Discord bot channel integration via Chat SDK.
Also in 11 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 11 projects that use this
- +10 more from microsoft
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- anthropics/knowledge-work-plugins★ 37ksame name
- garrytan/gbrain★ 34ksame name
- nanocoai/nanoclaw★ 31ksame name
- gavrielc/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- Q00/ouroboros★ 6.4ksame name
- pytorch/executorch★ 5.2ksame name
- aws/agent-toolkit-for-aws★ 3.6ksame name
- agenticnotetaking/arscontexta★ 3.5ksame name
- spotify/portal-ai-plugins★ 2.8ksame name
182 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/commands/monitoring/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- frontend-designSkill
- gsapSkill
- remotion-best-practicesSkill
- text-to-speechSkill
- blog-writerSkill
- impeccableSkill
- video-writerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 8 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
No Resend key → auth emails (magic links, verification, password reset) print to the dev console in development.
- Distinctive: line 13
No Polar token → the billing plugin doesn't mount and billing UI hides.
- Distinctive: line 14
No R2 vars → file storage throws a clear "not configured" error only when actually used.
- Very specific: line 25
Create .env: either offer pnpm init:app (interactive wizard — handles name, features, keys, secret generation in one pass) or manually cp …
- Very specific: line 26
If manual: generate the secret with openssl rand -base64 32, have the user paste it into BETTER_AUTH_SECRET= themselves (not into chat).
- Very specific: line 52
After each key: restart pnpm dev, verify the feature (send a real email, open /dashboard/billing, upload a file), then move on.
- Distinctive: line 65
After they confirm both succeeded:
- Very specific: line 71
If the user skips this step, note it for later — /setup can be re-run, and /toprank:* skills will just be unavailable until they install …
- Very specific: line 77
Never commit
.env: Verify .gitignore covers it before you finish. - Very specific: line 78
If BETTER_AUTH_SECRET is generated, run openssl rand -base64 32 and tell the user to paste it themselves — do not log it to chat scrollback.
- Distinctive: line 79
Stop the moment a step fails.
- Distinctive: line 80
Never block Phase 1 on a third-party signup.
- Distinctive: line 84
Use short, single-question turns.
- Distinctive: line 104
When done, suggest the next step:
“Common” is measured: kept by at least 6 in 10 of the 168 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<what-to-do>You are walking a user through setting up a vibestack repo. The user may be a developer or a non-developer (vibe-coder). Assume nothing — confirm each step worked before moving to the next.
The model is progressive. vibestack has zero-key boot: the app runs with only a database and an auth secret. Everything third-party is optional and degrades gracefully:
- No Resend key → auth emails (magic links, verification, password reset) print to the dev console in development. Sign-up and magic-link sign-in still work — the user copies the link out of their terminal.
- No Polar token → the billing plugin doesn't mount and billing UI hides.
- No R2 vars → file storage throws a clear "not configured" error only when actually used.
/api/healthreports unconfigured optional services asdisabled(not errors).
So: never block the user on collecting API keys. Get the app running first, enable features after.
Check first: if the user ran npx create-vibestack or pnpm init:app, the wizard already did most of Phase 1 (and possibly some of Phase 2) — .env exists with a generated secret and any keys they pasted. Ask which features they skipped and jump straight to enabling those. If they cloned by hand, run both phases.
Phase 1 — Running app (~2 minutes, zero third-party keys)
- Confirm the toolchain: Node 22+, pnpm 10+, Docker running.
pnpm install.- Create
.env: either offerpnpm init:app(interactive wizard — handles name, features, keys, secret generation in one pass) or manuallycp .env.example .env. - If manual: generate the secret with
openssl rand -base64 32, have the user paste it intoBETTER_AUTH_SECRET=themselves (not into chat). - Confirm the core vars — local defaults all work out of the box:
DATABASE_URL— matches the docker postgres frompnpm db:start.BETTER_AUTH_SECRET— the generated string (≥ 32 chars).APP_URL/CORS_ORIGIN/BETTER_AUTH_URL/NEXT_PUBLIC_APP_URL—http://localhost:3001.
pnpm db:start, verify Postgres is healthy (docker ps).pnpm db:push.pnpm dev(orpnpm dev:webfor just the product app). Confirm:3001(web) and:3000(marketing) load.- Have the user sign up at
http://localhost:3001— the verification/magic-link email prints in the terminal running dev. That's expected, not a bug. Tell them so before they ask.
Phase 1 done = working auth, orgs, dashboard, no external accounts created.
Phase 2 — Enable features when needed
Each item is independent and optional. Ask which ones the user wants now; skip the rest — they can re-run /setup anytime. For each: "Do you already have a <service> account?" — if no, give the signup URL and the exact free-tier pick. Then they paste the key into .env themselves (never into chat) and restart pnpm dev.
In rough order of how soon people want them:
- Resend (real email) —
RESEND_API_KEY+EMAIL_FROM. resend.com → API Keys. Free tier: 3k emails/mo, 1 domain.EMAIL_FROMcan beonboarding@resend.devon the trial. Until this is set, emails print to the console (dev) — production refuses to send. - Polar (billing) —
POLAR_ACCESS_TOKEN(+POLAR_SUCCESS_URL, product IDs later). polar.sh → switch to sandbox → Settings → Developer → create token. Sandbox is free and unlimited. Also flipbilling: { enabled: true }inapps/web/src/config/features.tsif the wizard turned it off. - Cloudflare R2 (file uploads + db backups) —
R2_ACCOUNT_ID,R2_ACCESS_KEY_ID,R2_SECRET_ACCESS_KEY,R2_BUCKET,R2_ENDPOINT. Cloudflare R2. 10 GB free, no egress fees. Create a bucket + API token (Object Read & Write). Endpoint ishttps://<account-id>.r2.cloudflarestorage.com. Also checkfilesinfeatures.ts. - Google OAuth (sign-in-with-Google) —
GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET. console.cloud.google.com → OAuth 2.0 Client. Free. - PostHog + GA4 (analytics) —
NEXT_PUBLIC_POSTHOG_KEY(+ host),NEXT_PUBLIC_GA_ID. posthog.com free tier: 1M events/mo. - Sentry (errors) —
SENTRY_DSN/NEXT_PUBLIC_SENTRY_DSN. sentry.io free developer plan. - Gemini + ElevenLabs (content swarms) —
GOOGLE_AI_API_KEY(aistudio.google.com, free tier) for/blog-writer+/video-writerscripts;ELEVENLABS_API_KEY(elevenlabs.io, free tier) for reel voice + SFX.
After each key: restart pnpm dev, verify the feature (send a real email, open /dashboard/billing, upload a file), then move on.
Install toprank
vibestack routes all SEO, GEO (AI-search visibility), Google Ads, and Meta Ads work through the toprank Claude Code plugin. Install it as part of first-run setup so the user can ask "audit my SEO" or "why is my traffic down" later and the right skill fires automatically.
Tell the user, in chat, to run these two commands inside Claude Code (not in their terminal):
/plugin marketplace add nowork-studio/toprank
/plugin install toprank@nowork-studioAfter they confirm both succeeded:
- Mention the plugin handles OAuth lazily. The first time they invoke a skill that needs Google Search Console (e.g.
/toprank:seo-analysis), Claude Code will walk them through Google OAuth and store the token under~/.toprank/. They do not need to fill.envfor this — it lives outside the project. - The Google Ads + Meta Ads MCPs (
NotFair-GoogleAds,NotFair-MetaAds) are already wired in.mcp.jsonand auto-connect when they open the repo. First Ads command will prompt the user to sign in once atnotfair.co. - Post-deployment, point Google Search Console at their production domain (
marketing.example.com). Once verified, every/toprank:seo-analysiscall pulls real ranking data. The optionalscripts/seo-nightly.example.shshows how to wire a nightly headless audit in CI.
If the user skips this step, note it for later — /setup can be re-run, and /toprank:* skills will just be unavailable until they install the plugin.
Hard rules
- Never read
.envfiles. Hard-blocked by repo permissions and a footgun anyway. If you need to know whether a key is set, ask the user (or check/api/health, which names services without leaking values). - Never print key values back to the user. Echo the variable name only.
- Never commit
.env. Verify.gitignorecovers it before you finish. - If
BETTER_AUTH_SECRETis generated, runopenssl rand -base64 32and tell the user to paste it themselves — do not log it to chat scrollback. - Stop the moment a step fails. Don't paper over Postgres connection errors by skipping ahead — debug them.
- Never block Phase 1 on a third-party signup. Keys are Phase 2.
Recommended dialogue style
Use short, single-question turns. After each user response, restate what you understood, run the next command, and confirm output.
You: Run `pnpm install` — should take ~60s. Tell me when it finishes or paste any error you see.
User: done
You: Good. Want the wizard (`pnpm init:app` — asks your product name + features, writes .env for you) or manual (`cp .env.example .env`)?Skip ahead when the user clearly knows what they're doing. Slow down when they ask "what does that do?"
Done definition
Phase 1 is done when:
pnpm devis running with no errors.http://localhost:3001shows the sign-in page.- Signup works — the verification/magic-link email appears in the dev terminal (or, if Resend is configured, in the Resend dashboard / inbox).
Phase 2 has no "done" — it's a menu. End by telling the user what's still disabled (per /api/health) and that they can re-run /setup to enable anything later.
When done, suggest the next step:
"You're set up. Next: describe the SaaS you want to build. I'll walk you through it with
/grill-with-docs→/to-prd→/to-issues→/tdd. Or read the 'Build your first feature' tutorial in the docs app."
</what-to-do><supporting-info>Environment variable reference
See env-reference.md for the complete annotated list with signup links and what-it-does descriptions. Production deployment reference: docs/deploy/production-env.md.
Troubleshooting
- Postgres won't start — check Docker daemon is running.
docker psshould show no port-5432 collision. If it does,pnpm db:downand retry. pnpm db:pushfails with auth error —.envDATABASE_URLmust matchdocker-compose.ymlpostgres creds. Default works out of box.- Better Auth: invalid secret —
BETTER_AUTH_SECRETmust be ≥32 chars. Regenerate withopenssl rand -base64 32. - "Where did my magic link go?" — no
RESEND_API_KEYset, so the email printed in the terminal runningpnpm dev. Scroll up or search for "magic". - Emails not sending with a Resend key — Resend test mode only delivers to verified addresses. For trial keys, verify your own email at resend.com first.
- Billing page is missing — either
POLAR_ACCESS_TOKENis unset orbillingisenabled: falseinapps/web/src/config/features.ts. Both must be on.
</supporting-info>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

