Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

nextjs-fullstack-scaffoldNext.js fullstack scaffold 前端

Agent Skill

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

总安装

285

周安装

12

GitHub Stars

3

下载量

385
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/hopeoverture/worldbuilding-app-skills --skill nextjs-fullstack-scaffold

简介

用于快速搭建 Next.js 全栈项目的初始结构。

  • 包含目录组织、基础组件与依赖预配置。
  • 适合新项目启动时的标准化模板生成。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 可根据团队技术栈定制脚手架选项,提升初始化效率。
  • nextjs-fullstack-scaffold 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Next.js Full-Stack Scaffold

To scaffold a production-grade Next.js 16 full-stack application with modern tooling and best practices, follow these steps systematically.

Prerequisites Check

Before scaffolding, verify the target directory:

  1. Confirm the current working directory is where files should be generated
  2. Check if directory is empty or if user wants to override existing files
  3. Confirm user wants to proceed with scaffold generation

Step 1: Gather Project Information

Prompt the user for the following details using the AskUserQuestion tool:

  • Project name (for package.json)
  • Project description
  • Author name

Use sensible defaults if user prefers to skip.

Step 2: Create Folder Structure

Create the complete folder structure as defined in assets/folder-structure.txt. Generate all necessary directories by writing files to them (directories are created automatically).

Step 3: Generate Configuration Files

Create all configuration files in the project root. Consult references/stack-architecture.md for architectural guidance.

Essential Config Files

Generate these files using Write tool:

  • package.json - Use template from assets/templates/package.template.json, replacing placeholders
  • tsconfig.json - TypeScript config with strict mode and path aliases
  • next.config.ts - Next.js configuration with server actions
  • tailwind.config.ts - Tailwind v4 with dark mode and shadcn/ui colors
  • postcss.config.mjs - PostCSS with Tailwind plugin
  • eslint.config.mjs - ESLint v9 flat config
  • prettier.config.js - Prettier with Tailwind plugin
  • .gitignore - Standard Next.js ignore patterns
  • .env.example - Environment variable template
  • vitest.config.ts - Vitest test configuration
  • playwright.config.ts - Playwright E2E configuration

Step 4: Generate App Router Files

Create all Next.js app router files following RSC conventions.

Root Files

  • app/layout.tsx - Root layout with metadata and providers
  • app/page.tsx - Landing page
  • app/globals.css - Tailwind directives and CSS variables

Authentication Routes

  • app/(auth)/layout.tsx - Auth layout (centered)
  • app/(auth)/login/page.tsx - Login page with form

Protected Routes

  • app/(protected)/layout.tsx - Protected layout with auth check
  • app/(protected)/dashboard/page.tsx - Dashboard with stats
  • app/(protected)/profile/page.tsx - User profile page
  • app/(protected)/data/page.tsx - Data table page

API Routes

  • app/api/data/route.ts - Example API endpoint

Middleware

  • middleware.ts - Supabase auth middleware

Step 5: Generate UI Components

Create shadcn/ui components in components/ui/:

  • button.tsx, card.tsx, input.tsx, label.tsx, form.tsx, table.tsx, dropdown-menu.tsx, avatar.tsx

Create custom components:

  • components/providers.tsx - App providers with Toaster
  • components/layout/header.tsx - Header with navigation
  • components/layout/sidebar.tsx - Sidebar navigation
  • components/layout/nav.tsx - Navigation links
  • components/auth/login-form.tsx - Login form with RHF + Zod
  • components/auth/auth-button.tsx - Sign in/out button
  • components/dashboard/stats-card.tsx - Stats display card
  • components/dashboard/data-table.tsx - Interactive data table

All components must be TypeScript and accessible.

Step 6: Generate Lib Files

Create utility and action files:

Utilities

  • lib/utils.ts - cn() function and utilities
  • lib/prisma.ts - Prisma client singleton

Supabase Clients

  • lib/supabase/client.ts - Client-side Supabase client
  • lib/supabase/server.ts - Server-side Supabase client
  • lib/supabase/middleware.ts - Middleware helper

Server Actions (all must start with 'use server')

  • lib/actions/auth.ts - signIn(), signOut()
  • lib/actions/user.ts - updateProfile()
  • lib/actions/data.ts - CRUD operations

Validation Schemas (Zod)

  • lib/validations/auth.ts - Login/signup schemas
  • lib/validations/user.ts - Profile update schema
  • lib/validations/data.ts - Data CRUD schemas

Step 7: Generate Prisma Schema

Create prisma/schema.prisma:

  • PostgreSQL datasource with connection pooling
  • User model (id, email, name, timestamps)
  • Item model (example data model with relations)
  • Proper indexes and constraints

Create prisma/seed.ts:

  • TypeScript seed script
  • Sample users and items

Step 8: Generate Tests

Create test files:

  • tests/unit/utils.test.ts - Unit test for utilities
  • tests/integration/auth.test.tsx - Integration test for auth
  • tests/e2e/login.spec.ts - E2E test for login flow

Step 9: Generate CI Workflow

Create .github/workflows/ci.yml:

  • Lint, type check, test, build jobs
  • Run on push and PR

Step 10: Generate README

Create comprehensive README.md with:

  • Project overview and tech stack
  • Prerequisites and installation steps
  • Environment setup instructions
  • Database setup (Prisma commands)
  • Development and testing commands
  • Deployment guide
  • Folder structure explanation

Step 11: Final Verification

After generating all files:

  1. Confirm all files were created successfully
  2. List the folder structure for user review
  3. Provide next steps for installation and setup

Implementation Notes

TypeScript

  • All files must use TypeScript
  • Proper type annotations
  • No any types unless necessary

Server Components

  • Use Server Components by default
  • Only add "use client" when required for interactivity

Accessibility

  • Use shadcn/ui accessible components
  • Include ARIA labels
  • Ensure keyboard navigation

Security

  • Validate inputs with Zod
  • Use Server Actions for mutations
  • Never expose secrets to client

Consulting References

Throughout scaffolding:

  • Consult references/stack-architecture.md for patterns
  • Consult references/implementation-checklist.md to track progress

Completion

When finished:

  1. Summarize what was created
  2. List all major files and directories
  3. Provide next steps
  4. Offer to answer questions

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.12%
按下载量换算135

Claude

30.54%
按下载量换算118

Cursor

17.43%
按下载量换算67

Gemini CLI

9.33%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills