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.
npx skills add jiushiwon/wg-skills --skill next-generate-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/next-generate-skill)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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 策略。
- Pre-development:需求澄清,输出 spec.md
- Project Initialization:脚手架初始化、目录结构、CLAUDE.md、AGENTS.md
- Development:请求层三轨集成、认证中间件、核心页面、API Routes
- Post-development:
next lint+next build通过
What ships with it
22 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 2.3 KB
- references/agents-md-template.md 5.8 KB
- references/api-integration.md 16 KB
- references/claude-md-template.md 1.4 KB
- references/code-examples/app/(auth)/login/page.tsx 2.1 KB
- references/code-examples/app/(dashboard)/users/page.tsx 1.4 KB
- references/code-examples/app/(dashboard)/users/UserTable.tsx 5.2 KB
- references/code-examples/app/api/auth/login/route.ts 2.3 KB runs code
- references/code-examples/app/api/users/route.ts 2.7 KB runs code
- references/code-examples/app/layout.tsx 1.2 KB
- references/code-examples/components/AppLayout.tsx 3.0 KB
- references/code-examples/README.md 1.1 KB
- references/code-examples/stores/appStore.ts 776 B runs code
- references/code-examples/stores/userStore.ts 1.8 KB runs code
- references/code-examples/types/api.ts 359 B runs code
- references/code-examples/types/user.ts 723 B runs code
- references/component-standards.md 5.3 KB
- references/middleware-auth.md 4.7 KB
- references/next-config-template.md 2.9 KB
- references/next-conventions.md 5.9 KB
- references/project-structure.md 7.4 KB
- references/seo-strategy.md 4.8 KB
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.
- 25d ago Changed 302f3814ca6d
- 2mo ago First seen · 457 lines · 157 tokens per session scan A 81cf320b50fd
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.
next-generate-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| next-generate-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 157 | Claude Code, Codex |
| langbot-devlangbot-app/LangBot | Skill | 19k | today | Apache-2.0 | A | 136 | Claude Code, Codex |
| trigger-realtime-and-frontendtriggerdotdev/trigger.dev | Skill | 17k | yesterday | Apache-2.0 | A | 148 | Claude Code, Codex |
| devtools-event-clientTanStack/devtools | Skill | 519 | today | MIT | A | 79 | Claude Code, Codex |
| airflow-pluginsastronomer/agents | Skill | 465 | today | Apache-2.0 | A | 147 | Claude Code |
| walkeros-create-destinationelbwalker/walkerOS | Skill | 354 | 6d ago | MIT | A | 77 | Claude Code |
| isolating-product-facade-contractsPostHog/posthog | Skill | 41k | today | none | A | 76 | Claude Code, Codex |