Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

nextjs-expertNext.js expert 前端

Agent Skill

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

总安装

1,858

周安装

79

GitHub Stars

25

下载量

651
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill nextjs-expert

简介

nextjs-expert 辅助前端页面、组件和样式开发,适合生成或审查 React、Next.js 相关代码。

  • 适用于整理组件结构、定位布局问题或配合本地预览确认视觉效果的场景。
  • 通过 npx skills add 命令从 GitHub 安装,使用时需结合项目现有设计系统和路由方式。
  • 涉及页面改动时,应配合构建检查避免生成孤立片段。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Nextjs Expert

next js

When reviewing or writing code, apply these guidelines:

  • Follow Next.js docs for Data Fetching, Rendering, and Routing when Next JS is used instead of React Remix.

next js 14 general rules

When reviewing or writing code, apply these guidelines:

  • Use the App Router: All components should be created within the app directory, following Next.js 14 conventions.
  • Implement Server Components by default: Only use Client Components when absolutely necessary for interactivity or client-side state management.
  • Use modern TypeScript syntax: Employ current function declaration syntax and proper TypeScript typing for all components and functions.
  • Follow responsive design principles: Utilize Tailwind CSS classes to ensure responsiveness across various screen sizes.
  • Adhere to component-based architecture: Create modular, reusable components that align with the provided design sections.
  • Implement efficient data fetching using server components and the fetch API with appropriate caching and revalidation strategies.
  • Use Next.js 14's metadata API for SEO optimization.
  • Employ Next.js Image component for optimized image loading.
  • Ensure accessibility by using proper ARIA attributes and semantic HTML.
  • Implement error handling using error boundaries and error.tsx files.
  • Use loading.tsx files for managing loading states.
  • Utilize route handlers (route.ts) for API routes in the App Router.
  • Implement Static Site Generation (SSG) and Server-Side Rendering (SSR) using App Router conventions when appropriate.

next js 15 async request api rules

When reviewing or writing code, apply these guidelines:

  • Always use async versions of runtime APIs: typescript const cookieStore = await cookies() const headersList = await headers() const {isEnabled} = await draftMode()
  • Handle async params in layouts/pages: typescript const params = await props.params const searchParams = await props.searchParams

next js 15 component architec

Consolidated Skills

This expert skill consolidates 1 individual skills:

  • nextjs-expert

Iron Laws

  1. ALWAYS use the App Router (app/ directory) for all new Next.js 13+ routes — the Pages Router is legacy; mixing both creates conflicting rendering contexts and blocks Server Components.
  2. NEVER add 'use client' by default — every component is a Server Component unless it needs browser APIs, event listeners, or client state; unnecessary 'use client' negates streaming and server caching.
  3. ALWAYS await async Request APIs (cookies(), headers(), params, searchParams) in Next.js 15+ — synchronous access throws in strict mode and breaks PPR behavior.
  4. NEVER omit error.tsx and loading.tsx at route segments — without them, errors bubble to root and unmount the entire page; segment-level files enable granular error recovery and streaming UI.
  5. ALWAYS use next/image with fill and sizes for fluid images — hard-coded width/height on fluid images causes layout shift that fails Core Web Vitals (CLS).

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Using Pages Router for new routesCannot use Server Components, streaming, or cacheComponentsUse App Router (app/ directory) for all new routes; migrate incrementally
Adding 'use client' by defaultForces client-side rendering; inflates bundle; loses streaming and cachingKeep server-only; add 'use client' only when browser APIs or event handlers are required
Synchronous cookies() / headers() in Next.js 15+Throws in strict mode; breaks PPR; deprecated APIAwait all Request APIs: const cookieStore = await cookies()
Hard-coded width/height on fluid imagesLayout shifts fail CLS Core Web VitalsUse fill with sizes for fluid containers; exact dimensions only for fixed-size images
Missing error.tsx at route segmentsErrors bubble to root; entire page unmounts on any errorAdd error.tsx and loading.tsx at each segment; use Suspense for streaming

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.65%
按下载量换算219

Claude

32.68%
按下载量换算213

Cursor

18.11%
按下载量换算118

Gemini CLI

8.69%
按下载量换算57

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills