nextjs-project-starter
Next.js Project Starter
Create new Next.js projects with a configurable stack, always using latest stable versions with documentation verification.
Core Principles
- Always ask before acting - Never assume, always confirm
- Latest versions - Search npm/docs for current stable versions
- Show breaking changes - Warn about major version changes
- Configurable - Let user choose what to include
Workflow
Phase 1: Project Basics
Ask user for:
- Project name (kebab-case)
- Project description (one line)
- Target domain (custom domain / none)
Phase 2: Node Version Setup
node --version
Present options: use current, use Next.js recommended LTS, or specify custom version.
Generate:
.nvmrcwith selected versionpackage.jsonwith"engines": { "node": ">=X.X.X" }
Phase 3: Feature Selection
Present configurable features:
Core Features (select all that apply):
- Mantine UI + Tabler Icons
- Supabase (auth + database)
- Zustand (state management)
- Zod (validation)
- SWR (data fetching)
- TanStack Query (alternative to SWR)
- Vercel Analytics + Speed Insights
- Testing setup (Vitest + Testing Library)
Phase 4: Version & Docs Verification
For EACH selected feature:
npm view @mantine/core version
Search for official documentation, migration guides, and known issues via WebSearch.
Present version info and ask for confirmation before installing. IMPORTANT: Do this for EACH dependency before installing. Never batch install without verification.
Phase 5: Integration Questions
After features are confirmed, ask about integrations:
- GitHub Repository (create private repo via
gh repo create) - Vercel Deployment (link via
vercel link) - Supabase Project (if selected)
- CLAUDE.md generation
Phase 6: Project Creation
npx create-next-app@latest {project-name} \
--typescript \
--eslint \
--no-tailwind \
--app \
--src-dir \
--import-alias "@/*"
Then install selected dependencies with verified versions.
Phase 7: Structure Generation
Create preferred folder structure. See references/folder-structure.md for the full tree.
Phase 8: Configuration Files
Generate based on selections:
- Mantine: See
references/mantine-setup.mdfor PostCSS config and provider setup - Supabase: See
references/supabase-setup.mdfor client/server/middleware setup - Environment template: Generate
.env.examplewith required vars for selected features
Phase 9: CLAUDE.md Generation
If user confirmed, generate CLAUDE.md with:
- Stack overview with versions
- Available commands
- Project structure
- Key patterns (Server Components, App Router, etc.)
Phase 10: Final Summary
Present summary with: project location, node version, installed packages with versions, integration links, and next steps.
Dependencies Reference
When searching for versions, use these as baseline:
| Package | Purpose | Docs URL |
|---|---|---|
| next | Framework | https://nextjs.org/docs |
| @mantine/core | UI Components | https://mantine.dev |
| @mantine/hooks | React Hooks | https://mantine.dev/hooks |
| @tabler/icons-react | Icons | https://tabler.io/icons |
| @supabase/ssr | Supabase SSR | https://supabase.com/docs |
| zustand | State | https://zustand-demo.pmnd.rs |
| zod | Validation | https://zod.dev |
| swr | Data Fetching | https://swr.vercel.app |
| @tanstack/react-query | Data Fetching | https://tanstack.com/query |
| vitest | Testing | https://vitest.dev |
Error Handling
If any step fails:
- npm install fails: Check Node version, try with
--legacy-peer-deps - gh repo create fails: Verify
gh auth status - vercel link fails: Run
vercel loginfirst - Supabase setup fails: Guide user to manual setup at supabase.com
Always ask user how to proceed on errors, never assume.
More from testacode/llm-toolkit
claude-md-writer
Escribe y mejora archivos CLAUDE.md siguiendo best practices de Anthropic. Este skill se activa cuando el usuario dice "crear CLAUDE.md", "mejorar CLAUDE.md", "actualizar CLAUDE.md", "revisar CLAUDE.md", "escribir instrucciones del proyecto", "create CLAUDE.md", "improve CLAUDE.md", "review CLAUDE.md", "write project instructions", "optimize docs for Claude", "auditar CLAUDE.md", "audit CLAUDE.md", "limpiar CLAUDE.md", "dead weight", o configura un nuevo repositorio.
53doc-writer
Este skill se usa para crear documentos tecnicos organizados en /docs (specs, planes de implementacion, ADRs, documentacion de referencia). Se activa cuando el usuario dice "crear documento", "escribir spec", "documentar esto", "creame una spec", "escribime documentacion", "hacer documentacion", "write a spec", "create documentation", "write an ADR", o quiere agregar documentacion tecnica al proyecto.
44llms-txt-generator
This skill generates llms.txt documentation optimized for AI/LLM consumption. It should be used when the user says "crear llms.txt", "generate llms.txt", "documentar para AI", "document for AI", "crear documentacion para LLMs", "generate docs for LLMs", "make repo readable for Claude", or wants to create structured machine-readable documentation following the llms.txt standard.
40doc-organizer
Este skill se usa cuando el usuario pide "organizar docs", "ordenar documentacion", "mover documentos a carpetas", "categorizar archivos md", "reorganizar documentacion", o cuando hay archivos .md sueltos en docs/ que necesitan ser movidos a subcarpetas tematicas. Organiza y categoriza documentos tecnicos en la estructura correcta del proyecto.
28feature-planner
Planifica features con entrevista estructurada y crea tareas. Este skill se activa cuando el usuario dice "quiero agregar", "planificar feature", "nueva funcionalidad", "implementar esto", "crear plan", "planificar antes de codear", "disenar feature", "como deberia implementar esto", "pensar la arquitectura", o quiere alinear antes de escribir codigo.
27investor-profiler
Entrevista estructurada para determinar perfil de inversor y recomendar asset allocation. Evalua situacion financiera, horizonte temporal, tolerancia al riesgo, experiencia y objetivos. Genera documento con perfil y recomendaciones personalizadas. Este skill se activa cuando el usuario dice "perfil inversor", "en que invertir", "asset allocation", "que inversiones me convienen", "como empezar a invertir", o quiere evaluar su perfil de riesgo.
22