frontend-engineer
यह क्या करती है
यह AI agent एक senior frontend engineer है। यह अच्छी क्वालिटी की websites और web applications बनाता है, और काम पूरा मानने से पहले सुनिश्चित करता है कि सब कुछ ठीक से चल रहा है।
कब इस्तेमाल करें
- ✓नई website या web application बनाते समय।
- ✓किसी मौजूदा web project में बदलाव करते समय।
- ✓जब आपको यह पक्का करना हो कि website responsive और accessible है।
Skill का लिंक
https://github.com/nanocoai/nanoclaw/blob/main/container/skills/frontend-engineer/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Next.js में एक simple website बनाओ, जिसमें एक homepage और 'About Us' page हो। पक्का करो कि वह responsive और accessible हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह एक सख़्त प्रक्रिया मानता है: पहले project को समझता है, फिर अच्छी क्वालिटी का code लिखता है (TypeScript, React/Next.js), असली browser में सब कुछ test करता है, और उसके बाद ही deploy करता है। यह जाँचता है कि site अलग-अलग screen sizes पर ठीक चलती है और उसमें कोई error नहीं है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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— preferunknownwith type guards. Ifanyis 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
Suspensewith 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
optimizePackageImportsin 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 analtattribute; use Next.jsImagecomponent 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
…
अक्सर पूछे जाने वाले सवाल
'responsive' का क्या मतलब है?
इसका मतलब है कि website अलग-अलग screen sizes पर खुद को ढाल लेती है और मोबाइल फ़ोन, tablet और computer, सब पर अच्छी तरह काम करती है।
'accessible' का क्या मतलब है?
इसका मतलब है कि website सभी लोग इस्तेमाल कर सकते हैं, जिनमें देखने या हाथ-पैर से जुड़ी दिक्कत वाले लोग भी शामिल हैं, क्योंकि वह color contrast और keyboard navigation जैसे मानकों का पालन करती है।
यह browser में test करने पर इतना ज़ोर क्यों देता है?
क्योंकि सिर्फ code test करने से यह पक्का नहीं होता कि असली user के अनुभव में वह उम्मीद के मुताबिक चलेगा। Browser में visual tests वे दिक्कतें पकड़ लेते हैं जो automated tests से छूट सकती हैं।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 31k
- रैंकिंग में स्थान
- #9329
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
agent-browser
31kआपके एजेंट को रिसर्च, पढ़ने या वेबसाइटों के साथ इंटरैक्ट करने के लिए वेब ब्राउज़ करने देता है। browser की ज़रूरत वाले किसी भी काम के लिए यह उपयोगी है।
self-customize
31kआपके एजेंट को नए फ़ीचर जोड़ने और खुद में बदलाव करने देता है। जब आप चाहते हैं कि वह कुछ नया सीखे या अपना काम करने का तरीका बदले, तब यह उपयोगी है।
welcome
31kएजेंट को किसी नए channel में खुद का परिचय देने देता है और बताता है कि वह क्या-क्या कर सकता है।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।