nextjs-app-scaffold
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Scaffolds a production Next.js 14+ App Router project with TypeScript, Tailwind, ESLint, Prettier, testing, and CI. Use when starting a new Next.js project from scratch.
- Reads credentials
In this repository58 other files it gives its agents.
- agent-chain-designerSkill
- api-wrapper-builderSkill
- embeddings-builderSkill
- evaluation-harnessSkill
- fine-tuning-preparerSkill
- llm-router-builderSkill
- ml-model-trainerSkill
- model-benchmarkerSkill
- prompt-engineerSkill
- rag-pipeline-builderSkill
- synthetic-data-generatorSkill
- vector-db-integratorSkill
- csv-processorSkill
- database-schema-designerSkill
- data-pipeline-builderSkill
- etl-workflow-designerSkill
- json-transformerSkill
- pandas-data-cleanerSkill
- report-generatorSkill
- sql-query-optimizerSkill
- time-series-analyzerSkill
- visualization-generatorSkill
- backup-strategySkill
- ci-cd-optimizerSkill
- docker-compose-generatorSkill
- github-actions-pipelineSkill
- kubernetes-deploymentSkill
- load-balancer-configSkill
- log-aggregator-setupSkill
- monitoring-dashboardSkill
- nginx-config-generatorSkill
- security-hardeningSkill
- ssl-certificate-managerSkill
- terraform-module-builderSkill
- api-security-auditorSkill
- compliance-checkerSkill
- dependency-checkerSkill
- incident-responderSkill
- jwt-security-auditorSkill
- owasp-checkerSkill
- penetration-test-plannerSkill
- secret-detectorSkill
- threat-model-designerSkill
- vulnerability-scannerSkill
- accessibility-auditorSkill
- api-route-builderSkill
- auth-flow-builderSkill
- css-animation-crafterSkill
- form-validatorSkill
- graphql-schema-designerSkill
- html-component-builderSkill
- performance-auditorSkill
- pwa-setupSkill
- react-component-generatorSkill
- responsive-layout-systemSkill
- seo-optimizerSkill
- tailwind-design-systemSkill
- websocket-integrationSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 39
Add: zod, clsx, tailwind-merge, @hookform/resolvers, react-hook-form (common), lucide-react or heroicons.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Overview
Provides a complete, production-ready Next.js 14+ (App Router) project scaffold including recommended directory structure, TypeScript strict config, Tailwind, ESLint + Prettier, testing setup (Jest or Vitest + React Testing Library), basic CI with GitHub Actions, environment variable conventions, middleware example, image optimization config, and a Vercel deployment checklist.
When to Use This Skill
- Starting a brand new Next.js project.
- The user says "create a new Next.js app", "scaffold Next.js", or "set up a Next.js project with best practices".
- You want to avoid the default
create-next-appminimal setup and jump straight to a hardened production template.
Prerequisites
- Node.js 18.17+ or 20+.
npx create-next-app@latestor manual setup.- Git initialized.
- Vercel account (recommended for deployment) or other hosting.
Steps
- Initialize the project:
npx create-next-app@latest . --yes --tailwind --eslint --yes --app - Upgrade to latest stable and install additional deps:
typescript,@types/node,react,react-dom(already there).- Add:
zod,clsx,tailwind-merge,@hookform/resolvers,react-hook-form(common),lucide-reactor heroicons. - Dev:
prettier,eslint-config-prettier,husky,lint-staged,@testing-library/react,jestorvitest.
- Directory structure (create these folders):
app/ (marketing)/ # route groups (dashboard)/ api/ components/ lib/ # utils, constants, db clients hooks/ types/ middleware.ts next.config.mjs # hardened - Configure next.config.mjs with security and performance:
- Headers for security.
- Image remote patterns.
- Experimental features if needed.
- Output: 'standalone' for Docker if relevant.
- Set up environment variables:
.env.exampleNEXT_PUBLIC_for client-exposed.- Server-only vars loaded via
process.envwith Zod validation inlib/env.ts.
- Add middleware for auth redirects, i18n, etc.
- Linting & formatting:
.eslintrc.jsonextending recommended + prettier..prettierrclint-staged+ husky pre-commit hook.
- Testing setup:
- Jest/Vitest config.
- Example test for a component.
testing-librarysetup.
- GitHub Actions CI (
.github/workflows/ci.yml):- Install, lint, typecheck, test, build.
- Vercel / deploy checklist:
- Environment variables in dashboard.
- Preview deployments.
- Custom domain + HTTPS.
- Analytics + Speed Insights.
Examples
Full next.config.mjs, lib/env.ts Zod schema, sample app/layout.tsx with metadata, middleware example, and CI workflow are provided in the skill output.
Edge Cases & Error Handling
- Monorepo: Note adjustments for Turborepo or Nx.
- Internationalization: Recommend
next-intlor built-in. - Authentication: Suggest adding
next-author Lucia in a follow-up step. - Database: Prisma or Drizzle setup guidance.
Verification
npm run dev— app runs cleanly.npm run build— successful production build.npm run lintand typecheck pass.- Run tests.
- Deploy to Vercel preview and verify.
- Success: Project starts with all modern best practices, zero config debt on day one.
References
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.

