Skip to content
Back to skills

Web Page

ASecurity

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.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
ai-agentsgoreactnextjsapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add Sardor-M/lumen --skill web-page --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Page?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web Page
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sardor-m-web-page/badge)](https://www.skillsdirectory.com/skills/sardor-m-web-page)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
---

# Scaffold Web Page

Create new pages and components for `apps/web/` following the project's conventions.

## Before Scaffolding

1. Check existing routes in `apps/web/src/app/dashboard/`
2. Check existing components in `apps/web/src/components/`
3. Read `CLAUDE.md` — especially the `apps/web/` rules

## Key Rules

- **Default exports** only for Next.js framework files: `page.tsx`, `layout.tsx`, `error.tsx`, `loading.tsx`, `route.ts`
- **`export function`** for everything else — components, lib, utils
- **`'use client'`** only when you need hooks or event handlers
- **shadcn base-ui uses `render` prop, NOT `asChild`**: `<SidebarMenuButton render={<Link href="..." />}>`
- **Zod schemas** in `src/lib/schemas.ts` for all form inputs
- **Session check** in server components: `auth.api.getSession({ headers: await headers() })`

## Page Template

```tsx
// 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>
    );
}
```

## Gotchas

- shadcn components use `@base-ui/react` primitives, not Radix. Don't use `asChild` — it leaks to DOM.
- `cn()` from `@/lib/utils` for all className merging
- Tailwind v4 — uses `@theme inline {}` in `globals.css`, not `tailwind.config.ts`
- The sidebar nav items are in `src/components/app-sidebar.tsx` — add new routes there too
- Protected routes live under `app/dashboard/` which has a layout with session gate

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.