nextjs init

Engineering Community

Skill notes

Step 1: Run create-next-app

Execute this command, replacing <project-name> with the target: If the user prefers npm or yarn, swap --use-pnpm accordingly. Default to pnpm.

Step 2: Set Up Directory Structure

Create these directories inside src/:

Step 3: Configure TypeScript

Verify tsconfig.json has these settings. Patch if missing: Setting · Why strict: true · Catches type errors early. Non-negotiable. noUncheckedIndexedAccess · Forces handling of undefined from array/object access forceConsistentCasingInFileNames · Prevents deploy failures on case-sensitive Linux servers

Step 4: Configure ESLint

Extend .eslintrc.json:

Step 5: Add Prettier

Create .prettierrc: Create .prettierignore:

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Engineering
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
94 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@kazdenc · MIT
Token usage
Lean
Setup complexity
Guided setup
External API key
Not required
Operating systems
Linux
Runtime requirements
No explicit requirements detected
Detected file/system behavior
  • Read-only
  • Write / modify
  • Shell exec
  • Env read
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

01
Step 1: Run create-next-app

Execute this command, replacing `<project-name>` with the target: If the user prefers npm or yarn, swap `--use-pnpm` accordingly. Default to pnpm.

02
Step 2: Set Up Directory Structure

Create these directories inside `src/`:

03
Step 3: Configure TypeScript

Verify `tsconfig.json` has these settings. Patch if missing: Setting · Why `strict: true` · Catches type errors early. Non-negotiable. `noUncheckedIndexedAccess` · Forces handling of `undefined` from array/object access `forceConsistentCasingInFileNames` · Prevents deploy failures on case-sensitive Linux servers

04
Step 4: Configure ESLint

Extend `.eslintrc.json`:

05
Step 5: Add Prettier

Create `.prettierrc`: Create `.prettierignore`:

06
Step 6: Environment Setup

Create `.env.local` with a template: Create `.env.example` with the same keys but no values. Ensure `.env.local` is in `.gitignore` (create-next-app does this by default).

07
Step 7: Starter Root Layout

Replace `src/app/layout.tsx` with:

08
Step 8: Add Utility Helpers

Create `src/lib/utils.ts`: Install the dependencies:

09
Step 9: Verify

Run these checks before handing off:

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.