container/skills/frontend-engineer/SKILL.md
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. Use alongside vercel-cli for production-quality deployments.
npx skillsauth add qwibitai/nanoclaw frontend-engineerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
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.
Every frontend task follows this sequence. Do not skip steps.
package.json, check existing patterns, components, and design tokens before changing anythingTypeScript:
any — prefer unknown with type guards. If any is genuinely the simplest correct approach (e.g. third-party lib interop), use it sparinglyReact / Next.js (when using App Router):
use client, useEffect, setStateSuspense with fallback for client componentsconst Heavy = dynamic(() => import('./Heavy'))use client, not entire page treesPromise.all() for independent async operations — never create waterfallsImports / Bundle Size:
optimizePackageImports in next.config for icon/UI libraries (lucide-react, @mui/material, etc.)HTML:
<header>, <nav>, <main>, <section>, <footer> — not div soup<img> gets an alt attribute; use Next.js Image component for optimization<h1> per page, then <h2>, <h3> in order<title> and <meta name="description">CSS / Styling:
Consistency:
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.
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:
agent-browser eval "JSON.stringify(window.__errors || [])"Verify when relevant to the change:
Only after all checks pass:
vercel deploy --yes --prod --token placeholder --cwd /path/to/project
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.
If something doesn't look right:
Keep iterating until it looks professional. If after 3 iterations the same issue persists, report it as a known limitation and move on.
console.log in production codedebounce)When reporting results, always include:
development
Format messages for WhatsApp, including mentions that render as real WhatsApp tags. Use when responding in a WhatsApp conversation (platform_id / chatJid ends with @s.whatsapp.net or @g.us).
tools
Introduce yourself to a newly connected channel. Triggered automatically when a channel is first wired. Send a friendly greeting and brief overview of what you can do.
tools
OneCLI Gateway: transparent HTTPS proxy that injects stored credentials into outbound calls. You MUST use this skill when the user asks you to read emails, check calendar, access GitHub repos, create issues, check Stripe payments, or interact with ANY external service or API. Do NOT use browser extensions or OAuth CLI tools. Make HTTP requests directly; the gateway injects credentials automatically.
tools
Deploy apps to Vercel. Use when asked to deploy, ship, or publish a web application, or manage Vercel projects, domains, and environment variables.