Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

frontend-patterns

/frontend-patterns

Stosuje wzorce frontendu: architekturę komponentów, zarządzanie stanem, wzorce CSS, dostępność, wydajność i integrację systemu projektowego.

Repozytorium
lemon-ai-hub ↗
Licencja
MIT
Ostatnia zmiana repozytorium
16.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 16.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Stosuje wzorce frontendu: architekturę komponentów, zarządzanie stanem, wzorce CSS, dostępność, wydajność i integrację systemu projektowego.

Oryginalny opis (EN)

Frontend development patterns and best practices. Use for component architecture, state management, CSS patterns, accessibility, performance optimization, and design system integration.

Jak działa

  1. 1. Component Architecture
  2. 2. State Management
  3. 3. CSS Patterns
  4. 4. Performance Optimization
  5. 5. Accessibility (A11y)
  6. 6. Testing
  7. 7. Design System Integration
  8. 8. SEO
Sekcje z nagłówków SKILL.md, w oryginale · 44 linii, 382 słów
Podgląd SKILL.md
---
name: frontend-patterns
description: >
  Frontend development patterns and best practices. Use for component architecture, state management, CSS patterns, accessibility, performance optimization, and design system integration.
---

# Frontend Patterns

## 1. Component Architecture
- **Atomic Design**: Organize components into Atoms, Molecules, Organisms, Templates, and Pages.
- **Compound Components**: Use context to share implicit state between parent and child components (e.g., `<Select>`, `<Select.Option>`).
- **Render Props**: Share code between React components using a prop whose value is a function.
- **Custom Hooks**: Extract stateful logic from a component so it can be tested independently and reused.

## 2. State Management
- **Local State**: Use `useState` or `useReducer` for state that is isolated to a single component or small subtree.
- **Global State**: Use context API, Redux, Zustand, or Jotai for application-wide state.
- **Server State**: Use React Query, SWR, or Apollo Client to manage asynchronous data fetching, caching, synchronization, and error handling.
- **Form State**: Use libraries like React Hook Form or Formik for complex forms.

## 3. CSS Patterns
- **Utility-first CSS**: Tailwind CSS conventions for rapid styling and consistency.
- **CSS Modules**: Scope CSS locally by default to avoid class name collisions.
- **Styled-components**: Write actual CSS in JavaScript, leveraging tagged template literals.

## 4. Performance Optimization
- **Code Splitting**: Use `React.lazy` and Suspense to lazy load components.
- **Memoization**: Use `React.memo`, `useMemo`, and `useCallback` to prevent unnecessary re-renders.
- **Virtual Scrolling**: Render only the visible items in a long list to save memory and processing time.

## 5. Accessibility (A11y)
- **WCAG 2.1 Checklist**: Follow guidelines for contrast, text resizing, and keyboard navigability.
- **ARIA Patterns**: Use ARIA attributes appropriately to enhance semantics for screen readers.
- **Focus Management**: Ensure logical tab order and visible focus states.

## 6. Testing
- **Component Testing**: Use React Testing Library to test components from the user's perspective.
- **Visual Regression**: Compare screenshots of components to detect unintended visual changes (e.g., Chromatic, Percy).
- **E2E Testing**: Automate browser actions to test critical user flows (e.g., Playwright, Cypress).

## 7. Design System Integration
- **Token Consumption**: Map design tokens (colors, typography, spacing) to CSS variables or a theme provider.
- **Component Composition**: Build complex UIs by composing simpler, reusable design system components.

## 8. SEO
- **Meta Tags**: Use next/head or react-helmet for dynamic meta tags.
- **Structured Data**: Inject JSON-LD to help search engines understand page content.
- **SSR/SSG**: Leverage Next.js or Remix for server-side rendering or static site generation.

Wersje

RepozytoriumWynikLicencja
Ta strona · andersonlimahw/lemon-ai-hub90MIT
Sanit-mann/The-Insectoids100MIT
rommapp/romm100AGPL-3.0
tadokoro-ryusuke/cc-plugins100MIT
pekral/cursor-rules100MIT
bybren-llc/safe-agentic-workflow100MIT
bybren-llc/safe-agentic-workflow100MIT
tranhieutt/software_development_department100MIT
affaan-m/ECC95MIT

Migawka bazy z 13.11.2026 · wersja paczki ea62a847f470 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90frontend
    Stosuje wzorce frontendu: projektowanie komponentów, zarządzanie stanem, wydajność i dostępność w aplikacjach webowych.
  • 100frontend-web
    Podaje nowoczesne wzorce tworzenia stron w React, Vue i czystym JavaScripcie: architektura komponentów, zarządzanie stanem, wydajność frontendu i dostępność.
  • 100react-patterns
    Podpowiada wzorce frontendowe dla React i Next.js: zarządzanie stanem, wydajność renderowania i dobre praktyki UI.
  • 100react-code-review
    Przegląda kod aplikacji React: architekturę komponentów, użycie hooków, wzorce React 19, zarządzanie stanem, wydajność, dostępność i integrację z TypeScript.
  • 100component-design
    Tworzy lub restrukturyzuje komponent UI: architektura, wzorce komponentów, dostępność i zasady systemu projektowego.
  • 100react-frontend-patterns
    Przegląda i buduje komponenty React 19 z Tailwind CSS i shadcn/ui, z naciskiem na dostępność, formularze i stan aplikacji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.