TopRank Skills

Home / Claw Skills / 开发运维 / Afrexai Nextjs Production
Official OpenClaw rules 54%

Afrexai Nextjs Production

Next.js Production Engineering

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Afrexai Nextjs Production 技能。 若已安装,则直接安装 Afrexai Nextjs Production 技能。

Overview

Skill Key
1kalin/afrexai-nextjs-production
Author
1kalin
Source Repo
openclaw/skills
Version
-
Source Path
skills/1kalin/afrexai-nextjs-production
Latest Commit SHA
8ea329852f0b968c421568dbc097bed141038cb2

Extracted Content

SKILL.md excerpt

# 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 excerpt

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

Related Claw Skills

aicodelion

agent-pack-n-go

★ 73

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

0xnyk

xint

★ 49

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

heyixuan2

bambu-studio-ai

★ 41

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 pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

jackculpan

flightclaw

★ 32

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

openclaw-trade

openclaw-trading-assistant

★ 24

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime monitoring and news research, gather info from private insiders and many other! Using Hyperliquid API.

xquik-dev

x-twitter-scraper

★ 16

X (Twitter) automation skill for AI coding agents. Tweet search, user lookup, follower/following extraction, media download, reply/retweet/quote extraction, 40+ tools, account monitoring & trending topics. REST API, MCP server, HMAC webhooks. Works with Claude Code, Cursor, Codex, Copilot, Windsurf & 40+ agents.