Next react boot
Scaffold a Next.js 16 / React 19 / TypeScript / Tailwind CSS v4 frontend from scratch. Trigger when the user asks to bootstrap, scaffold, or create a new frontend, Next.js app, or React project. Also trigger when the user says "boot frontend", "new frontend", "create frontend", or "scaffold frontend".From its SKILL.md
npx -y skills add rolopez23/agent-harness --skill next-react-bootAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.6 KB, as published. Nobody here has run it
Next.js + React Frontend Boot
Use this skill to scaffold a frontend that follows these exact patterns and conventions. Do not deviate unless instructed.
Stack
- Next.js 16 (App Router, Turbopack)
- React 19
- TypeScript
- Tailwind CSS v4
- Portless for local dev URLs
Project Structure
frontend/
├── app/
│ ├── layout.tsx # Root layout — fonts, metadata, global CSS
│ ├── globals.css # Tailwind import + CSS variables
│ └── page.tsx # Home page
├── public/ # Static assets
├── next.config.ts # Turbopack root scoped to frontend/
└── package.json
Key Conventions
- All pages go in
app/using the App Router file conventions (page.tsx,layout.tsx,loading.tsx, etc.) - Tailwind is configured via
@import "tailwindcss"inglobals.css— notailwind.config.*file needed next.config.tssetsturbopack.root: __dirnameto scope Turbopack to thefrontend/directory- CSS variables for colors are defined in
:rootinglobals.cssand mapped to Tailwind tokens via@theme inline - Fonts are loaded via
next/font/googleinlayout.tsxand injected as CSS variables
Dev Server
Run from repo root:
npm run dev:frontend
Or from frontend/:
npm run dev
Local URL (via Portless): http://react-frontend.localhost:1355
Backend API
The backend runs at http://server.localhost:1355. All routes are prefixed with /api/.
To call the backend from the frontend:
const res = await fetch("http://server.localhost:1355/api/your-route");
Scaffolding Steps
When bootstrapping, produce the following files in order:
frontend/package.json— dependencies: next, react, react-dom, typescript, tailwindcss, @tailwindcss/postcssfrontend/tsconfig.jsonfrontend/next.config.ts— setturbopack.root: __dirnamefrontend/app/globals.css—@import "tailwindcss",:rootcolor variables,@theme inlinemappingfrontend/app/layout.tsx— root layout with fonts vianext/font/google, metadata, global CSS importfrontend/app/page.tsx— home pagefrontend/postcss.config.mjs— use@tailwindcss/postcss
After scaffolding, run npm install inside frontend/.
Feature Prompt Template
When starting a new feature or page, ask the user:
What I want to build: [describe the feature or page]
Key constraints:
- Use the App Router — pages in
app/, layouts inlayout.tsx- Tailwind v4: use utility classes directly, no config file
- Fetch data from the backend at
http://server.localhost:1355/api/- Keep components in the same file unless they need to be reused
- No extra dependencies unless necessary
Common Gotchas
- Missing native binding on install: If you see
Cannot find module '@tailwindcss/oxide-darwin-arm64', runrm -rf node_modules && npm installinsidefrontend/ - Turbopack scope:
turbopack.rootis set to__dirname(thefrontend/dir) — don't movenext.config.tsup to the repo root - CORS: The backend allows
http://react-frontend.localhost:1355by default; override withFRONTEND_URLenv var if needed