搜索

PythonReactSEOPDF
OpenClaw

Afrexai Nextjs Production

Next.js Production Engineering

1kalin0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install 1kalin/afrexai-nextjs-production

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/1kalin/afrexai-nextjs-production
Version
—
Commit
8ea329852f0b968c421568dbc097bed141038cb2
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

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...

来源内容

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...

相关技能

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.