Rechercher

PythonReactSEOPDF
OpenClaw

Afrexai Nextjs Production

Next.js Production Engineering

1kalin0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install 1kalin/afrexai-nextjs-production

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

Next.js Production Engineering

Complete methodology for building, optimizing, and operating production Next.js applications. From architecture decisions to deployment strategies — everything beyond "hello world."

Quick Health Check (60 seconds)

Run through these 8 signals — score 0 (no) or 2 (yes):

Signal Check Score
🏗️ Architecture Server/Client Component boundary is intentional, not accidental /2
⚡ Performance Core Web Vitals all green (LCP <2.5s, INP <200ms, CLS <0.1) /2
🔒 Security No secrets in client bundles, CSP headers configured /2
📦 Bundle No unnecessary client JS, tree-shaking working /2
🗄️ Data Caching strategy defined (not just defaults) /2
🧪 Testing E2E + unit tests in CI, >70% coverage on critical paths /2
🚀 Deploy Preview deploys, rollback capability, monitoring /2
📊 Observability Error tracking, performance monitoring, structured logging /2

Score: /16 → 14-16 Production-ready | 10-13 Needs work | <10 Risk zone


Phase 1: Architecture Decisions

App Router vs Pages Router Decision

Default: App Router for all new projects (Next.js 13.4+).

Use Pages Router ONLY if:

  • Migrating existing Pages Router app (incremental adoption)
  • Team has zero RSC experience AND shipping deadline <2 weeks
  • Library dependency requires Pages Router patterns
Project Structure (Recommended)
src/
├── app/                    # App Router — routes only
│   ├── (auth)/             # Route group — shared auth layout
│   │   ├── login/page.tsx
│   │   └── register/page.tsx
│   ├── (dashboard)/        # Route group — shared dashboard layout
│   │   ├── layout.tsx
│   │   ├── page.tsx
│   │   └── settings/page.tsx
│   ├── api/                # Route Handlers (use sparingly)
│   │   └── webhooks/
│   │       └── stripe/route.ts
│   ├── layout.tsx          # Root layout
│   ├── loading.tsx         # Root loading
│   ├── error.tsx...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/1kalin/afrexai-nextjs-production
Version
—
Commit
8ea329852f0b968c421568dbc097bed141038cb2
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

README

Next.js Production Engineering

Complete methodology for building, optimizing, and operating production Next.js applications — from architecture decisions to deployment strategies.

What This Skill Does

Transforms your AI agent into a senior Next.js engineer who makes the right decisions about:

  • Server vs Client Components — when to use each, where to draw the boundary
  • Data Fetching & Caching — ISR, streaming, parallel fetches, tag-based revalidation
  • Server Actions — validation, auth, authorization patterns
  • Performance — Core Web Vitals optimization, bundle budgets, image/font optimization
  • Authentication — middleware patterns, RBAC, security headers
  • Database — ORM selection, connection pooling for serverless, Drizzle patterns
  • Testing — Vitest + Playwright pyramid, Server Component testing
  • Deployment — Docker production setup, CI/CD, platform comparison
  • Production patterns — optimistic updates, infinite scroll, search with URL state

Install

clawhub install afrexai-nextjs-production

Quick Start

Ask your agent:

  • "Set up a new Next.js project with the right architecture"
  • "Add authentication with middleware"
  • "Optimize my app's Core Web Vitals"
  • "Deploy to production with Docker"
  • "Audit my Next.js app"

What Makes This Different

Most Next.js skills are API reference cards. This is a production engineering methodology:

  • Decision matrices for every architectural choice
  • Code patterns you can copy-paste into production
  • Performance budgets with specific numbers
  • Security hardening checklist
  • Complete CI/CD pipeline configs
  • Troubleshooting decision trees

⚡ Level Up

Want the complete SaaS context pack with customer acquisition, pricing strategy, and go-to-market playbooks alongside your Next.js stack?

AfrexAI SaaS Context Pack — $47

🔗 More Free Skills by AfrexAI

  • afrexai-vibe-coding — AI-assisted develop...

Contenu extrait

SKILL.md
# Next.js Production Engineering

> Complete methodology for building, optimizing, and operating production Next.js applications. From architecture decisions to deployment strategies — everything beyond "hello world."

## Quick Health Check (60 seconds)

Run through these 8 signals — score 0 (no) or 2 (yes):

| Signal | Check | Score |
|--------|-------|-------|
| 🏗️ Architecture | Server/Client Component boundary is intentional, not accidental | /2 |
| ⚡ Performance | Core Web Vitals all green (LCP <2.5s, INP <200ms, CLS <0.1) | /2 |
| 🔒 Security | No secrets in client bundles, CSP headers configured | /2 |
| 📦 Bundle | No unnecessary client JS, tree-shaking working | /2 |
| 🗄️ Data | Caching strategy defined (not just defaults) | /2 |
| 🧪 Testing | E2E + unit tests in CI, >70% coverage on critical paths | /2 |
| 🚀 Deploy | Preview deploys, rollback capability, monitoring | /2 |
| 📊 Observability | Error tracking, performance monitoring, structured logging | /2 |

**Score:** /16 → 14-16 Production-ready | 10-13 Needs work | <10 Risk zone

---

## Phase 1: Architecture Decisions

### App Router vs Pages Router Decision

**Default: App Router** for all new projects (Next.js 13.4+).

Use Pages Router ONLY if:
- Migrating existing Pages Router app (incremental adoption)
- Team has zero RSC experience AND shipping deadline <2 weeks
- Library dependency requires Pages Router patterns

### Project Structure (Recommended)

```
src/
├── app/                    # App Router — routes only
│   ├── (auth)/             # Route group — shared auth layout
│   │   ├── login/page.tsx
│   │   └── register/page.tsx
│   ├── (dashboard)/        # Route group — shared dashboard layout
│   │   ├── layout.tsx
│   │   ├── page.tsx
│   │   └── settings/page.tsx
│   ├── api/                # Route Handlers (use sparingly)
│   │   └── webhooks/
│   │       └── stripe/route.ts
│   ├── layout.tsx          # Root layout
│   ├── loading.tsx         # Root loading
│   ├── error.tsx...
README
# Next.js Production Engineering

> Complete methodology for building, optimizing, and operating production Next.js applications — from architecture decisions to deployment strategies.

## What This Skill Does

Transforms your AI agent into a senior Next.js engineer who makes the right decisions about:

- **Server vs Client Components** — when to use each, where to draw the boundary
- **Data Fetching & Caching** — ISR, streaming, parallel fetches, tag-based revalidation
- **Server Actions** — validation, auth, authorization patterns
- **Performance** — Core Web Vitals optimization, bundle budgets, image/font optimization
- **Authentication** — middleware patterns, RBAC, security headers
- **Database** — ORM selection, connection pooling for serverless, Drizzle patterns
- **Testing** — Vitest + Playwright pyramid, Server Component testing
- **Deployment** — Docker production setup, CI/CD, platform comparison
- **Production patterns** — optimistic updates, infinite scroll, search with URL state

## Install

```bash
clawhub install afrexai-nextjs-production
```

## Quick Start

Ask your agent:
- "Set up a new Next.js project with the right architecture"
- "Add authentication with middleware"
- "Optimize my app's Core Web Vitals"
- "Deploy to production with Docker"
- "Audit my Next.js app"

## What Makes This Different

Most Next.js skills are API reference cards. This is a **production engineering methodology**:

- Decision matrices for every architectural choice
- Code patterns you can copy-paste into production
- Performance budgets with specific numbers
- Security hardening checklist
- Complete CI/CD pipeline configs
- Troubleshooting decision trees

## ⚡ Level Up

Want the complete SaaS context pack with customer acquisition, pricing strategy, and go-to-market playbooks alongside your Next.js stack?

**[AfrexAI SaaS Context Pack — $47](https://afrexai-cto.github.io/context-packs/)**

## 🔗 More Free Skills by AfrexAI

- `afrexai-vibe-coding` — AI-assisted develop...

Skills associés

OpenClaw

agent-pack-n-go

aicodelion

🚀 Clone your OpenClaw AI Agent to a new device in ~25 minutes — configs, memory, skills, everything.

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.