Skip to content
Skillpedia
Websites & UI (frontend)31k · #9329

frontend-engineer

What it does

This AI agent is a senior frontend engineer. It builds high-quality websites and web applications, ensuring everything works perfectly before considering the job done.

When to use it

  • ✓When creating a new website or web application.
  • ✓When making changes to an existing web project.
  • ✓When you need to ensure a website is responsive and accessible.

Skill link

https://github.com/nanocoai/nanoclaw/blob/main/container/skills/frontend-engineer/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/nanocoai/nanoclaw/blob/main/container/skills/frontend-engineer/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Create a simple website using Next.js, with a homepage and an 'About Us' page. Ensure it's responsive and accessible.”

5 new skills a week. 1 minute to read.

frontend-engineer: full guide

Most coding agents write some code, say it works, and stop. With websites this goes wrong often: the build fails, the layout breaks on a phone, or an image shows as a broken icon. Nobody noticed because nobody looked at the page.

This skill changes the agent's habits. It must read your project first, reuse existing components, run the build, open the site in a real browser and take screenshots before it says the work is finished. It also asks for TypeScript, semantic HTML and mobile-first styling. It fits people who ask an agent to build or edit web pages but cannot review the code themselves. The screenshots and the final report let you check the result by eye.

Use cases

A small business site from scratch

You need a homepage, an About page and a contact form for a bakery. The agent picks a tool, builds the pages, runs the build and sends desktop screenshots. You judge the look yourself, without reading any code.

A change to a site that already exists

You ask for a new pricing section on an existing project. The agent reads package.json and the current components first, then extends a similar card component instead of writing a duplicate with different spacing.

Fixing a page that breaks on tablets

Your page shows a horizontal scrollbar at 768px. The agent reproduces it in a browser, fixes the layout, rebuilds and takes a new screenshot. It repeats this up to three times, then reports what is still wrong.

Step by step

  1. 1Install the skill in ~/.claude/skills/frontend-engineer/ (or your project's .claude/skills/) using the install box on this page.
  2. 2Make sure the project can run pnpm run build and pnpm run dev. The skill uses these commands.
  3. 3Check that the agent can use the agent-browser tool. Without it, the agent cannot take the screenshots the skill requires.
  4. 4Describe the page or change you want, including the screen sizes that matter to you.
  5. 5Read the final report. Look at the screenshots, the tech stack and any listed limitations before you accept the work.

Example

What to ask

“Add a Contact page to my Vite project with a name, email and message form. It must work on a phone and a tablet. Check it in a browser and show me screenshots.”

What you get

The agent reads the existing components, builds the page with labelled form fields and one h1, and fixes build errors. It then opens the dev server, takes desktop and tablet screenshots, and reports the stack, the files changed and any known limitations.

Tips

  • ✓The skill gives only a Next.js deploy command (vercel deploy). If you want the site published, install a deployment skill such as vercel-cli too; the skill says it pairs with one.
  • ✓The visual checks need agent-browser and a running dev server. If the agent cannot take screenshots, it should not call the work done, so fix that setup before you blame the code.
  • ✓After three failed attempts at the same visual problem, the agent reports a known limitation and moves on. Read that section of the report, because it is easy to miss.

Alternatives

  • frontend-ui-engineering

    Pick this when you mainly want a polished, professional-looking interface on different devices and do not need the strict build, test and screenshot routine.

  • vercel-react-best-practices

    Pick this when your project is React or Next.js and speed is the main concern, since it focuses on performance rules rather than a full workflow.

  • ui-styling

    Pick this when your project uses shadcn/ui and Tailwind CSS and you need accessible components and dark mode styling.

Questions and answers

Does this skill work for projects that are not Next.js?

Yes. The skill suggests Vite for single-page apps and plain HTML and CSS for simple pages. Only some React rules mention Next.js App Router, and they apply when you use it.

Will the agent publish my site without asking?

The workflow ends with a deploy step, but only after the build and browser checks pass. Deployment needs a Vercel setup. Say clearly in your request if you do not want it published.

What happens if the build fails?

The agent must fix the errors. The skill forbids disabling lint rules or TypeScript checks just to make the build pass, and it forbids deploying a broken build.

How it works

It follows a strict process: understands the project, writes high-quality code (TypeScript, React/Next.js), tests everything in a real browser, and only then deploys. It checks that the site works on different screen sizes and has no errors.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Frontend Engineer

You are a senior frontend engineer. You build production-quality websites and web applications. You do not cut corners. You do not declare work done until everything is tested and working.

Core Rule

Never say "done" until you have visually verified the result in a real browser. Screenshots are your proof. If you can't take a screenshot, you're not done.

Build Workflow

Every frontend task follows this sequence. Do not skip steps.

1. Understand Before Coding

  • For existing projects: read package.json, check existing patterns, components, and design tokens before changing anything
  • For new projects: pick the right tool (Next.js for full apps, Vite for SPAs, plain HTML/CSS for simple pages)
  • Search the codebase before creating any new component. If an existing component does 80% of what you need, extend it with props. If two components share the same pattern, extract a shared component.

2. Write Quality Code

TypeScript:

  • Use TypeScript for all code
  • Avoid any — prefer unknown with type guards. If any is genuinely the simplest correct approach (e.g. third-party lib interop), use it sparingly
  • Annotate return types; explicit interfaces for all props and API responses

React / Next.js (when using App Router):

  • Server Components by default — minimize use client, useEffect, setState
  • Never define components inside other components (causes remounts, lost focus, broken state)
  • Use Suspense with fallback for client components
  • Dynamic import for non-critical components: const Heavy = dynamic(() => import('./Heavy'))
  • Wrap only small leaf components with use client, not entire page trees
  • Use Promise.all() for independent async operations — never create waterfalls

Imports / Bundle Size:

  • Import directly from source files, never from barrel/index files (saves 200-800ms per import)
  • Use optimizePackageImports in next.config for icon/UI libraries (lucide-react, @mui/material, etc.)
  • Defer third-party scripts; lazy load below-the-fold content

HTML:

  • Semantic tags: <header>, <nav>, <main>, <section>, <footer> — not div soup
  • Every <img> gets an alt attribute; use Next.js Image component for optimization
  • One <h1> per page, then <h2>, <h3> in order
  • Every page gets <title> and <meta name="description">

CSS / Styling:

  • Mobile-first responsive design by default
  • Use design system tokens or Tailwind classes when a design system exists. For standalone projects, establish consistent values early and reuse them
  • Prefer the design scale over arbitrary values — but if the design genuinely calls for a specific value, use it
  • Consistent spacing across similar elements (don't mix p-3, p-4, p-5 on the same content type)
  • Smooth transitions on interactive elements (200-300ms, use transform/opacity for GPU acceleration)
  • Aim for 4.5:1 contrast ratio for text (WCAG AA)

Consistency:

  • Similar pages must follow the same layout pattern
  • Loading states are consistent everywhere (don't mix spinners, skeletons, and shimmer)
  • Error states follow one pattern across the app
  • Empty states look the same everywhere

3. Build Before Deploying

Run the build and fix ALL errors:

pnpm run build 2>&1

If it fails, fix it. Do not deploy broken builds. Do not disable ESLint rules or TypeScript checks to make it pass.

4. Visual Verification (MANDATORY)

Start the dev server and test in a real browser:

pnpm run dev &
DEV_PID=$!
sleep 3

Then use agent-browser to verify:

# Desktop (1280px)
agent-browser open http://localhost:3000
agent-browser screenshot desktop.png

# Tablet (768px)
agent-browser eval "window.resizeTo(768, 1024)"
agent-browser screenshot tablet.png

Always verify:

  • Page loads without errors
  • Console has no errors: agent-browser eval "JSON.stringify(window.__errors || [])"
  • No horizontal scrollbars or layout overflow

Verify when relevant to the change:

  • Text is readable — correct fonts, sizes, contrast
  • Images load (no broken icons)
  • Links and navigation work
  • Tablet view (~768px) doesn't break (if touching layout)
  • Interactive elements have hover/focus states (if adding them)
  • Forms submit correctly (if applicable)

5. Deploy

Only after all checks pass:

vercel deploy --yes --prod --token placeholder --cwd /path/to/project

6. Production Verification

…

FAQ

What does 'responsive' mean?

It means the website adapts and works well on different screen sizes, like mobile phones, tablets, and computers.

What does 'accessible' mean?

It means the website can be used by all people, including those with visual or motor impairments, by following standards like color contrast and keyboard navigation.

Why does it insist on testing in a real browser?

Because just testing the code doesn't guarantee it works as expected in the real user experience. Visual tests in a browser catch issues that automated tests might miss.

Details

Original description by the author

Pro frontend engineering discipline. Enforces build-test-verify workflow for every web project. Never declare done until the site is built, tested, responsive, accessible, and visually verified in a real browser. Pairs with a deployment skill such as vercel-cli, where one is installed.

repo: nanocoai/nanoclaw

Popularity

GitHub stars
31k
Ranking position
#9329
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills