ditto190/crispy-nextjs-turborepo-monorepo/nextjs-app-router

Claude Code and agent skill by ditto190/crispy-nextjs-turborepo-monorepo

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Imported TRAE skill from frontend/Nextjs_App_Router.md

Install

npx vskill@latest install ditto190/crispy-nextjs-turborepo-monorepo/nextjs-app-router

SKILL.md

The same SKILL.md was published earlier as ditto190/crispy-nextjs-turborepo-monorepo/nextjs-app-router.

Skill: Next.js App Router

Purpose

To build modern, full-stack React applications using the Next.js App Router (introduced in v13), leveraging React Server Components (RSC) for better performance.

When to Use

  • Building a new Next.js application.
  • When you need Server Components, Layouts, or Streaming.
  • Migrating from pages/ directory (gradually).

Procedure

1. Directory Structure

Files in app/ are routes.

  • app/page.tsx -> /
  • app/blog/[slug]/page.tsx -> /blog/abc
  • app/layout.tsx -> Wraps all pages (Root Layout).
2. Server Components (Default)

By default, components are Server Components. They run on the server, can be async, and can access DB directly.

tsx
// app/users/page.tsx
async function getUsers() {
const res = await fetch('https://api.example.com/users');
return res.json();
}
export default async function Page() {
const users = await getUsers();
return <ul>{users.map(u => <li key={u.id}>{u.name}</li>)}</ul>;
}
3. Client Components

Use 'use client' directive at the top to use hooks (useState, useEffect).

tsx
'use client';
import { useState } from 'react';
export default function Counter() {
const [count, setCount] = useState(0);
return <button onClick={() => setCount(count + 1)}>{count}</button>;
}
4. Data Fetching
  • Static (Default): fetch('...', { cache: 'force-cache' }).
  • Dynamic: fetch('...', { cache: 'no-store' }).
  • Revalidation: fetch('...', { next: { revalidate: 3600 } }).

Constraints

  • Context: You cannot use React Context directly in Server Components. Wrap the provider in a Client Component.
  • Node APIs: Server components have access to Node APIs (fs, db), but Client components do not.

Expected Output

A high-performance application with reduced JavaScript sent to the client and simplified data fetching logic.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ditto190/crispy-nextjs-turborepo-monorepo/nextjs-app-router/badge)](https://verified-skill.com/skills/ditto190/crispy-nextjs-turborepo-monorepo/nextjs-app-router)

Something wrong with this skill or its page? Tell us.