frontend-ui-engineering
यह क्या करती है
यह वेबसाइट और ऐप्स के लिए यूज़र इंटरफ़ेस (स्क्रीन और components) बनाने में मदद करता है, ताकि वे किसी अनुभवी engineer के बनाए हुए जैसे लगें। यह पक्का करता है कि हर कोई उन्हें इस्तेमाल कर सके, वे अलग-अलग screen size पर अच्छे चलें और उनका लुक प्रोफेशनल हो।
कब इस्तेमाल करें
- ✓नई स्क्रीन या बटन बनाते समय।
- ✓किसी मौजूदा पेज का लुक ठीक करते समय।
- ✓जब वेबसाइट मोबाइल और डेस्कटॉप दोनों पर अच्छे से चलानी हो।
Skill का लिंक
https://github.com/addyosmani/agent-skills/blob/main/skills/frontend-ui-engineering/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“रजिस्ट्रेशन फॉर्म के लिए एक 'save' बटन बनाओ, और ध्यान रखो कि उसे मोबाइल फ़ोन पर आसानी से दबाया जा सके।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल कोड को तार्किक ढंग से व्यवस्थित करता है, और लुक को logic से अलग रखता है। यह गुणवत्ता के लिए जाने-माने design patterns इस्तेमाल करता है और accessibility के नियमों का पालन करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Frontend UI Engineering
Overview
Build production-quality user interfaces that are accessible, performant, and visually polished. The goal is UI that looks like it was built by a design-aware engineer at a top company — not like it was generated by an AI. This means real design system adherence, proper accessibility, thoughtful interaction patterns, and no generic "AI aesthetic."
When to Use
- Building new UI components or pages
- Modifying existing user-facing interfaces
- Implementing responsive layouts
- Adding interactivity or state management
- Fixing visual or UX issues
Component Architecture
File Structure
Colocate everything related to a component:
src/components/
TaskList/
TaskList.tsx # Component implementation
TaskList.test.tsx # Tests
TaskList.stories.tsx # Storybook stories (if using)
use-task-list.ts # Custom hook (if complex state)
types.ts # Component-specific types (if needed)
Component Patterns
Prefer composition over configuration:
// Good: Composable
<Card>
<CardHeader>
<CardTitle>Tasks</CardTitle>
</CardHeader>
<CardBody>
<TaskList tasks={tasks} />
</CardBody>
</Card>
// Avoid: Over-configured
<Card
title="Tasks"
headerVariant="large"
bodyPadding="md"
content={<TaskList tasks={tasks} />}
/>
Keep components focused:
// Good: Does one thing
export function TaskItem({ task, onToggle, onDelete }: TaskItemProps) {
return (
<li className="flex items-center gap-3 p-3">
<Checkbox checked={task.done} onChange={() => onToggle(task.id)} />
<span className={task.done ? 'line-through text-muted' : ''}>{task.title}</span>
<Button variant="ghost" size="sm" onClick={() => onDelete(task.id)}>
<TrashIcon />
</Button>
</li>
);
}
Separate data fetching from presentation:
// Container: handles data
export function TaskListContainer() {
const { tasks, isLoading, error, refetch } = useTasks();
if (isLoading) return <TaskListSkeleton />;
if (error) return <ErrorState message="Failed to load tasks" retry={refetch} />;
if (tasks.length === 0) return <EmptyState message="No tasks yet" />;
return <TaskList tasks={tasks} />;
}
// Presentation: handles rendering
export function TaskList({ tasks }: { tasks: Task[] }) {
return (
<ul role="list" className="divide-y">
{tasks.map(task => <TaskItem key={task.id} task={task} />)}
</ul>
);
}
State Management
Choose the simplest approach that works:
Local state (useState) → Component-specific UI state
Lifted state → Shared between 2-3 sibling components
Context → Theme, auth, locale (read-heavy, write-rare)
URL state (searchParams) → Filters, pagination, shareable UI state
Server state (React Query, SWR) → Remote data with caching
Global store (Zustand, Redux) → Complex client state shared app-wide
Avoid prop drilling deeper than 3 levels. If you're passing props through components that don't use them, introduce context or restructure the component tree.
Design System Adherence
Reference-led UI quality
When the product needs a distinct visual direction, collect evidence before choosing a layout:
- Search a trusted reference catalogue or use references supplied by the product team.
- Study two or three relevant screens. Record decisions about hierarchy, density, navigation, controls, responsive behavior, and interaction states.
- Turn those decisions into a short design contract before implementation. Name the screen's job, primary action, required states, responsive rules, and patterns to reject.
- Rebuild the useful structure in the product's own components, tokens, content, and visual language. Never copy another product's branding, proprietary text, imagery, or exact layout.
Use references as evidence, not as templates. If references are unavailable, document the assumptions and verify the result against the product's existing design system.
Avoid the AI Aesthetic
AI-generated UI has recognizable patterns. Avoid all of them:
| AI Default | Why It Is a Problem | Production Quality |
|---|---|---|
| Purple/indigo everything | Models default to visually "safe" palettes, making every app look identical | Use the project's actual color palette |
…
अक्सर पूछे जाने वाले सवाल
'accessible' का क्या मतलब है?
इसका मतलब है कि इंटरफ़ेस सभी लोग इस्तेमाल कर सकें, जिनमें देखने या हाथ-पैर से जुड़ी दिक्कत वाले लोग भी शामिल हैं, जो screen reader या दूसरी सहायक तकनीकों से इसे चला सकें।
'responsive' का क्या मतलब है?
जब इंटरफ़ेस अपने आप अलग-अलग screen size, जैसे फ़ोन, टैबलेट और कंप्यूटर, के हिसाब से ढल जाए, ताकि सब कुछ पढ़ने और इस्तेमाल करने लायक रहे।
'AI aesthetic' से बचना क्यों ज़रूरी है?
AI से बने इंटरफ़ेस अक्सर आम रंग, shapes और spacing इस्तेमाल करते हैं जो प्रोफेशनल design पर फिट नहीं बैठते। यह टूल ऐसा कुछ बनाने पर ध्यान देता है जो अच्छा दिखे और प्रोजेक्ट के हिसाब से हो।
जानकारी
लेखक का मूल विवरण
Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.
repo: addyosmani/agent-skills
लोकप्रियता
- GitHub स्टार
- 107k
- रैंकिंग में स्थान
- #772
- लाइसेंस
- MIT
- अपडेट की गई
- 13/10/2026
कमेंट
- …
इस repository की और skills
api-and-interface-design
107kअच्छी तरह परिभाषित APIs और interfaces डिज़ाइन करने में मदद करता है। सॉफ्टवेयर के अलग-अलग हिस्से आपस में कैसे बात करेंगे, यह तय करते समय उपयोगी है।
browser-testing-with-devtools
107kआपके एजेंट को असली browsers में सीधे code टेस्ट करने में मदद करता है। जिस माहौल में चीज़ इस्तेमाल होगी, वहाँ वह कैसे चलती है यह जाँचने और errors व performance की समस्याएँ ढूंढने के लिए उपयोगी है।
ci-cd-and-automation
107kआपके AI एजेंट को दोहराए जाने वाले काम अपने-आप करना, प्रोजेक्ट्स शिप करना और इंफ्रास्ट्रक्चर मैनेज करना सिखाता है।
code-review-and-quality
107kकई पहलुओं पर detailed code reviews करता है। नए changes merge करने से पहले quality सुनिश्चित करने और आगे की समस्याएँ रोकने के लिए उपयोगी है।
मिलती-जुलती 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 फॉलो करवाता है।