new-page
Installation
SKILL.md
Create a new page at src/app/(public)/$ARGUMENTS/page.tsx.
Rules (from CLAUDE.md)
- Keep the page as a Server Component unless interactivity is needed
- Push "use client" to leaf components only
- Use
tenantConfigfor any tenant-specific text (never hardcode) - Use shadcn/ui components and semantic CSS classes (bg-primary, text-muted-foreground)
- Check feature flags before rendering optional sections
- Follow the design chain: Tokens -> Tailwind -> Radix/shadcn -> Domain -> Patterns -> Pages
Process
Before creating:
- Read
src/lib/config/tenant.config.tsfor available config values - Check existing pages in
src/app/(public)/for patterns to follow - Create the page file following conventions
- If the page needs client interactivity, create a separate client component in
src/components/and import it from the server page