Mayrlabs Internal Nextjs

Extracted Next.js standards from MayR Labs GEMINI.md Use when this capability is needed.

tomevault-io db6c7e6 2 files · 1.6 KB Updated

File contents

MayR Labs Internal: Next.js Standards

File Structure (STRICT)

Each route must follow:

/route
  page.tsx
  _components/
  _hooks.ts
  _constants.ts
  _types.ts
  _utils.ts

Rules

  • page.tsx must be thin (composition only)
  • Business logic → hooks or services
  • Components:
    • Dumb (UI) vs Smart (logic) separation
    • As much as possible, always use data files at @/lib/data/**.ts to define data used in applications

Rendering

  • Prefer Server Components by default
  • Use Client Components only when necessary:
    • interactivity
    • browser APIs

SEO (MANDATORY)

  • Every page must define:
    • metadata
    • proper titles & descriptions
  • No lazy SEO. Ever.

Source: MayR-Labs/skills — distributed by TomeVault.

tomevault-io/skills-registry/tree/main/mayr-labs--skills--mayrlabs-internal-nextjs commit db6c7e64e3

Frequently asked questions

npx skillmds@latest add tomevault-io/mayrlabs-internal-nextjs