project-scaffolder
Generates complete starter repositories for various tech stacks (Next.js, Vite, Nest, FastAPI, etc.) with best-practice conventions, folder structure, baseline code, configs, scripts, and setup documentation. Use when users request to "scaffold a project", "create a starter repo", "initialize a new project", or specify a tech stack to begin with.
What this skill does
# Project Scaffolder Generate production-ready starter repositories with best-practice conventions for any tech stack. ## Core Workflow 1. **Determine stack**: Ask user to specify or infer from context (Next.js, Vite, Nest, FastAPI, etc.) 2. **Select template**: Use references/templates.md to choose the appropriate project structure 3. **Generate structure**: Create complete folder tree with all necessary files 4. **Add baseline code**: Include working "hello world" route/page as proof of concept 5. **Configure tooling**: Add package.json/requirements.txt, tsconfig, linting, formatting configs 6. **Create scripts**: Include dev, build, test, and deployment scripts 7. **Document setup**: Generate comprehensive README with setup steps and next actions ## Key Deliverables Every scaffolded project must include: - **Folder tree**: Well-organized src/, lib/, config/, tests/ structure - **Baseline code**: Working hello world endpoint or page - **Package files**: package.json, requirements.txt, Cargo.toml, etc. - **Configs**: TypeScript, ESLint, Prettier, environment files (.env.example) - **Scripts**: npm scripts or Makefile for common tasks - **README**: Setup instructions, tech stack overview, next steps - **Git setup**: .gitignore configured for the stack ## Stack-Specific Patterns See `references/templates.md` for detailed patterns per stack: - Next.js App Router - Vite + React - NestJS - FastAPI - Express + TypeScript - Vue + Vite - SvelteKit ## Best Practices - Use absolute imports (@/ alias) where supported - Include environment variable templates - Add basic error handling and logging setup - Configure path mappings in tsconfig - Include Docker files for containerization (optional) - Add GitHub Actions or CI workflow templates (optional) ## Progressive Enhancement Start with minimal viable structure, then add: - Database setup (Prisma, TypeORM, SQLAlchemy) - Auth scaffolding (NextAuth, Passport, JWT) - API client setup (Axios, Fetch wrapper) - State management (Zustand, Redux, Pinia) - Testing setup (Jest, Vitest, Pytest) ## Output Structure Present the complete project tree first, then create all files in proper locations. Always provide a summary of what was created and next steps to run the project.
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4→v5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.