vibe-stack
CLAUDE.md19 starsChanged 6 months agoMITView on GitHub
Pre-load this file when working in this repo. This is vibestack — an opinionated, AI-first SaaS starter. Stack pre-wired, every Claude Code skill vendored in .claude/skills/. See CONTEXT.md for positioning and ADR-0004. Turborepo + pnpm; Next.js 16 + React 19; Tailwind v4 + shadcn; Better Auth 1.6 (email/pw, magic-link, Google, passkeys, 2FA, org plugin, admin plugin, rate-limit); Drizzle 0.45 + Postgres; tRPC v11; Zod v4; Polar.sh billing; Resend + React Email; Cloudflare R2; PostHog + GA4; Sentry; next-intl (EN +…
- Reads credentials
- Installs packages
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/commands/monitoring/agents.mdAGENTS.md
- frontend-designSkill
- gsapSkill
- remotion-best-practicesSkill
- text-to-speechSkill
- blog-writerSkill
- impeccableSkill
- setupSkill
- video-writerSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
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
- Very specific: line 53
Don't touch .env, .env.*, *.key, *.pem, secrets/*.
- Distinctive: line 54
Don't bump major dep versions.
- Distinctive: line 55
Don't push to main. Branch → PR → CI → squash merge.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project memory for Claude Code
Pre-load this file when working in this repo. This is vibestack — an opinionated, AI-first SaaS starter. Stack pre-wired, every Claude Code skill vendored in .claude/skills/. See CONTEXT.md for positioning and ADR-0004.
Stack
Turborepo + pnpm; Next.js 16 + React 19; Tailwind v4 + shadcn; Better Auth 1.6 (email/pw, magic-link, Google, passkeys, 2FA, org plugin, admin plugin, rate-limit); Drizzle 0.45 + Postgres; tRPC v11; Zod v4; Polar.sh billing; Resend + React Email; Cloudflare R2; PostHog + GA4; Sentry; next-intl (EN + FR); Biome v2; Vitest + Playwright; Dokploy + docker-compose; nightly pg_dump → R2.
Workflow
Skills are vendored in .claude/skills/. No install step.
- Clone-to-running-app:
npx create-vibestack my-saas(interactive wizard: rename, feature toggles, optional keys,.env) orpnpm init:appin an existing clone;/setupis the conversational version inside Claude Code. Zero-key boot: the app boots with onlyDATABASE_URL+BETTER_AUTH_SECRET(+ URL vars) — third-party features degrade or hide until their keys exist (auth emails print to the dev console, billing UI hides without Polar, storage errors only when used without R2,/api/healthreports them asdisabled). See ADR-0009. - Product design:
/grill-with-docs→/to-prd→/to-issues - Frontend / UI design:
/impeccableis mandatory. Any task touching UI, components, pages, theming, typography, motion, layout, or visual polish must invoke/impeccablefirst — even if the user did not name the skill. Includes new pages, redesigns, "make this look better", color/spacing tweaks, empty states, error states, copy. - Instagram Reels / short-form video / TikTok-shaped content: route to
/video-writer. Any request to "make a reel", "generate a video", "produce a short video about X", or any Instagram / TikTok / Shorts content intent spawns the swarm (researcher → script writer → [voice + SFX + music]parallel → motion designer → renderer → publisher). Reels are pure typographic / UI-mockup composition (packages/video/src/compositions/Reel.tsx) — no AI-generated stills on this surface; they read as generic and undercut the editorial register. Default output: 60s 9:16 MP4 atapps/marketing/public/reels/<slug>.mp4. RequiresGOOGLE_AI_API_KEY(script) andELEVENLABS_API_KEY(voice + SFX). Music = curated local library underpackages/video/assets/music/<mood>/. See ADR-0008. - Long-form blog posts / journal articles / content marketing: route to
/blog-writer. Any request to "write a blog post", "generate an article", "fill the journal", or content of a deep-dive shape spawns the swarm (researcher → writer → SEO editor + image producer in parallel → publisher). Output is a 15-20 minute read (3500-5000 words) with multiple Gemini-generated inline images, full frontmatter, JSON-LD ready, dropped as a draft intoapps/marketing/content/blog/. Topics may be product-adjacent (domain deep-dives count); the post stays a draft until a human flipsdraft: false. See ADR-0007. - SEO / GEO / Search Console / organic traffic: route to
toprank. Any task about search rankings, organic traffic, Google Search Console, indexing, keyword research, content gaps, meta tags, schema markup, Core Web Vitals, sitemap, robots, AI-search visibility (ChatGPT, Perplexity, Gemini), or Generative Engine Optimization runs through thetoprankplugin (/toprank:seo-analysis,/toprank:keyword-research,/toprank:content-writer,/toprank:geo-optimizer,/toprank:meta-tags-optimizer,/toprank:schema-markup-generator,/toprank:broken-link-checker,/toprank:seo-page). Toprank uses live GSC + PageSpeed Insights data, so install it during/setupand let it OAuth on first run. See ADR-0006. - Google Ads / Meta Ads / paid acquisition: also
toprank(/toprank:google-ads-audit,/toprank:google-ads-manage,/toprank:meta-ads-audit,/toprank:meta-ads-manage). Connects via the NotFair-GoogleAds and NotFair-MetaAds HTTP MCPs configured in.mcp.json. - Build:
/tdd→/review - Bug:
/diagnose→/tdd - Refactor:
/improve-codebase-architecture→ ADR draft →/to-issues - Spike:
/prototype(throwaway, then commit to real implementation) - Inbox:
/triage(sort incoming issues into a state machine)
ADRs live in docs/adr/. Living domain doc is CONTEXT.md. Update both when behaviour changes.
Audience: vibestack serves devs and vibe-coders (product folks, designers, indie founders working through Claude Code). When in doubt about how much hand-holding to include in a response, lean toward the vibe-coder — concrete commands, named URLs, no assumed jargon.
Key commands
pnpm dev # turbo dev across all apps
pnpm dev:web # just the product app (also dev:marketing, dev:admin)
pnpm init:app # interactive first-run wizard (rename + features + .env)
pnpm rename <name> # rename @vibestack scope + brand (lockfile-safe; run pnpm install after)
pnpm db:start # docker postgres
pnpm db:push # apply schema (dev)
pnpm db:generate # generate migration
pnpm db:migrate # apply migrations (prod)
pnpm db:studio # drizzle studio
pnpm auth:generate # regen auth schema from better-auth config
pnpm email:dev # react-email preview at :3010
pnpm check # biome format + lint
pnpm typecheck # tsc across packages
pnpm test # vitest
pnpm test:e2e # playwright
pnpm skills:update # refresh vendored skills from mattpocock/skillsDon't
- Don't touch
.env,.env.*,*.key,*.pem,secrets/*. - Don't bump major dep versions.
- Don't push to
main. Branch → PR → CI → squash merge. - Don't
--no-verify.
See
AGENTS.md— full agent ops guideCONTEXT.md— domain glossary + invariantsdocs/adr/— decision records.claude/skills/README.md— skill index.ruflo/README.md— autonomous loop
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.

