Next.js + TypeScript

Guide Next.js 15+ App Router projects with TypeScript and TanStack Query.

Updated May 7, 2026
One-click install
npx skills add https://github.com/lgzarturo/codeconductor --skill next-js-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Next.js + TypeScript
Source: https://github.com/lgzarturo/codeconductor/tree/main/.agents/skills/nextjs-typescript
Command: npx skills add https://github.com/lgzarturo/codeconductor --skill next-js-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building modern Next.js 15+ applications can be complex due to architectural decisions around routing, rendering modes, data fetching, and strict typing. This Skill provides expert guidance on structuring projects with the App Router, TypeScript, Server Components, Server Actions, and TanStack Query to accelerate development and improve reliability.

Core Features & Use Cases

  • Guided architecture for Next.js 15+ projects leveraging App Router and TypeScript
  • Server and client component patterns to optimize rendering, data fetching, and interactivity
  • Data fetching and state management strategies using TanStack Query with strong typing
  • Use cases include building scalable dashboards, marketing sites, and API-driven applications with robust server-first workflows

Quick Start

Provide a step-by-step plan to scaffold and architect a Next.js 15+ app with App Router, TS, and data-fetching layers

Frequently Asked Questions about Next.js + TypeScript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Next.js 15 App Router project with TypeScript and Server Components?

Structuring a Next.js 15 App Router project with TypeScript involves defining clear component boundaries between Server and Client components. This approach optimizes rendering, data fetching, and interactivity to build robust, production-grade applications.

What is the best way to use TanStack Query for data fetching in Next.js Server Components?

Using TanStack Query for data fetching in Next.js requires implementing strong typing strategies alongside Server Actions. This combination ensures seamless state management and robust server-first workflows for API-driven applications.

When should I use Server Actions instead of Client Components in Next.js 15?

Use Server Actions in Next.js 15 when performing mutations or data fetching that benefits from server-side execution. Establishing correct component boundaries ensures interactivity remains client-side while heavy logic stays server-side.

Does this Next.js TypeScript architecture pattern work for building scalable dashboards?

Yes, this Next.js TypeScript architecture pattern works for building scalable dashboards. The guided architecture leverages App Router and server-first workflows to handle complex data-fetching layers and state management effectively.

How do I scaffold a Next.js 15 app with TypeScript and a data-fetching layer?

Scaffolding a Next.js 15 app with TypeScript and data-fetching layers follows a step-by-step plan. This process establishes project architecture, integrating App Router with TanStack Query to enable type-safe server and client data workflows.