Claude Code: save it as .claude/skills/fullstack-scaffolding/SKILL.md
Cursor: save it as .cursor/rules/fullstack-scaffolding.md
Codex: save it as .agents/skills/fullstack-scaffolding/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Fullstack Scaffolding
When to use
Starting a new project and need the correct framework CLI command
Choosing between Next.js, Remix, SvelteKit, Nuxt, Astro, or a DSL framework
Adding a headless CMS to an existing or new application
Deciding on project folder structure (feature vs layer vs domain)
Setting up Turborepo monorepo with shared packages
Configuring env var validation, Docker Compose, or CI/CD stub from day one
Core principles
Convention over configuration — exhaust framework defaults before reaching for custom solutions; every override is future maintenance
Validate at startup — env vars validated with zod at boot time; a missing secret should crash immediately with a clear message, not at 3 AM
Feature-based structure by default — co-locate components, hooks, types, and API calls per feature; switch to domain-based only when bounded contexts are clear
Remove boilerplate on first commit — delete all demo content from CLI-generated projects before the first real commit lands
Feature flags from day one — add a minimal flag mechanism before the first conditional shipping need; retrofitting is always messier
references/project-structure.md — feature-based, layer-based, and domain-based structure examples with annotated directory trees; Turborepo monorepo layout
references/environment-dev-tooling.md — .env.example template, @t3-oss/env-nextjs validation code, Docker Compose for Postgres/Redis/Meilisearch, Turbopack setup, Vite patterns, HMR caveats
references/scaffolding-checklist.md — nine-step setup sequence from CLI init to CI/CD stub, key principles, and common pitfalls checklist
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.