मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)107k · #772

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/addyosmani/agent-skills/blob/main/skills/frontend-ui-engineering/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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:

  1. Search a trusted reference catalogue or use references supplied by the product team.
  2. Study two or three relevant screens. Record decisions about hierarchy, density, navigation, controls, responsive behavior, and interaction states.
  3. 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.
  4. 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

api-and-interface-design

107k

अच्छी तरह परिभाषित APIs और interfaces डिज़ाइन करने में मदद करता है। सॉफ्टवेयर के अलग-अलग हिस्से आपस में कैसे बात करेंगे, यह तय करते समय उपयोगी है।

कोडिंगAPI और सर्वर (backend)

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