web-page
Scaffold a new page or component for the Lumen Next.js web app. TRIGGER when user asks to create, add, or build a new page, route, or dashboard section.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new page or component for the Lumen Next.js web app. TRIGGER when user asks to create, add, or build a new page, route, or dashboard section.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Diagnose Lumen CLI or MCP issues — common errors, SQLite problems, search returning no results, compilation failures. TRIGGER when user reports a bug, error, or unexpected behavior.
Pre-deploy verification for Lumen monorepo — type check, lint, test, build across all workspaces. TRIGGER when user says deploy, ship, release, pre-merge, or CI check.
Reference for navigating the Lumen turborepo — workspace commands, where things live, cross-app imports. TRIGGER when user asks about project structure, where to put files, or how workspaces connect.
Review changed code for Lumen project conventions — catches gotchas that linters miss like wrong hash function, FTS5 quoting, missing .js extensions, interface instead of type. TRIGGER when user asks to review, check, or audit code they wrote.
Search, query, and explore the Lumen knowledge base via MCP tools. TRIGGER when user invokes /lumen or asks about their knowledge base, sources, concepts, or graph.
Scaffold a new Lumen CLI command following the Commander.js register pattern. TRIGGER when user asks to create, add, or implement a new CLI command or subcommand.
| name | web-page |
| description | Scaffold a new page or component for the Lumen Next.js web app. TRIGGER when user asks to create, add, or build a new page, route, or dashboard section. |
Create new pages and components for apps/web/ following the project's conventions.
apps/web/src/app/dashboard/apps/web/src/components/CLAUDE.md — especially the apps/web/ rulespage.tsx, layout.tsx, error.tsx, loading.tsx, route.tsexport function for everything else — components, lib, utils'use client' only when you need hooks or event handlersrender prop, NOT asChild: <SidebarMenuButton render={<Link href="..." />}>src/lib/schemas.ts for all form inputsauth.api.getSession({ headers: await headers() })// apps/web/src/app/dashboard/<name>/page.tsx
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
export default function PageName() {
return (
<div className="space-y-6">
<div>
<h1 className="text-2xl font-bold tracking-tight">Page Title</h1>
<p className="text-muted-foreground mt-1 text-sm">
Description of what this page shows.
</p>
</div>
{/* Content here */}
</div>
);
}
@base-ui/react primitives, not Radix. Don't use asChild — it leaks to DOM.cn() from @/lib/utils for all className merging@theme inline {} in globals.css, not tailwind.config.tssrc/components/app-sidebar.tsx — add new routes there tooapp/dashboard/ which has a layout with session gate