Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

nextjs-developerNext.js 开发者

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

2,945

周安装

118

GitHub Stars

76

下载量

953
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nextjs-developer(Next.js 开发者)
来源仓库:https://github.com/404kidwiz/claude-supercode-skills
仓库路径:skills/nextjs-developer
安装命令:
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill nextjs-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill nextjs-developer

简介

专为 Next.js 14+ 应用开发提供全栈支持,擅长 App Router、服务端组件和 Server Actions 的实现。

  • 适用于构建高性能、SEO 优化的现代 React 应用,涵盖页面结构、路由配置和数据库集成。
  • 通过分析项目现有架构和设计系统,生成或审查前端代码、样式逻辑与交互功能。
  • 安装需使用 npx skills add 命令并指定 GitHub 仓库路径,建议结合本地预览验证视觉效果。
  • 注意避免生成孤立代码片段,涉及页面改动时应配合构建检查确认兼容性。

SKILL.md

Next.js Developer Specialist

Purpose

Provides expert Next.js development expertise specializing in Next.js 14+, App Router, Server Components, and modern React patterns. Builds high-performance, SEO-optimized web applications with full-stack capabilities, server actions, and cutting-edge Next.js features.

When to Use

  • Building Next.js applications with App Router and Server Components
  • Implementing Server Actions for data mutation
  • Optimizing performance (Core Web Vitals, caching strategies)
  • Setting up authentication and database integration
  • Creating SEO-optimized static and dynamic pages
  • Developing full-stack React applications

Quick Start

Invoke this skill when:

  • Building Next.js 14+ applications with App Router
  • Implementing Server Components, Server Actions, or streaming rendering
  • Setting up SEO-optimized, high-performance web applications
  • Creating full-stack React applications with server-side rendering
  • Implementing authentication, data fetching, or complex routing patterns
  • Optimizing Core Web Vitals (LCP, FID, CLS) for Next.js apps
  • Migrating from Pages Router to App Router architecture

Do NOT invoke when:

  • Working with legacy Next.js (Pages Router only) → Use react-specialist instead
  • Building purely client-side React apps → Use react-specialist
  • Working on non-Next.js React frameworks (Remix, Gatsby) → Use appropriate specialist
  • Handling only UI/UX styling without Next.js-specific features → Use frontend-ui-ux-engineer
  • Simple static sites without server-side requirements → Consider simpler alternatives

Core Capabilities

Next.js 14+ Advanced Features

  • App Router: Mastery of Next.js 13+ App Router with nested layouts and route groups
  • Server Components: Strategic use of React Server Components vs Client Components
  • Server Actions: Modern data mutation patterns with server actions and progressive enhancement
  • Streaming Rendering: Implementing progressive UI loading with Suspense boundaries
  • Parallel Routes: Complex layouts with multiple content slots
  • Intercepting Routes: Modal dialogs and route overlays without navigation
  • Partial Prerendering: Hybrid rendering with static and dynamic content

Performance Optimization

  • Image Optimization: Next.js Image component with automatic optimization
  • Font Optimization: Next.js Font with layout shift prevention
  • Route Handlers: API routes for server-side data fetching
  • Middleware: Request/response interception and transformation
  • Static Generation: ISR (Incremental Static Regeneration) strategies
  • Bundle Analysis: Webpack Bundle Analyzer integration and optimization

Full-Stack Development

  • Data Fetching: Advanced caching patterns with fetch() and React's cache extension
  • Authentication: NextAuth.js, Clerk, or custom auth implementations
  • Database Integration: Prisma, Drizzle ORM with type-safe database access
  • State Management: Server components with client state synchronization
  • API Integration: REST and GraphQL clients with proper error handling
  • Type Safety: End-to-end TypeScript with API route type definitions

Decision Framework

Server Components vs Client Components Decision Matrix

ScenarioComponent TypeReasoningExample
Data fetching from database/APIServer ComponentNo client JS bundle, direct server accessProduct listing page
Interactive forms with stateClient ComponentNeeds useState, event handlersSearch filters, form inputs
Static content with no interactivityServer ComponentZero JS to client, faster loadBlog post content, docs
Third-party libraries using hooksClient ComponentReact hooks only work client-sideChart libraries, animations
Authentication-protected contentServer ComponentSecure token handling server-sideUser dashboard data fetch
Real-time updates (WebSocket)Client ComponentBrowser APIs requiredLive chat, notifications
Layout wrappers, navigationServer Component (default)Reduce client bundle sizeHeader, footer, sidebar
Modal dialogs, tooltipsClient ComponentNeeds browser event handlingConfirmation dialogs, dropdowns
SEO-critical contentServer ComponentServer-rendered HTML for crawlersProduct descriptions, landing pages
User interactions (clicks, hover)Client ComponentEvent listeners requiredButtons, tabs, accordions

Red Flags → Escalate to oracle:

  • Deeply nested Client/Server component boundaries causing prop drilling
  • Performance issues with large client bundles (>500KB)
  • Confusion about when to use 'use client' directive
  • Waterfall requests due to improper data fetching patterns
  • Authentication state synchronization issues across components

App Router vs Pages Router Decision Tree

Next.js Project Architecture
├─ New Project (greenfield)
│   └─ ✅ ALWAYS use App Router (Next.js 13+)
│       • Modern React Server Components
│       • Built-in layouts and nested routing
│       • Streaming and Suspense support
│       • Better performance and DX
│
├─ Existing Pages Router Project
│   ├─ Small project (<10 routes)
│   │   └─ Consider migrating to App Router
│   │       • Migration effort: 1-3 days
│   │       • Benefits: Future-proof, better performance
│   │
│   ├─ Large project (10+ routes, complex)
│   │   ├─ Active development with new features
│   │   │   └─ ✅ Incremental migration (recommended)
│   │   │       • New routes → App Router
│   │   │       • Legacy routes → Keep Pages Router
│   │   │       • Gradual migration over sprints
│   │   │
│   │   └─ Maintenance mode (minimal changes)
│   │       └─ ⚠️ Keep Pages Router
│   │           • Migration ROI too low
│   │           • No breaking changes needed
│   │
│   └─ Heavy use of getServerSideProps/getStaticProps patterns
│       └─ ✅ Plan migration but test thoroughly
│           • Server Components replace getServerSideProps
│           • generateStaticParams replaces getStaticPaths
│           • Refactor data fetching patterns
│
└─ Team Experience
    ├─ Team unfamiliar with Server Components
    │   └─ ⚠️ Training required before migration
    │       • Budget 1-2 weeks for learning curve
    │       • Start with small App Router features
    │
    └─ Team experienced with modern React
        └─ ✅ Proceed with App Router confidently

Best Practices Summary

Performance Optimization

  • Always use Next.js Image component for images
  • Use next/font for layout shift prevention
  • Implement dynamic imports for large components
  • Leverage Next.js caching and CDN optimization
  • Regularly analyze and optimize bundle size

SEO Best Practices

  • Implement comprehensive meta tags and Open Graph
  • Add JSON-LD for rich snippets
  • Use proper heading hierarchy and semantic elements
  • Create clean, descriptive URLs
  • Generate and submit XML sitemaps

Security Practices

  • Use secure authentication methods
  • Validate all inputs with Zod schemas
  • Implement CSRF tokens for forms
  • Add comprehensive security headers
  • Securely manage environment variables

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.67%
按下载量换算273

OpenCode

21.5%
按下载量换算205

Codex

16.13%
按下载量换算154

Cursor

12.17%
按下载量换算116

Gemini CLI

7.4%
按下载量换算71

windsurf

3.38%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills