agentsclimarketplace

Web frontend builder

Skill OpenElementsLabs/agentic-support-coding/skills/web-frontend-builder

Build and develop web frontend applications using the Open Elements tech stack (Next.js, React, TypeScript, Tailwind CSS, shadcn/ui, pnpm). Use when the user asks to create a new frontend project, add pages or components, set up routing, or develop features in a web application. Not for simple HTML snippets — use for real application development.From its SKILL.md

Install
npx -y skills add OpenElementsLabs/agentic-support-coding --skill web-frontend-builder

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

9.4 KB, as published. Nobody here has run it

Web Frontend Builder

Build production-grade web frontend applications using the Open Elements tech stack. Follow these steps to create or extend a frontend project.

Stack: Next.js + React 18 + TypeScript (strict) + Tailwind CSS + shadcn/ui + pnpm

IMPORTANT: All conventions from the typescript-best-practices skill apply. When in doubt, defer to that skill.

Design Guidelines

For design direction and visual quality, apply the frontend-design skill. Key principles:

  • Every page and component must have a polished, professional appearance — even for early-stage projects.
  • Use shadcn/ui components instead of bare HTML elements.
  • Apply Open Elements brand colors and typography via the open-elements-brand-guidelines skill.
  • Avoid generic AI aesthetics: no excessive centered layouts, purple gradients, uniform rounded corners, or default Inter font.

Creating a New Project

Step 1: Scaffold with Next.js

pnpm create next-app <project-name> --typescript --tailwind --eslint --app --src-dir --import-alias "@/*"
cd <project-name>

Step 2: Pin Tool & Runtime Versions

Pin the Node.js and pnpm versions so they cannot drift between your machine and CI. Keep one source of truth per tool (full rationale in the typescript-best-practices skill):

  • .nvmrc — the Node version for development and CI (a pin, e.g. 24). Activate it locally with nvm use (or fnm use); CI reads the same file.
  • package.json → packageManager — the exact pnpm version (e.g. "[email protected]"). Run corepack enable once so this version is used automatically; CI reads it too.
  • package.json → engines.node — the supported Node range (e.g. ">=20"). Use a lower-bound range, not a single pin. (Most relevant for published libraries; for an application it documents the supported range.)
  • .npmrc — only when publishing or installing from a private registry. Reference ${NPM_TOKEN}; never commit an actual token.
// package.json
{
  "packageManager": "[email protected]",
  "engines": {
    "node": ">=20"
  }
}

Do not repeat these version numbers anywhere else — the github-actions-setup skill reads them from .nvmrc and packageManager directly instead of hardcoding.

Step 3: Configure Next.js

Edit next.config.ts to set standalone output (required for Docker deployments):

const nextConfig = {
  output: 'standalone',
};

IMPORTANT: Next.js evaluates next.config.ts — including rewrites() — at build time. Any environment variable used in next.config.ts (e.g., BACKEND_URL for API rewrites) must be available during pnpm build. In Docker, this means declaring it as a build argument (ARG) and setting it as an environment variable (ENV) in the Dockerfile before the build step. A runtime-only environment: entry in docker-compose.yml is too late — the rewrite rules are already baked into the build output. See the fullstack-architecture-setup skill for the Dockerfile and Docker Compose configuration.

Step 4: Enable Strict TypeScript

Verify tsconfig.json has "strict": true. This is non-negotiable.

Step 5: Initialize shadcn/ui

pnpm dlx shadcn@latest init

When prompted, select the defaults that match the project's design direction. Then install the components needed:

pnpm dlx shadcn@latest add button card input table dialog

Add more components as needed during development.

Step 6: Configure shadcn MCP Server

Add to the project's .mcp.json:

{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["shadcn@latest", "mcp"]
    }
  }
}

Step 7: Set Up Brand Colors and Semantic Tokens

Configure Open Elements brand colors in tailwind.config.ts so they are available as utility classes. Use the open-elements-brand-guidelines skill to get the exact color values.

IMPORTANT: shadcn/ui components reference semantic CSS custom properties (e.g., --color-background, --color-popover, --color-border). These must be defined in the @theme block of src/app/globals.css, mapped to the project's brand colors. Without them, dialogs, dropdowns, tables, and inputs will render with transparent backgrounds and missing borders.

Required semantic tokens (each with -foreground counterpart where applicable):

TokenPurpose
background / foregroundMain page background and text
card / card-foregroundCard surfaces
popover / popover-foregroundDialogs, dropdowns, popovers
muted / muted-foregroundHover states, disabled elements, secondary text
accent / accent-foregroundHighlighted items (e.g., hovered select option)
primary / primary-foregroundPrimary action buttons
secondary / secondary-foregroundSecondary action buttons
destructive / destructive-foregroundDelete/error buttons
borderAll component borders (tables, cards, inputs)
inputInput field borders
ringFocus ring indicators

See the shadcn/ui Theming docs for details. Never hardcode colors in component files — always use semantic tokens.

Step 8: Verify Setup

pnpm dev

Confirm the dev server starts without errors.

Developing Features

Adding Pages

Create pages in src/app/ following Next.js App Router conventions:

  • src/app/page.tsx — home page
  • src/app/<route>/page.tsx — additional pages
  • src/app/layout.tsx — root layout with consistent header/navigation and footer

IMPORTANT: Pages that fetch data from a backend API must not be statically pre-rendered. Use export const dynamic = 'force-dynamic' to ensure request-time rendering.

Adding Components

Place reusable components in src/components/. Follow these conventions:

  • One component per file, named in PascalCase matching the export
  • Use shadcn/ui components as building blocks — do not create bare HTML equivalents
  • Use shadcn/ui Blocks as starting points for layout structures (sidebar shells, dashboard layouts)
  • Apply consistent spacing using Tailwind's spacing scale (p-4, p-6, gap-4, gap-6)
  • Constrain content width for readability (max-w-screen-xl mx-auto)
  • Ensure responsive design with Tailwind's responsive prefixes (sm:, md:, lg:)

Internationalization

All user-facing text must be i18n-ready from the start:

  • Extract all display strings into a central location (constants file or translation file)
  • Use consistent key naming (page.section.element)
  • Use parameterized messages with placeholders ("Welcome, {name}" not "Welcome, " + name)
  • Keep date, number, and currency formatting locale-aware (Intl.DateTimeFormat, Intl.NumberFormat)

Error Handling

  • Log detailed errors to the browser console (HTTP status, endpoint URL, error body)
  • Never show raw backend error messages to the user — display simplified, user-friendly messages
  • Centralize backend error handling in a shared API client layer

Testing

Use the testing framework present in the project (Jest, Vitest, or Node test runner):

pnpm test
  • Name tests descriptively: it('should return empty array when no items exist')
  • Document what each test verifies — the describe block names the unit and the it description states the scenario and expected outcome, so the test is understandable without reading its body
  • Group related tests with describe blocks
  • Avoid excessive mocking — prefer simple stub/dummy implementations
  • New features must reach at least 70% test coverage on the added or changed code (see software-quality.md); measure with pnpm test --coverage

Common Commands

  • Activate the pinned Node version: nvm use (reads .nvmrc)
  • Enable the pinned pnpm version (once): corepack enable (reads packageManager)
  • Install dependencies: pnpm install
  • Dev server: pnpm dev
  • Build: pnpm build
  • Run tests: pnpm test
  • Lint: pnpm lint
  • Type check: pnpm tsc --noEmit

Quality Checklist

Before considering a feature complete, verify:

  • pnpm build succeeds without errors
  • pnpm lint passes
  • pnpm tsc --noEmit reports no type errors
  • All pages are responsive (mobile, tablet, desktop)
  • No bare HTML elements where shadcn/ui components exist
  • No hardcoded user-facing strings — all are i18n-ready
  • No console.log in production code — use console.error, console.warn, console.info
  • No sensitive data logged to the browser console
  • Standalone output configured in next.config.ts
  • Brand colors applied via Tailwind config
  • All shadcn/ui semantic CSS tokens defined in globals.css @theme block

Reference

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.