[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76XH7MZFNDCSD048YHZJPC7":3,"skill-same:01M76XH7MZFNDCSD048YHZJPC7":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M76XH7MZFNDCSD048YHZJPC7","afrexai-nextjs-production",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fafrexai-nextjs-production\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# Next.js Production Engineering\n\n> Complete methodology for building, optimizing, and operating production Next.js applications. From architecture decisions to deployment strategies — everything beyond \"hello world.\"\n\n## Quick Health Check (60 seconds)\n\nRun through these 8 signals — score 0 (no) or 2 (yes):\n\n| Signal | Check | Score |\n|--------|-------|-------|\n| 🏗️ Architecture | Server\u002FClient Component boundary is intentional, not accidental | \u002F2 |\n| ⚡ Performance | Core Web Vitals all green (LCP \u003C2.5s, INP \u003C200ms, CLS \u003C0.1) | \u002F2 |\n| 🔒 Security | No secrets in client bundles, CSP headers configured | \u002F2 |\n| 📦 Bundle | No unnecessary client JS, tree-shaking working | \u002F2 |\n| 🗄️ Data | Caching strategy defined (not just defaults) | \u002F2 |\n| 🧪 Testing | E2E + unit tests in CI, >70% coverage on critical paths | \u002F2 |\n| 🚀 Deploy | Preview deploys, rollback capability, monitoring | \u002F2 |\n| 📊 Observability | Error tracking, performance monitoring, structured logging | \u002F2 |\n\n**Score:** \u002F16 → 14-16 Production-ready | 10-13 Needs work | \u003C10 Risk zone\n\n---\n\n## Phase 1: Architecture Decisions\n\n### App Router vs Pages Router Decision\n\n**Default: App Router** for all new projects (Next.js 13.4+).\n\nUse Pages Router ONLY if:\n- Migrating existing Pages Router app (incremental adoption)\n- Team has zero RSC experience AND shipping deadline \u003C2 weeks\n- Library dependency requires Pages Router patterns\n\n### Project Structure (Recommended)\n\n```\nsrc\u002F\n├── app\u002F                    # App Router — routes only\n│   ├── (auth)\u002F             # Route group — shared auth layout\n│   │   ├── login\u002Fpage.tsx\n│   │   └── register\u002Fpage.tsx\n│   ├── (dashboard)\u002F        # Route group — shared dashboard layout\n│   │   ├── layout.tsx\n│   │   ├── page.tsx\n│   │   └── settings\u002Fpage.tsx\n│   ├── api\u002F                # Route Handlers (use sparingly)\n│   │   └── webhooks\u002F\n│   │       └── stripe\u002Froute.ts\n│   ├── layout.tsx          # Root layout\n│   ├── loading.tsx         # Root loading\n│   ├── error.tsx           # Root error boundary\n│   ├── not-found.tsx       # 404 page\n│   └── global-error.tsx    # Global error boundary\n├── components\u002F             # Shared components\n│   ├── ui\u002F                 # Design system primitives\n│   ├── forms\u002F              # Form components\n│   └── layouts\u002F            # Layout components\n├── lib\u002F                    # Shared utilities\n│   ├── db\u002F                 # Database client & queries\n│   ├── auth\u002F               # Auth utilities\n│   ├── api\u002F                # External API clients\n│   └── utils\u002F              # Pure utility functions\n├── hooks\u002F                  # Custom React hooks (client-only)\n├── actions\u002F                # Server Actions\n├── types\u002F                  # TypeScript types\n├── styles\u002F                 # Global styles\n└── config\u002F                 # App configuration\n```\n\n### Structure Rules\n\n1. **Routes are thin** — `page.tsx` imports components, doesn't contain business logic\n2. **Components are reusable** — never import from `app\u002F` into `components\u002F`\n3. **Server Actions get their own directory** — organized by domain, not by page\n4. **No barrel files** (`index.ts` re-exports) — they break tree-shaking\n5. **Colocation for route-specific** — `_components\u002F` in route folders for non-shared components\n\n### Rendering Strategy Decision Matrix\n\n| Scenario | Strategy | Why |\n|----------|----------|-----|\n| Static content (blog, docs, marketing) | Static (SSG) | Build-time generation, CDN-cached |\n| User-specific dashboard | Dynamic Server | Fresh data per request |\n| Product listing with prices | ISR (revalidate: 3600) | Fresh enough, fast delivery |\n| Real-time data (chat, stocks) | Client-side + WebSocket | Server can't push updates |\n| SEO-critical + fresh data | Dynamic Server + streaming | Fast TTFB with Suspense |\n| Highly interactive form\u002Fwizard | Client Component | Complex state management |\n\n### Server vs Client Component Rules\n\n```\nDEFAULT: Server Component (every .tsx is server by default)\n\nAdd \"use client\" ONLY when you need:\n✅ useState, useEffect, useRef, useContext\n✅ Browser APIs (window, document, localStorage)\n✅ Event handlers (onClick, onChange, onSubmit)\n✅ Third-party client libraries (framer-motion, react-hook-form)\n\nNEVER add \"use client\" because:\n❌ You want to use async\u002Fawait (Server Components support this natively)\n❌ You're fetching data (fetch in Server Components, not useEffect)\n❌ You're importing a server-only library\n❌ \"It's not working\" — debug the actual issue first\n```\n\n### The Boundary Pattern\n\n```tsx\n\u002F\u002F ✅ CORRECT: Server Component wraps Client Component\n\u002F\u002F app\u002Fdashboard\u002Fpage.tsx (Server Component)\nimport { getUser } from '@\u002Flib\u002Fauth'\nimport { DashboardClient } from '.\u002F_components\u002Fdashboard-client'\n\nexport default async function DashboardPage() {\n  const user = await getUser()  \u002F\u002F Server-side data fetch\n  return \u003CDashboardClient user={user} \u002F>  \u002F\u002F Pass as props\n}\n\n\u002F\u002F _components\u002Fdashboard-client.tsx\n'use client'\nexport function DashboardClient({ user }: { user: User }) {\n  const [tab, setTab] = useState('overview')\n  return \u003Cdiv>...\u003C\u002Fdiv>\n}\n```\n\n**Push \"use client\" as far down the tree as possible.** The boundary should be at the leaf, not the root.\n\n---\n\n## Phase 2: Data Fetching & Caching\n\n### Data Fetching Hierarchy (Prefer Top → Bottom)\n\n1. **Server Component direct fetch** — simplest, most performant\n2. **Server Actions** — for mutations and form submissions\n3. **Route Handlers** — for webhooks, external API endpoints\n4. **Client-side fetch (SWR\u002FReact Query)** — for real-time\u002Fpolling data only\n\n### Fetch Configuration\n\n```tsx\n\u002F\u002F Static data (cached indefinitely, revalidated on deploy)\nconst data = await fetch('https:\u002F\u002Fapi.example.com\u002Fdata', {\n  cache: 'force-cache'  \u002F\u002F Default in App Router\n})\n\n\u002F\u002F Revalidate every hour\nconst data = await fetch('https:\u002F\u002Fapi.example.com\u002Fdata', {\n  next: { revalidate: 3600 }\n})\n\n\u002F\u002F Always fresh (no cache)\nconst data = await fetch('https:\u002F\u002Fapi.example.com\u002Fdata', {\n  cache: 'no-store'\n})\n\n\u002F\u002F Tag-based revalidation\nconst data = await fetch('https:\u002F\u002Fapi.example.com\u002Fproducts', {\n  next: { tags: ['products'] }\n})\n\u002F\u002F Then in a Server Action:\nimport { revalidateTag } from 'next\u002Fcache'\nrevalidateTag('products')\n```\n\n### Caching Strategy by Data Type\n\n| Data Type | Cache Strategy | Revalidate | Tags |\n|-----------|---------------|------------|------|\n| CMS content | ISR | 3600s (1h) | `['cms', 'posts']` |\n| Product catalog | ISR | 300s (5m) | `['products']` |\n| User profile | No cache | — | — |\n| Pricing\u002Finventory | No cache | — | — |\n| Static assets | Force cache | On deploy | — |\n| Analytics\u002Fdashboards | ISR | 60s | `['analytics']` |\n| Auth tokens | No cache | — | — |\n\n### Database Queries (No fetch API)\n\n```tsx\nimport { unstable_cache } from 'next\u002Fcache'\nimport { db } from '@\u002Flib\u002Fdb'\n\n\u002F\u002F Cache database queries with tags\nconst getProducts = unstable_cache(\n  async (categoryId: string) => {\n    return db.query.products.findMany({\n      where: eq(products.categoryId, categoryId)\n    })\n  },\n  ['products'],  \u002F\u002F Cache key parts\n  {\n    revalidate: 300,\n    tags: ['products']\n  }\n)\n```\n\n### Parallel Data Fetching\n\n```tsx\n\u002F\u002F ✅ CORRECT: Parallel fetches\nexport default async function DashboardPage() {\n  const [user, stats, notifications] = await Promise.all([\n    getUser(),\n    getStats(),\n    getNotifications()\n  ])\n  return \u003CDashboard user={user} stats={stats} notifications={notifications} \u002F>\n}\n\n\u002F\u002F ❌ WRONG: Sequential waterfall\nexport default async function DashboardPage() {\n  const user = await getUser()\n  const stats = await getStats(user.id)  \u002F\u002F Waits for user\n  const notifications = await getNotifications(user.id)  \u002F\u002F Waits for stats\n}\n```\n\n### Streaming with Suspense\n\n```tsx\nimport { Suspense } from 'react'\n\nexport default async function Page() {\n  return (\n    \u003Cdiv>\n      \u003Ch1>Dashboard\u003C\u002Fh1>\n      {\u002F* Fast: renders immediately *\u002F}\n      \u003CUserGreeting \u002F>\n      \n      {\u002F* Slow: streams in when ready *\u002F}\n      \u003CSuspense fallback={\u003CStatsSkeleton \u002F>}>\n        \u003CStatsPanel \u002F>  {\u002F* Async Server Component *\u002F}\n      \u003C\u002FSuspense>\n      \n      \u003CSuspense fallback={\u003CFeedSkeleton \u002F>}>\n        \u003CActivityFeed \u002F>\n      \u003C\u002FSuspense>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n---\n\n## Phase 3: Server Actions & Mutations\n\n### Server Action Best Practices\n\n```tsx\n\u002F\u002F actions\u002Fuser.ts\n'use server'\n\nimport { z } from 'zod'\nimport { revalidatePath } from 'next\u002Fcache'\nimport { redirect } from 'next\u002Fnavigation'\n\nconst updateProfileSchema = z.object({\n  name: z.string().min(1).max(100),\n  email: z.string().email(),\n  bio: z.string().max(500).optional()\n})\n\nexport async function updateProfile(formData: FormData) {\n  \u002F\u002F 1. Authenticate\n  const session = await getSession()\n  if (!session) throw new Error('Unauthorized')\n\n  \u002F\u002F 2. Validate\n  const parsed = updateProfileSchema.safeParse({\n    name: formData.get('name'),\n    email: formData.get('email'),\n    bio: formData.get('bio')\n  })\n  \n  if (!parsed.success) {\n    return { error: parsed.error.flatten().fieldErrors }\n  }\n\n  \u002F\u002F 3. Authorize\n  if (session.userId !== formData.get('userId')) {\n    throw new Error('Forbidden')\n  }\n\n  \u002F\u002F 4. Mutate\n  await db.update(users)\n    .set(parsed.data)\n    .where(eq(users.id, session.userId))\n\n  \u002F\u002F 5. Revalidate\n  revalidatePath('\u002Fprofile')\n  \n  return { success: true }\n}\n```\n\n### Server Action Rules\n\n1. **Always validate input** — FormData is user input, never trust it\n2. **Always check auth** — Server Actions are public endpoints\n3. **Always check authorization** — user can only modify their own data\n4. **Use Zod for validation** — type-safe, composable schemas\n5. **Return errors, don't throw** — throwing shows error boundary, returning shows inline errors\n6. **Revalidate after mutations** — `revalidatePath` or `revalidateTag`\n7. **Never return sensitive data** — return only what the client needs\n\n### useActionState Pattern (React 19)\n\n```tsx\n'use client'\nimport { useActionState } from 'react'\nimport { updateProfile } from '@\u002Factions\u002Fuser'\n\nexport function ProfileForm({ user }: { user: User }) {\n  const [state, action, pending] = useActionState(updateProfile, null)\n\n  return (\n    \u003Cform action={action}>\n      \u003Cinput name=\"name\" defaultValue={user.name} \u002F>\n      {state?.error?.name && \u003Cp className=\"text-red-500\">{state.error.name}\u003C\u002Fp>}\n      \n      \u003Cbutton type=\"submit\" disabled={pending}>\n        {pending ? 'Saving...' : 'Save'}\n      \u003C\u002Fbutton>\n      \n      {state?.success && \u003Cp className=\"text-green-500\">Saved!\u003C\u002Fp>}\n    \u003C\u002Fform>\n  )\n}\n```\n\n---\n\n## Phase 4: Authentication & Authorization\n\n### Auth Pattern Selection\n\n| Method | Best For | Libraries |\n|--------|----------|-----------|\n| Session-based (cookie) | Traditional web apps | NextAuth.js \u002F Auth.js |\n| JWT | API-first, mobile clients | jose, custom |\n| OAuth only | Social login, quick start | NextAuth.js |\n| Passkeys\u002FWebAuthn | Modern, passwordless | SimpleWebAuthn |\n| Third-party | Enterprise, compliance | Clerk, Auth0, Supabase Auth |\n\n### Middleware Auth Pattern\n\n```tsx\n\u002F\u002F middleware.ts\nimport { NextResponse } from 'next\u002Fserver'\nimport type { NextRequest } from 'next\u002Fserver'\n\nconst publicRoutes = ['\u002F', '\u002Flogin', '\u002Fregister', '\u002Fapi\u002Fwebhooks']\nconst authRoutes = ['\u002Flogin', '\u002Fregister']\n\nexport function middleware(request: NextRequest) {\n  const { pathname } = request.nextUrl\n  const token = request.cookies.get('session')?.value\n\n  \u002F\u002F Public routes — allow\n  if (publicRoutes.some(route => pathname.startsWith(route))) {\n    \u002F\u002F Redirect authenticated users away from auth pages\n    if (token && authRoutes.some(route => pathname.startsWith(route))) {\n      return NextResponse.redirect(new URL('\u002Fdashboard', request.url))\n    }\n    return NextResponse.next()\n  }\n\n  \u002F\u002F Protected routes — require auth\n  if (!token) {\n    const loginUrl = new URL('\u002Flogin', request.url)\n    loginUrl.searchParams.set('callbackUrl', pathname)\n    return NextResponse.redirect(loginUrl)\n  }\n\n  return NextResponse.next()\n}\n\nexport const config = {\n  matcher: ['\u002F((?!_next\u002Fstatic|_next\u002Fimage|favicon.ico|public).*)']\n}\n```\n\n### Authorization Pattern\n\n```tsx\n\u002F\u002F lib\u002Fauth\u002Fpermissions.ts\ntype Permission = 'read' | 'write' | 'admin'\ntype Resource = 'posts' | 'users' | 'settings'\n\nconst rolePermissions: Record\u003Cstring, Record\u003CResource, Permission[]>> = {\n  admin: {\n    posts: ['read', 'write', 'admin'],\n    users: ['read', 'write', 'admin'],\n    settings: ['read', 'write', 'admin']\n  },\n  editor: {\n    posts: ['read', 'write'],\n    users: ['read'],\n    settings: ['read']\n  },\n  viewer: {\n    posts: ['read'],\n    users: [],\n    settings: []\n  }\n}\n\nexport function can(role: string, resource: Resource, permission: Permission): boolean {\n  return rolePermissions[role]?.[resource]?.includes(permission) ?? false\n}\n\n\u002F\u002F Usage in Server Component\nexport default async function AdminPage() {\n  const session = await getSession()\n  if (!can(session.role, 'settings', 'admin')) {\n    notFound()  \u002F\u002F Don't reveal admin pages exist\n  }\n  return \u003CAdminDashboard \u002F>\n}\n```\n\n### Security Headers (next.config.ts)\n\n```tsx\nconst securityHeaders = [\n  { key: 'X-DNS-Prefetch-Control', value: 'on' },\n  { key: 'Strict-Transport-Security', value: 'max-age=63072000; includeSubDomains; preload' },\n  { key: 'X-Frame-Options', value: 'SAMEORIGIN' },\n  { key: 'X-Content-Type-Options', value: 'nosniff' },\n  { key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },\n  { key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=()' },\n  {\n    key: 'Content-Security-Policy',\n    value: `\n      default-src 'self';\n      script-src 'self' 'unsafe-eval' 'unsafe-inline';\n      style-src 'self' 'unsafe-inline';\n      img-src 'self' data: https:;\n      font-src 'self';\n      connect-src 'self' https:\u002F\u002Fapi.example.com;\n      frame-ancestors 'none';\n    `.replace(\u002F\\n\u002Fg, '')\n  }\n]\n```\n\n---\n\n## Phase 5: Performance Optimization\n\n### Core Web Vitals Targets\n\n| Metric | Good | Needs Improvement | Poor |\n|--------|------|-------------------|------|\n| LCP | \u003C2.5s | 2.5-4.0s | >4.0s |\n| INP | \u003C200ms | 200-500ms | >500ms |\n| CLS | \u003C0.1 | 0.1-0.25 | >0.25 |\n| TTFB | \u003C800ms | 800ms-1.8s | >1.8s |\n| FCP | \u003C1.8s | 1.8-3.0s | >3.0s |\n\n### Image Optimization\n\n```tsx\nimport Image from 'next\u002Fimage'\n\n\u002F\u002F ✅ Always use next\u002Fimage\n\u003CImage\n  src=\"\u002Fhero.jpg\"\n  alt=\"Hero image\"\n  width={1200}\n  height={630}\n  priority  \u002F\u002F LCP image — load immediately\n  sizes=\"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw\"\n  placeholder=\"blur\"\n  blurDataURL={shimmer}  \u002F\u002F Base64 placeholder\n\u002F>\n\n\u002F\u002F For dynamic images\n\u003CImage\n  src={user.avatar}\n  alt={user.name}\n  width={48}\n  height={48}\n  loading=\"lazy\"  \u002F\u002F Below fold — lazy load\n\u002F>\n```\n\n### Image Rules\n\n1. **Always set `priority` on LCP image** (hero, above-fold)\n2. **Always provide `sizes`** — prevents downloading oversized images\n3. **Use `placeholder=\"blur\"`** for large images — prevents CLS\n4. **Configure `remotePatterns`** in next.config.ts for external images\n5. **Use WebP\u002FAVIF** — next\u002Fimage auto-converts by default\n\n### Bundle Optimization\n\n```tsx\n\u002F\u002F next.config.ts\nconst nextConfig = {\n  \u002F\u002F Strict mode for catching bugs\n  reactStrictMode: true,\n  \n  \u002F\u002F Optimize packages\n  experimental: {\n    optimizePackageImports: [\n      'lucide-react',\n      '@radix-ui\u002Freact-icons',\n      'date-fns',\n      'lodash-es'\n    ]\n  },\n  \n  \u002F\u002F Bundle analyzer (dev only)\n  \u002F\u002F npm install @next\u002Fbundle-analyzer\n  ...(process.env.ANALYZE === 'true' && {\n    webpack: (config) => {\n      const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')\n      config.plugins.push(new BundleAnalyzerPlugin({ analyzerMode: 'static' }))\n      return config\n    }\n  })\n}\n```\n\n### Dynamic Imports for Heavy Components\n\n```tsx\nimport dynamic from 'next\u002Fdynamic'\n\n\u002F\u002F Heavy chart library — only load when needed\nconst Chart = dynamic(() => import('@\u002Fcomponents\u002Fchart'), {\n  loading: () => \u003CChartSkeleton \u002F>,\n  ssr: false  \u002F\u002F Client-only component\n})\n\n\u002F\u002F Code editor — definitely client-only\nconst CodeEditor = dynamic(() => import('@\u002Fcomponents\u002Fcode-editor'), {\n  ssr: false\n})\n```\n\n### Font Optimization\n\n```tsx\n\u002F\u002F app\u002Flayout.tsx\nimport { Inter, JetBrains_Mono } from 'next\u002Ffont\u002Fgoogle'\n\nconst inter = Inter({\n  subsets: ['latin'],\n  display: 'swap',\n  variable: '--font-inter'\n})\n\nconst jetbrains = JetBrains_Mono({\n  subsets: ['latin'],\n  display: 'swap',\n  variable: '--font-mono'\n})\n\nexport default function RootLayout({ children }) {\n  return (\n    \u003Chtml lang=\"en\" className={`${inter.variable} ${jetbrains.variable}`}>\n      \u003Cbody className=\"font-sans\">{children}\u003C\u002Fbody>\n    \u003C\u002Fhtml>\n  )\n}\n```\n\n### Performance Budget\n\n| Resource | Budget | Tool |\n|----------|--------|------|\n| First Load JS | \u003C100KB | `next build` output |\n| Page JS | \u003C50KB per route | Bundle analyzer |\n| Total page weight | \u003C500KB | Lighthouse |\n| LCP image | \u003C200KB | next\u002Fimage handles |\n| Third-party scripts | \u003C50KB total | Script component |\n| Web fonts | \u003C100KB | next\u002Ffont handles |\n\n---\n\n## Phase 6: Database & ORM\n\n### ORM Selection Guide\n\n| ORM | Best For | Tradeoffs |\n|-----|----------|-----------|\n| Drizzle | Type-safe, lightweight, SQL-like | Newer ecosystem |\n| Prisma | Rapid prototyping, schema-first | Heavier, edge limitations |\n| Kysely | Type-safe raw SQL | More manual, no migrations |\n| Raw SQL (pg\u002Fmysql2) | Max performance, full control | No type safety, manual migrations |\n\n### Drizzle Setup Pattern (Recommended)\n\n```tsx\n\u002F\u002F lib\u002Fdb\u002Findex.ts\nimport { drizzle } from 'drizzle-orm\u002Fnode-postgres'\nimport { Pool } from 'pg'\nimport * as schema from '.\u002Fschema'\n\nconst pool = new Pool({\n  connectionString: process.env.DATABASE_URL,\n  max: 20,\n  idleTimeoutMillis: 30000\n})\n\nexport const db = drizzle(pool, { schema })\n\n\u002F\u002F lib\u002Fdb\u002Fschema.ts\nimport { pgTable, text, timestamp, uuid, boolean } from 'drizzle-orm\u002Fpg-core'\n\nexport const users = pgTable('users', {\n  id: uuid('id').defaultRandom().primaryKey(),\n  email: text('email').notNull().unique(),\n  name: text('name').notNull(),\n  role: text('role', { enum: ['admin', 'editor', 'viewer'] }).default('viewer'),\n  emailVerified: boolean('email_verified').default(false),\n  createdAt: timestamp('created_at').defaultNow(),\n  updatedAt: timestamp('updated_at').defaultNow()\n})\n```\n\n### Connection Pooling for Serverless\n\n```tsx\n\u002F\u002F For Vercel\u002Fserverless — use connection pooler\n\u002F\u002F Neon: use pooler URL (port 5432 → 6543)\n\u002F\u002F Supabase: use Supavisor URL\n\u002F\u002F PlanetScale: serverless driver built-in\n\n\u002F\u002F lib\u002Fdb\u002Findex.ts (serverless-safe)\nimport { neon } from '@neondatabase\u002Fserverless'\nimport { drizzle } from 'drizzle-orm\u002Fneon-http'\n\nconst sql = neon(process.env.DATABASE_URL!)\nexport const db = drizzle(sql)\n```\n\n---\n\n## Phase 7: Testing Strategy\n\n### Test Pyramid for Next.js\n\n| Level | Tool | What to Test | Coverage Target |\n|-------|------|-------------|-----------------|\n| Unit | Vitest | Utils, hooks, pure functions | 80%+ |\n| Component | Testing Library + Vitest | UI components, forms | 70%+ |\n| Integration | Testing Library | Page-level with mocked data | Key flows |\n| E2E | Playwright | Critical user journeys | 5-10 flows |\n| Visual | Playwright screenshots | UI regression | Key pages |\n\n### Vitest Configuration\n\n```tsx\n\u002F\u002F vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig'\nimport react from '@vitejs\u002Fplugin-react'\nimport tsconfigPaths from 'vite-tsconfig-paths'\n\nexport default defineConfig({\n  plugins: [react(), tsconfigPaths()],\n  test: {\n    environment: 'jsdom',\n    setupFiles: ['.\u002Ftests\u002Fsetup.ts'],\n    include: ['**\u002F*.test.{ts,tsx}'],\n    coverage: {\n      provider: 'v8',\n      reporter: ['text', 'lcov'],\n      exclude: ['**\u002F*.config.*', '**\u002Ftypes\u002F**']\n    }\n  }\n})\n```\n\n### Server Component Testing\n\n```tsx\n\u002F\u002F Server Components can be tested as async functions\nimport { render } from '@testing-library\u002Freact'\nimport Page from '@\u002Fapp\u002Fdashboard\u002Fpage'\n\n\u002F\u002F Mock the data fetching\nvi.mock('@\u002Flib\u002Fdb', () => ({\n  getUser: vi.fn().mockResolvedValue({ id: '1', name: 'Test' })\n}))\n\ntest('dashboard page renders user name', async () => {\n  const Component = await Page()  \u002F\u002F Call as async function\n  const { getByText } = render(Component)\n  expect(getByText('Test')).toBeInTheDocument()\n})\n```\n\n### Playwright E2E Pattern\n\n```tsx\n\u002F\u002F e2e\u002Fauth.spec.ts\nimport { test, expect } from '@playwright\u002Ftest'\n\ntest.describe('Authentication', () => {\n  test('login flow', async ({ page }) => {\n    await page.goto('\u002Flogin')\n    await page.fill('[name=\"email\"]', 'test@example.com')\n    await page.fill('[name=\"password\"]', 'password123')\n    await page.click('button[type=\"submit\"]')\n    \n    await expect(page).toHaveURL('\u002Fdashboard')\n    await expect(page.getByText('Welcome')).toBeVisible()\n  })\n  \n  test('protected route redirects', async ({ page }) => {\n    await page.goto('\u002Fdashboard')\n    await expect(page).toHaveURL(\u002F\\\u002Flogin\u002F)\n  })\n})\n```\n\n---\n\n## Phase 8: Error Handling & Monitoring\n\n### Error Boundary Architecture\n\n```\napp\u002F\n├── global-error.tsx     # Catches root layout errors (must include \u003Chtml>)\n├── error.tsx            # Catches app-level errors\n├── not-found.tsx        # 404 page\n├── (dashboard)\u002F\n│   ├── error.tsx        # Dashboard-specific errors\n│   └── settings\u002F\n│       └── error.tsx    # Settings-specific errors\n```\n\n### Error Component Pattern\n\n```tsx\n\u002F\u002F app\u002Ferror.tsx\n'use client'\n\nimport { useEffect } from 'react'\n\nexport default function Error({\n  error,\n  reset,\n}: {\n  error: Error & { digest?: string }\n  reset: () => void\n}) {\n  useEffect(() => {\n    \u002F\u002F Log to error tracking service\n    console.error('Application error:', error)\n    \u002F\u002F Sentry.captureException(error)\n  }, [error])\n\n  return (\n    \u003Cdiv className=\"flex flex-col items-center justify-center min-h-[400px]\">\n      \u003Ch2 className=\"text-2xl font-bold\">Something went wrong\u003C\u002Fh2>\n      \u003Cp className=\"text-gray-500 mt-2\">\n        {error.digest ? `Error ID: ${error.digest}` : error.message}\n      \u003C\u002Fp>\n      \u003Cbutton\n        onClick={reset}\n        className=\"mt-4 px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700\"\n      >\n        Try again\n      \u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n### Structured Logging\n\n```tsx\n\u002F\u002F lib\u002Flogger.ts\ntype LogLevel = 'debug' | 'info' | 'warn' | 'error'\n\nfunction log(level: LogLevel, message: string, meta?: Record\u003Cstring, unknown>) {\n  const entry = {\n    timestamp: new Date().toISOString(),\n    level,\n    message,\n    ...meta,\n    \u002F\u002F Add request context if available\n    ...(meta?.requestId && { requestId: meta.requestId })\n  }\n  \n  if (level === 'error') {\n    console.error(JSON.stringify(entry))\n  } else {\n    console.log(JSON.stringify(entry))\n  }\n}\n\nexport const logger = {\n  debug: (msg: string, meta?: Record\u003Cstring, unknown>) => log('debug', msg, meta),\n  info: (msg: string, meta?: Record\u003Cstring, unknown>) => log('info', msg, meta),\n  warn: (msg: string, meta?: Record\u003Cstring, unknown>) => log('warn', msg, meta),\n  error: (msg: string, meta?: Record\u003Cstring, unknown>) => log('error', msg, meta)\n}\n```\n\n---\n\n## Phase 9: Deployment & Infrastructure\n\n### Platform Comparison\n\n| Platform | Best For | Edge | DB | Cost (hobby) |\n|----------|----------|------|-----|---------------|\n| Vercel | Default choice, best DX | ✅ | External | Free → $20\u002Fmo |\n| Cloudflare Pages | Edge-first, Workers | ✅ | D1, KV | Free → $5\u002Fmo |\n| AWS Amplify | AWS ecosystem | ✅ | RDS, DynamoDB | Pay-per-use |\n| Railway | Full-stack, Docker | ❌ | Built-in Postgres | $5\u002Fmo |\n| Fly.io | Global, Docker | ✅ | Built-in Postgres | Pay-per-use |\n| Self-hosted (Docker) | Full control | ❌ | Any | Server cost |\n\n### Docker Production Setup\n\n```dockerfile\n# Dockerfile\nFROM node:20-alpine AS base\nRUN corepack enable\n\nFROM base AS deps\nWORKDIR \u002Fapp\nCOPY package.json pnpm-lock.yaml .\u002F\nRUN pnpm install --frozen-lockfile\n\nFROM base AS builder\nWORKDIR \u002Fapp\nCOPY --from=deps \u002Fapp\u002Fnode_modules .\u002Fnode_modules\nCOPY . .\nENV NEXT_TELEMETRY_DISABLED=1\nRUN pnpm build\n\nFROM base AS runner\nWORKDIR \u002Fapp\nENV NODE_ENV=production\nENV NEXT_TELEMETRY_DISABLED=1\n\nRUN addgroup --system --gid 1001 nodejs\nRUN adduser --system --uid 1001 nextjs\n\nCOPY --from=builder \u002Fapp\u002Fpublic .\u002Fpublic\nCOPY --from=builder --chown=nextjs:nodejs \u002Fapp\u002F.next\u002Fstandalone .\u002F\nCOPY --from=builder --chown=nextjs:nodejs \u002Fapp\u002F.next\u002Fstatic .\u002F.next\u002Fstatic\n\nUSER nextjs\nEXPOSE 3000\nENV PORT=3000\nENV HOSTNAME=\"0.0.0.0\"\n\nCMD [\"node\", \"server.js\"]\n```\n\n```tsx\n\u002F\u002F next.config.ts — required for standalone\nconst nextConfig = {\n  output: 'standalone'\n}\n```\n\n### CI\u002FCD Pipeline (GitHub Actions)\n\n```yaml\n# .github\u002Fworkflows\u002Fci.yml\nname: CI\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  quality:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: pnpm\u002Faction-setup@v4\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: 20\n          cache: pnpm\n      - run: pnpm install --frozen-lockfile\n      - run: pnpm tsc --noEmit\n      - run: pnpm lint\n      - run: pnpm test -- --coverage\n      - run: pnpm build\n      \n  e2e:\n    runs-on: ubuntu-latest\n    needs: quality\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: pnpm\u002Faction-setup@v4\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: 20\n          cache: pnpm\n      - run: pnpm install --frozen-lockfile\n      - run: pnpm exec playwright install --with-deps\n      - run: pnpm build\n      - run: pnpm exec playwright test\n      - uses: actions\u002Fupload-artifact@v4\n        if: failure()\n        with:\n          name: playwright-report\n          path: playwright-report\u002F\n```\n\n### Environment Variables\n\n```tsx\n\u002F\u002F env.ts — runtime validation with t3-env\nimport { createEnv } from '@t3-oss\u002Fenv-nextjs'\nimport { z } from 'zod'\n\nexport const env = createEnv({\n  server: {\n    DATABASE_URL: z.string().url(),\n    AUTH_SECRET: z.string().min(32),\n    STRIPE_SECRET_KEY: z.string().startsWith('sk_'),\n    REDIS_URL: z.string().url().optional(),\n  },\n  client: {\n    NEXT_PUBLIC_APP_URL: z.string().url(),\n    NEXT_PUBLIC_STRIPE_KEY: z.string().startsWith('pk_'),\n  },\n  runtimeEnv: {\n    DATABASE_URL: process.env.DATABASE_URL,\n    AUTH_SECRET: process.env.AUTH_SECRET,\n    STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,\n    REDIS_URL: process.env.REDIS_URL,\n    NEXT_PUBLIC_APP_URL: process.env.NEXT_PUBLIC_APP_URL,\n    NEXT_PUBLIC_STRIPE_KEY: process.env.NEXT_PUBLIC_STRIPE_KEY,\n  },\n})\n```\n\n---\n\n## Phase 10: Common Patterns Library\n\n### Optimistic Updates\n\n```tsx\n'use client'\nimport { useOptimistic, useTransition } from 'react'\nimport { toggleTodo } from '@\u002Factions\u002Ftodos'\n\nexport function TodoItem({ todo }: { todo: Todo }) {\n  const [optimisticTodo, setOptimisticTodo] = useOptimistic(todo)\n  const [, startTransition] = useTransition()\n\n  return (\n    \u003Clabel>\n      \u003Cinput\n        type=\"checkbox\"\n        checked={optimisticTodo.completed}\n        onChange={() => {\n          startTransition(async () => {\n            setOptimisticTodo({ ...todo, completed: !todo.completed })\n            await toggleTodo(todo.id)\n          })\n        }}\n      \u002F>\n      {optimisticTodo.title}\n    \u003C\u002Flabel>\n  )\n}\n```\n\n### Infinite Scroll\n\n```tsx\n'use client'\nimport { useInView } from 'react-intersection-observer'\nimport { useEffect, useState, useTransition } from 'react'\nimport { loadMore } from '@\u002Factions\u002Ffeed'\n\nexport function InfiniteList({ initialItems }: { initialItems: Item[] }) {\n  const [items, setItems] = useState(initialItems)\n  const [cursor, setCursor] = useState(initialItems.at(-1)?.id)\n  const [hasMore, setHasMore] = useState(true)\n  const [isPending, startTransition] = useTransition()\n  const { ref, inView } = useInView()\n\n  useEffect(() => {\n    if (inView && hasMore && !isPending) {\n      startTransition(async () => {\n        const newItems = await loadMore(cursor)\n        if (newItems.length === 0) {\n          setHasMore(false)\n        } else {\n          setItems(prev => [...prev, ...newItems])\n          setCursor(newItems.at(-1)?.id)\n        }\n      })\n    }\n  }, [inView, hasMore, isPending, cursor])\n\n  return (\n    \u003Cdiv>\n      {items.map(item => \u003CItemCard key={item.id} item={item} \u002F>)}\n      {hasMore && \u003Cdiv ref={ref}>{isPending ? \u003CSpinner \u002F> : null}\u003C\u002Fdiv>}\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n### Search with URL State\n\n```tsx\n'use client'\nimport { useRouter, useSearchParams, usePathname } from 'next\u002Fnavigation'\nimport { useDebouncedCallback } from 'use-debounce'\n\nexport function SearchBar() {\n  const router = useRouter()\n  const pathname = usePathname()\n  const searchParams = useSearchParams()\n\n  const handleSearch = useDebouncedCallback((term: string) => {\n    const params = new URLSearchParams(searchParams)\n    if (term) {\n      params.set('q', term)\n      params.set('page', '1')\n    } else {\n      params.delete('q')\n    }\n    router.replace(`${pathname}?${params.toString()}`)\n  }, 300)\n\n  return (\n    \u003Cinput\n      type=\"search\"\n      placeholder=\"Search...\"\n      defaultValue={searchParams.get('q') ?? ''}\n      onChange={e => handleSearch(e.target.value)}\n    \u002F>\n  )\n}\n```\n\n### Multi-step Form with URL State\n\n```tsx\n\u002F\u002F app\u002Fonboarding\u002Fpage.tsx\nexport default function OnboardingPage({\n  searchParams\n}: {\n  searchParams: { step?: string }\n}) {\n  const step = Number(searchParams.step) || 1\n  \n  return (\n    \u003Cdiv>\n      \u003CProgressBar step={step} total={4} \u002F>\n      {step === 1 && \u003CStepOne \u002F>}\n      {step === 2 && \u003CStepTwo \u002F>}\n      {step === 3 && \u003CStepThree \u002F>}\n      {step === 4 && \u003CStepFour \u002F>}\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n---\n\n## Phase 11: Production Checklist\n\n### Pre-Launch (Mandatory)\n\n- [ ] `next build` succeeds with zero warnings\n- [ ] TypeScript strict mode, no `any` types in production code\n- [ ] All environment variables validated (t3-env or manual)\n- [ ] Security headers configured (CSP, HSTS, X-Frame-Options)\n- [ ] Authentication + authorization tested (pen test critical flows)\n- [ ] Error boundaries at every route level\n- [ ] 404 and 500 pages customized\n- [ ] Favicon, OG images, meta tags configured\n- [ ] Core Web Vitals passing (Lighthouse >90)\n- [ ] Mobile responsive tested on real devices\n- [ ] Accessibility audit (axe, keyboard nav, screen reader)\n- [ ] Rate limiting on API routes and Server Actions\n- [ ] CORS configured correctly\n- [ ] Database connection pooling configured for serverless\n- [ ] Monitoring & error tracking connected (Sentry, etc.)\n\n### Pre-Launch (Recommended)\n\n- [ ] E2E tests for critical user journeys\n- [ ] Bundle size within budget (\u003C100KB first load)\n- [ ] Image optimization verified (next\u002Fimage, proper sizes)\n- [ ] Sitemap.xml and robots.txt configured\n- [ ] Analytics configured\n- [ ] Preview deployment tested\n- [ ] Rollback plan documented\n- [ ] Load testing completed\n- [ ] CDN caching verified\n- [ ] Edge middleware tested in production environment\n\n---\n\n## Phase 12: Anti-Patterns & Troubleshooting\n\n### 10 Next.js Mistakes\n\n| # | Mistake | Fix |\n|---|---------|-----|\n| 1 | `\"use client\"` at the top of every file | Default to Server Components, push client boundary down |\n| 2 | Fetching data with useEffect | Fetch in Server Components or use SWR\u002FReact Query for client |\n| 3 | Not using `loading.tsx` | Add loading states to prevent layout shift |\n| 4 | Ignoring bundle size | Run `next build` and check output, use dynamic imports |\n| 5 | No error boundaries | Add `error.tsx` at every route level |\n| 6 | Storing secrets in `NEXT_PUBLIC_*` | Server-only env vars for secrets, validate with t3-env |\n| 7 | Not setting image `sizes` prop | Always provide `sizes` for responsive images |\n| 8 | Sequential data fetching | Use `Promise.all()` for parallel fetches |\n| 9 | Caching everything or nothing | Explicit cache strategy per data type |\n| 10 | Not using `revalidateTag` | Tag-based revalidation for precise cache control |\n\n### Troubleshooting Decision Tree\n\n```\nBuild error?\n├── \"Module not found\" → Check import paths, tsconfig paths\n├── \"Server Component error\" → Remove \"use client\" or move hooks to client component\n├── \"Hydration mismatch\" → Check for browser-only code in shared components\n│   → Use suppressHydrationWarning for timestamps\n│   → Wrap in useEffect or dynamic(ssr: false)\n├── \"Edge runtime error\" → Check node APIs (fs, crypto) not available at edge\n└── Slow build → Check for large static generation, reduce ISR pages\n\nRuntime error?\n├── 500 on production → Check error.tsx, logs, Sentry\n├── Slow TTFB → Check database queries, add caching\n├── CLS → Add explicit dimensions to images\u002Fembeds\n├── High JS bundle → Run bundle analyzer, dynamic import heavy libs\n└── Stale data → Check revalidation settings, revalidateTag\n```\n\n---\n\n## Recommended Stack (2025+)\n\n| Layer | Recommendation | Why |\n|-------|---------------|-----|\n| Framework | Next.js 15+ (App Router) | RSC, streaming, Server Actions |\n| Language | TypeScript (strict) | Type safety, better DX |\n| Styling | Tailwind CSS 4 | Utility-first, no runtime cost |\n| UI Components | shadcn\u002Fui | Copy-paste, customizable |\n| Forms | react-hook-form + zod | Type-safe validation |\n| ORM | Drizzle | Type-safe, lightweight, SQL-like |\n| Database | PostgreSQL (Neon\u002FSupabase) | Serverless-friendly, proven |\n| Auth | Auth.js (NextAuth v5) | Built for Next.js |\n| Payments | Stripe | Industry standard |\n| Hosting | Vercel | Best Next.js DX |\n| Testing | Vitest + Playwright | Fast unit + reliable E2E |\n| Monitoring | Sentry | Error tracking + performance |\n| Analytics | PostHog | Product analytics, open source |\n\n---\n\n## Quality Rubric (0-100)\n\n| Dimension | Weight | Scoring |\n|-----------|--------|---------|\n| Architecture (RSC boundaries, structure) | 20% | 0-20 |\n| Performance (CWV, bundle, TTFB) | 20% | 0-20 |\n| Security (auth, headers, validation) | 15% | 0-15 |\n| Data layer (caching, fetching, DB) | 15% | 0-15 |\n| Testing (pyramid, coverage, E2E) | 10% | 0-10 |\n| Error handling (boundaries, logging) | 10% | 0-10 |\n| DX (types, linting, CI) | 5% | 0-5 |\n| Deployment (Docker\u002Fplatform, monitoring) | 5% | 0-5 |\n\n**Score:** 90-100 Elite | 75-89 Production-ready | 60-74 Needs improvement | \u003C60 Not production-ready\n\n---\n\n## Natural Language Commands\n\n1. \"Set up a new Next.js project\" → Phase 1 architecture + structure + Phase 6 DB setup\n2. \"Add authentication\" → Phase 4 auth pattern + middleware + authorization\n3. \"Optimize performance\" → Phase 5 full checklist + image + bundle + fonts\n4. \"Set up testing\" → Phase 7 full pyramid + Vitest + Playwright config\n5. \"Deploy to production\" → Phase 9 platform selection + Docker + CI\u002FCD + env vars\n6. \"Fix hydration error\" → Phase 12 troubleshooting tree\n7. \"Add caching\" → Phase 2 caching strategy table + fetch config + tags\n8. \"Create a Server Action\" → Phase 3 best practices + useActionState pattern\n9. \"Audit my app\" → Quick health check + Phase 11 production checklist\n10. \"Add error handling\" → Phase 8 error boundary architecture + logging\n11. \"Set up search\" → Phase 10 search with URL state pattern\n12. \"Review my architecture\" → Phase 1 decision matrix + rendering strategy\n\n---\n\n*Built by AfrexAI — the AI automation agency that ships. Zero dependencies.*\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fa\u002Fafrexai-nextjs-production",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill afrexai-nextjs-production",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill afrexai-nextjs-production",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill afrexai-nextjs-production","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fafrexai-nextjs-production\u002FSKILL.md",true,[],[46,54,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":53},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":53},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":53},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":53},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":53},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":53},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]