一键导入
nextjs-generation
Use when implementing or reviewing Next.js App Router applications in go-orca workflows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when implementing or reviewing Next.js App Router applications in go-orca workflows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | nextjs-generation |
| description | Use when implementing or reviewing Next.js App Router applications in go-orca workflows. |
Use this skill when the workflow request targets a Next.js (or React App Router) web application. Pair with code-generation layout profiles and mcp-integration toolchain configuration.
Ship one coherent app per workflow. Common ORCA failure mode: multiple Pod tasks from different cycles leave overlapping artifacts (todo + RSS reader + Go backend + blog stubs in one repo).
go.mod, no pages/ Newsstand stubs, no Prisma RSS schemas unless explicitly requested.app/) exclusively for greenfield Next.js projects. Do not add pages/ unless migrating an existing Pages Router repo.page.tsx (or page.js) per route segment. Never leave both app/page.js and app/page.tsx — Next.js precedence is unpredictable and QA will block.app/layout.tsx. Remove duplicate layout.js / layout.tsx pairs.The Architect must schedule an early frontend Pod task that scaffolds:
package.json — strict JSON, real scripts (see below)tsconfig.json and next.config.ts (or .js)app/layout.tsx and app/page.tsxNo feature tasks may depend on files that reference packages not yet declared in package.json.
Scripts must invoke real tooling. Never use no-op stubs:
| Script | Required value (Next.js) | Forbidden |
|---|---|---|
dev | next dev | — |
build | next build | echo build successful, true, : |
start | next start | — |
test | jest or vitest run | echo no tests (unless tests truly deferred and documented) |
The engine preflight rejects fake build scripts before run_build validation runs.
next@13 in a new project).npm install <pkg>@latest or pnpm add <pkg>@latest) unless the constitution explicitly pins a version.If the workspace contains any of these config files, declare matching packages in package.json:
| Config file | Required packages |
|---|---|
postcss.config.js with tailwindcss | tailwindcss, autoprefixer, postcss in devDependencies |
tailwind.config.ts | tailwindcss, postcss, autoprefixer |
prisma/schema.prisma | @prisma/client, prisma |
app/actions.ts using Prisma | @prisma/client, prisma |
RSS/API routes using rss-parser | rss-parser |
Missing deps cause next dev to fail with Cannot find module even when pnpm install succeeds.
"use client" required at top of file when using: useState, useEffect, useReducer, event handlers, browser APIs (localStorage, window).Example minimal client page:
"use client";
import { useState, useEffect } from "react";
export default function TodoPage() {
// ...
}
For MVP/simple apps (todo lists, dashboards):
app/globals.css + class names) or inline styles to avoid Tailwind bootstrap overhead.postcss.config.js.Do not create postcss.config.js referencing tailwindcss without adding tailwindcss to package.json.
.tsx + TypeScript for new projects (tsconfig.json present)..js and .tsx page modules at the same route.components/; shared utilities in lib/.When tools.toolchains includes nextjs or node, the engine runs:
pnpm install / npm installnext buildPod must fix preflight blockers before requesting another install task.
For a simple todo app, cap at ~8 tasks:
Do not add RSS ingestion, Go backends, Docker, or blog posts unless the constitution requires them.
skills/code-generation/SKILL.md — Next.js layout profileskills/mcp-integration/SKILL.md — toolchain MCP wiringorca://schemas/nextjs-preflight — engine preflight checklistOffload expensive agent work to a go-orca cluster via the mcp-orca MCP bridge (workflows and ad-hoc persona runs).
Use this skill when implementing code for any module in this repository.
How to configure, connect to, and use MCP (Model Context Protocol) servers in go-orca workflows.
Model routing and structured-output rules for go-orca workflow personas (Director, Project Manager, Architect).
Techniques for writing clear, compelling technical blog posts and documentation.
Checklists and patterns for systematic QA review of code, APIs, and infrastructure changes.