Skip to content
Back to skills

Nextjs App Router Coldstartlabs Ca Myimageupscaler Com

ASecurity

Next.js 15 App Router patterns for this project. Use when creating routes, API endpoints, server components, or client components.

  • 30 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 8, 2026
developmenttypescriptreactnextjsapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill nextjs-app-router --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nextjs App Router Coldstartlabs Ca Myimageupscaler Com?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nextjs App Router Coldstartlabs Ca Myimageupscaler Com
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-nextjs-app-router-coldstartlabs-ca-myimageupscaler/badge)](https://www.skillsdirectory.com/skills/majiayu000-nextjs-app-router-coldstartlabs-ca-myimageupscaler)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nextjs-app-router
description: Next.js 15 App Router patterns for this project. Use when creating routes, API endpoints, server components, or client components.
---

# Next.js 15 App Router

## Directory Structure

- `app/` - Routes and API handlers
- `client/` - Client components and utilities
- `server/` - Server-side services
- `shared/` - Shared types and utilities

## Route Handlers (API)

```typescript
// app/api/example/route.ts
import { NextRequest, NextResponse } from 'next/server';

export async function POST(request: NextRequest) {
  const body = await request.json();
  // Validate with zod schema from shared/validation/
  return NextResponse.json({ data });
}
```

## Server Components (Default)

```typescript
// No 'use client' directive
export default async function Page() {
  const data = await fetchData(); // Direct DB/API calls
  return <div>{data}</div>;
}
```

## Client Components

```typescript
'use client';
// Required for: hooks, browser APIs, event handlers, state
import { useState } from 'react';
```

## Data Fetching

- Server Components: Direct async/await
- Client Components: Use `client/utils/api-client.ts`

## Caching

```typescript
// Revalidate every hour
export const revalidate = 3600;

// Or disable caching
export const dynamic = 'force-dynamic';
```

## Error Handling

- `error.tsx` - Error boundary per route
- `not-found.tsx` - 404 handling
- `loading.tsx` - Suspense fallback

## Metadata

```typescript
export const metadata = {
  title: 'Page Title',
  description: 'Page description',
};
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.