frontend

Guides client-side development across Next.js 16, React 19, Tailwind 4, CRA, and MUI codebases.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/Harbour-Emerge/skills --skill frontend-harbour-emerge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend
Source: https://github.com/Harbour-Emerge/skills/tree/main/frontend
Command: npx skills add https://github.com/Harbour-Emerge/skills --skill frontend-harbour-emerge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Frontend work across this estate spans four very different codebases — two Next.js 16 / React 19 / Tailwind 4 apps, a legacy CRA + MUI app, and a static artboard generator — and generic React instincts are wrong in at least one of them. This Skill encodes the per-repo conventions, traps, and verified facts so changes match the file being edited instead of an assumed house style. ## Core Features & Use Cases - Per-repo stack maps: Framework, styling, and test setup for Survey-Forms, CleverClass, phd-monitoring, and Emerge-Design, including which repos have no tests at all. - Convention enforcement: Tailwind 4 CSS-first theming (no tailwind.config.ts), the tw- prefix in Tailwind 3, Radix primitives and cn() in CleverClass, colocated tests in Survey-Forms. - Trap documentation: The one-origin session rule, output: 'standalone' deploy requirement, stale .env.example files, cosmetic client-side auth checks, and generated artboards that must never be edited directly. - Use Case: When asked to add a form to CleverClass, follow its react-hook-form + zod + Radix conventions and run npm run build as the only available verification, rather than importing patterns from another repo. ## Quick Start Use the frontend skill to add a new validated form component to the CleverClass admin section following its existing conventions.

Frequently Asked Questions about frontend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Tailwind 4 in a Next.js 16 app?

Tailwind 4 here is CSS-first: there is no tailwind.config.ts and you should not create one. The theme lives in @theme blocks inside CSS files, and custom variants are declared with @custom-variant for use inline in class names.

How do I add a new screen to the Emerge-Design artboard generator?

Add a screen module in src/screens/ exporting a render function and CSS string, register it in src/registry.mjs, then run node build.mjs. Never edit the generated .dc.html files directly because the build deletes and regenerates all of them.

Why does the Next.js Docker build fail with a COPY error on .next/standalone?

The Dockerfile copies .next/standalone, which Next only emits when output: 'standalone' is set in next.config.ts. Removing that line changes nothing locally but fails minutes into the deploy build, so it must stay.

Can I use a separate API hostname with a Next.js frontend?

Not in Survey-Forms: the API and frontend share one origin so the anonymous session cookie stays HttpOnly and SameSite=Lax with no CORS or CSRF token. Splitting the origin silently stops the cookie from being sent and breaks sessions.

Is client-side middleware auth a security boundary in Next.js?

No. CleverClass middleware.ts only checks cookie presence to gate /admin as a UX measure; real authorization is server-side permission strings. Never present or rely on client-side checks as protection.

Why does my .env.example variable have no effect in a CRA app?

In phd-monitoring the declared REACT_APP_* variables are read by nothing; grep finds zero usages and all API URLs are hardcoded in src/api/urls.js. Always grep for actual consumption before trusting an .env.example file.