next-generate-skill

next-generate-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 157 tokens per session (4,550 once invoked), scanned A, original, Apache-2.0.

A project setup guide for Next.js 14 or later, a React-based framework for building websites with server rendering and server-side APIs. It uses the App Router, TypeScript, and Zustand for shared client state.

In plain words
What is it for?
Use it to start a Next.js full-stack app, configure server and browser requests, add API routes and authentication middleware, set up rendering modes, and prepare SEO metadata.
Why use it?
It gives a defined structure for projects that combine browser pages, server-rendered content, API routes, authentication checks, and search-engine metadata instead of assembling these parts manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to start a Next.js full-stack app, configure server and browser requests, add API routes and authentication middleware, set up rendering modes, and prepare SEO metadata.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/next-generate-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill next-generate-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for next-generate-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/next-generate-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/next-generate-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/next-generate-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/next-generate-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for next-generate-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/next-generate-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/next-generate-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,550 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00157 $0.04550
Opus 5.5 $0.00063 $0.01820
Sonnet 5.5 $0.00031 $0.00910
Haiku 4.5 $0.00016 $0.00455

Measured 25d ago against content hash 302f3814ca6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

next-generate-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (references/code-examples/app/api/auth/login/route.ts, references/code-examples/app/api/users/route.ts, references/code-examples/stores/appStore.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

frontend/react/next-generate-skill/SKILL.md · 457 lines

How it starts

The opening of the file, as written. The whole thing — 457 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Next.js Generate Skill

When to Use

  • 用户明确提到 Next.js / Next / Nextjs
  • 需要 SSR / SSG / ISR / RSC 渲染模式
  • 需要 SEO 优化(企业官网、内容站、营销页)
  • 需要 API Routes(前后端同仓库)
  • 需要认证中间件的全栈项目

When NOT to Use

  • 纯 SPA(无 SSR 需求)→ 使用 react-generate-skill
  • Vue / Nuxt 生态 → 使用 nuxt-generate-skill
  • 移动端 App → 使用 react-native-generate-skill
  • 小程序 → 使用 uniapp-app-generate-skill
  • Pages Router 项目(已过时,不支持)

核心能力清单

能力 说明
三轨请求策略 Server fetch / Client request.ts / Server Actions
App Router 优先 Server Components 默认,按需 'use client'
API Routes app/api/ Route Handlers(GET/POST/...)
Metadata API 静态 Metadata + generateMetadata 动态 SEO
认证中间件 middleware.ts(Edge Runtime)+ cookie 验证
混合渲染 RSC 预取数据 + Client Component 交互
Route Groups (auth) / (dashboard) 分组布局
环境变量 .env.local + NEXT_PUBLIC_ 前缀控制

重要:本 Skill 严格依赖 frontend-request-skill

本 Skill 不重新发明请求层。Client Components 中的 HTTP / 错误处理 / 鉴权相关代码必须复用 frontend-request-skill 的标准实现:

next-generate-skill 输出 对应 frontend-request-skill 标准
lib/api/client.ts frontend-request-skill/references/frontend-spec.md(fetch 标准实现)
lib/services/auth.service.ts frontend-request-skill/references/auth-patterns.md(Token 刷新队列)
lib/utils/{error,toast,auth}.ts frontend-request-skill/references/error-handling.md + frontend-request-skill/references/auth-patterns.md
lib/config/{api,error}.config.ts frontend-request-skill/references/frontend-spec.md(BASE_URL + ERROR_CODE_MAP)
lib/hooks/useAuth.ts frontend-request-skill/references/auth-patterns.md
响应信封 { code, message, data } 与 各 init-skill 内置的统一响应规范 一致

接入本 Skill 前,请先阅读 frontend-request-skill 的 SKILL.md 与核心 reference。


Overview

本技能将一个模糊的 Next.js 项目想法转化为生产级的 Next.js 14+ App Router + TypeScript 全栈项目,包含完整的目录结构、Server/Client 组件分层、API Routes、认证中间件和 SEO 策略。

  1. Pre-development:需求澄清,输出 spec.md
  2. Project Initialization:脚手架初始化、目录结构、CLAUDE.md、AGENTS.md
  3. Development:请求层三轨集成、认证中间件、核心页面、API Routes
  4. Post-development:next lint + next build 通过

Read the full file on GitHub · 457 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed 302f3814ca6d
  2. 2mo ago First seen · 457 lines · 157 tokens per session scan A 81cf320b50fd

Subscribe to this mod's changes

next-generate-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 157 tokens to every session and 4,550 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

next-generate-skill compared with skills from other repositories

next-generate-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
next-generate-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A157Claude Code, Codex
langbot-devlangbot-app/LangBotSkill19ktodayApache-2.0A136Claude Code, Codex
trigger-realtime-and-frontendtriggerdotdev/trigger.devSkill17kyesterdayApache-2.0A148Claude Code, Codex
devtools-event-clientTanStack/devtoolsSkill519todayMITA79Claude Code, Codex
airflow-pluginsastronomer/agentsSkill465todayApache-2.0A147Claude Code
walkeros-create-destinationelbwalker/walkerOSSkill3546d agoMITA77Claude Code
isolating-product-facade-contractsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex