Communitygithub.com

Next.js 工具集

生態系最佳化、部署與開發者流程。用於配置 Next.js 建置最佳化、部署設定或開發者工具時觸發(觸發關鍵字:next.config.js, package.json, Dockerfile, turbopack, output, standalone, lint, telemetry)。

Next.js 工具集 是什麼?

此技能專為最佳化 Next.js 專案的建置架構、部署流程與開發者體驗而設計。它提供關於使用 **Turbopack** 進行快速增量開發、透過 **`output: 'standalone'`** 實現精簡 Docker 部署、強制在 CI/CD 中使用 **`next lint`** 與型別檢查,以及利用 **`@next/bundle-analyzer`** 與 **`next/image`** 進行資產最佳化的詳細指引。技能也涵蓋隱私相關的遙測關閉功能、使用 Zod 驗證的環境變數管理,以及透過快取 **`.next/cache`** 加速 CI/CD 管道。支援的平台包括 Claude Code、Cursor 與其他 AI 代理工具。其說明文件以 SKILL.md 格式呈現,其中包含優先級標記、專案結構示意圖、實作指南、反模式,以及一份參考資料清單。此技能在處理 `next.config.js`、`Dockerfile` 與 `package.json` 等檔案時會自動觸發,確保開發者遵循最佳實務,避免常見陷阱。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/HoangNguyen0403/agent-skills-standard/nextjs-tooling

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Next.js 工具集 是做什麼的?

優先級:P2(中等)

結構

project/
├── .next/              # 建置產出物
├── next.config.js      # 進階配置
└── .eslintrc.json      # Next 外掛

實作指南

  • 建置架構:使用 Turbopack(現代)或 Webpack(舊式)。啟用 --turbo 以獲得更快的增量開發體驗。
  • 最小化:確保在 next.config.js 中設定 output: 'standalone',以實現最佳化的 Docker 部署。使用對應於 ProGuard / Uglify 的工具來縮減資產大小。
  • Linting:在 CI/CD 管道中強制執行 next lint(Next.js ESLint 外掛)和 tsc(型別檢查)。
  • 資產最佳化:使用 @next/bundle-analyzer 檢查大小。透過 next/image 最佳化圖片,並移除未使用的依賴。
  • 遙測:若需要隱私,可透過 next telemetry disable 選擇關閉遙測。
  • 環境:在 Next.js 中使用 .env 管理(僅伺服器端 vs NEXT_PUBLIC_*)。在執行時期使用 Zod 驗證架構。
  • CI/CD:在 CI 中快取 .next/cache 資料夾,可將建置時間提升 50% 以上。

反模式

  • 不要用 npm run start 開發:請使用 next dev(或 next dev --turbo)。
  • 不要忽略未檢查的套件成長:在佈署前用 @next/bundle-analyzer 進行分析。
  • 不要使用自訂 ESLint 規則取代外掛:使用 eslint-plugin-next 進行 Next.js 感知的 Linting。
  • 不要在生產環境中使用 console.log:請使用結構化日誌器(Pino、Winston)。

參考資料

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能