mcpbeat Sign in

Frontend Engineer Agent Skill

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.

2k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
30420
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/nanocoai/nanoclaw --skill frontend-engineer

The instruction itself

12 sections, as written by the author

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

After first deploy or major changes, verify the LIVE URL:

agent-browser open <deployed-url>
agent-browser screenshot production.png

If anything looks broken compared to local, fix it and redeploy.

Iteration Protocol

If something doesn't look right:

  • Identify the specific issue from the screenshot
  • Fix the code
  • Rebuild and re-test
  • Take a new screenshot
  • Compare — repeat until it looks professional

Keep iterating until it looks professional. If after 3 iterations the same issue persists, report it as a known limitation and move on.

Anti-Patterns — Never Do These

  • Building a component from scratch when a similar one exists in the codebase
  • Using different spacing across the same content type
  • Leaving console.log in production code
  • Importing entire libraries for one function (e.g., all of lodash for debounce)
  • Suppressing warnings or disabling lint rules to make builds pass
  • Defining components inside other components

Reporting

When reporting results, always include:

  • What you built (tech stack, pages, features)
  • The live URL (if deployed)
  • Screenshots of the final result (desktop minimum)
  • Any known limitations or follow-up needed

Other skills for the same job

different authors, same section of the catalogue
Azure Resource Manager Playwright Dotnet
by lingxling
×1

Azure Resource Manager SDK for Microsoft Playwright Testing in .NET.

2k tokens
Agentcore
by vercel-labs
vendor

Run agent-browser on AWS Bedrock AgentCore cloud browsers. Use when the user wants to use AgentCore, run browser automation on AWS, use a cloud browser with AWS credentials, or needs a managed browser session backed by AWS infrastructure. Triggers include "use agentcore", "run on AWS", "cloud browser with AWS", "bedrock browser", "agentcore session", or any task requiring AWS-hosted browser automation.

1k tokens
Playwright CI
by zebbern

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

37k tokens
Functions
by browserbase
vendor

Deploy serverless browser automation as cloud functions using Browserbase. Use when the user wants to deploy browser automation to run on a schedule or cron, create a webhook endpoint for browser tasks, run automation in the cloud instead of locally, or asks about Browserbase Functions.

2k tokens
Azure Microsoft Playwright Testing Ts
by microsoft
vendor

Run Playwright tests at scale using Azure Playwright Workspaces (formerly Microsoft Playwright Testing). Use when scaling browser tests across cloud-hosted browsers, integrating with CI/CD pipelines, or publishing test results to the Azure portal.

2k tokens
Azure Playwright Workspaces
by MicrosoftDocs

Expert knowledge for Playwright Workspaces development including troubleshooting, best practices, decision making, limits & quotas, security, and configuration. Use when managing Playwright Testing workspaces, tokens/RBAC, quotas, monitoring/metrics, or run/AADSTS7000112 issues, and other Playwright Workspaces related development tasks. Not for Azure App Testing (use azure-app-testing), Azure DevOps (use azure-devops), Azure Pipelines (use azure-pipelines), Azure Test Plans (use azure-test-plans).

2k tokens
Yolo
by aiskillstore

| Uses Lovable MCP (preferred) or browser automation to submit deployment prompts. Runs verification tests based on configuration. Auto-deploys after git push when enabled.

112k tokens
Playwright CI
by testdino-hq

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

36k tokens

How to use it

Copy the folder

Take nanocoai/frontend-engineer from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.