magnus919/agent-skills

frontend-engineering

Build and maintain web frontends — component architecture, state management, API integration, responsive layout, client-side performance, and frontend testing patterns.

Zobacz źródło

Jak używać

  1. Skopiuj polecenie instalacji i sprawdź źródła przed instalacją we własnym środowisku agenta.
  2. W oryginale sprawdź wymagane narzędzia, dane dostępowe i obsługiwane środowiska.
  3. Opisz dane wejściowe i oczekiwany rezultat; porównaj wynik ze źródłami.
npx skills add https://github.com/magnus919/agent-skills --skill frontend-engineering

Przed rozpoczęciem

  • Instalacja nie obejmuje subskrypcji modelu, limitu API ani uprawnień do plików.
  • Gwiazdki i instalacje pokazują aktywność, a nie niezależny test jakości lub bezpieczeństwa.
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

Frontend Engineering Methodology

Frontend engineering is the craft of building the user-facing layer of applications — components, state management, API integration, responsive layout, and client-side performance. This methodology bridges UX design (user journeys, wireframes, accessibility standards) and quality validation (qa-methodology).

The Frontend Engineer's Domain

You ownYou don't own
Component implementation — UI component composition, props/state interfaces, rendering patterns, lifecycleUser journeys, wireframes, accessibility standards, interaction design — that's the product-design-and-ux
State management — client-side state architecture, data fetching patterns, caching, optimistic updatesAPI contract design — that's the api-design-and-evolution
API integration — frontend-to-backend data flow, auth flows (OAuth, JWT), real-time updatesTest strategy and automation — that's the QA-engineer
Responsive design implementation — layout systems, breakpoints, cross-device testingVisual identity and brand guidelines — that's the brand-designer
Client-side performance — bundle optimization, lazy loading, Core Web Vitals, render optimizationEditorial content and copy — owned by the content and marketing team, outside this skill's scope
Frontend testing — component tests, integration tests, visual regression, accessibility testsCode review and quality gates — that's the qa-methodology
E2E test scenarios and user-flow coverage for frontend featuresOperating the browser test tool (Playwright) — authoring/running specs, selectors, network mocking, scraping — route to playwright
Mobile app implementation (iOS/Android/Flutter/React Native)Mobile platform work — scaffolding, builds and code signing, device/emulator testing, store submission, mobile lifecycle — route to mobile-development; this skill owns web frontends
Build tooling — bundler config, TypeScript config, linting, formatting, dev environmentCI/CD pipeline infrastructure — that's the platform-engineer

For React component and hooks work, load react; for Vite config, modes, plugins, and builds, load vite. This skill remains the owner of framework-neutral architecture and frontend strategy.

Reference Files

ReferenceWhen to load
references/component-architecture.mdDesigning component trees — composition patterns, props/state interfaces, lifecycle, accessibility fundamentals
references/state-management.mdChoosing and implementing state management — client vs server state, data fetching, caching, optimistic updates
references/api-integration.mdConnecting frontend to backend — API client design, auth token flow, error handling in the UI, real-time subscriptions
references/responsive-layout-testing.mdImplementing responsive designs (layout system selection — Grid vs Flexbox vs Container Queries, breakpoint strategies, cross-device testing methodology) and testing frontend code (component testing with Testing Library, integration testing with Playwright/Cypress, visual regression, accessibility testing with axe-core and Lighthouse CI, test data management)
references/performance.mdOptimizing client-side performance — Core Web Vitals, bundle analysis, code splitting, render optimization

Templates

TemplateWhen to Use
templates/component-state-design-record.mdDesigning a component tree and state ownership for a feature — decomposition, state scoping, data fetching, and error/loading UX
templates/performance-budget.mdDefining performance targets — bundle byte budgets, Core Web Vitals budgets, measurement setup, and CI enforcement

Scripts

ScriptWhen to Use
scripts/bundle-budget-checker.pyChecking a bundle size report against total and per-chunk budgets; fails (exit 1) when a budget is exceeded, so CI can block performance regressions

Core Principles

Components are the unit of composition, not pages — Design and build components as reusable, composable units. Pages are assembled from components, not built as monoliths. A well-designed component can be reused in contexts its creator never imagined.

Co-locate state with the components that need it — Not every piece of state belongs in a global store. Local state stays local. Server state is fetched and cached. Only truly shared application state belongs in a global context.

Design for every state, not just the happy path — Every data-dependent component has at least four states: loading, empty, error, and success. Designing for all four is not a nicety — it creates a resilient user experience.

Accessibility is not a feature, it's a requirement — Keyboard navigation, screen reader support, color contrast, and focus management are not enhancements. They are part of the implementation contract.

Performance is a UX concern — Every millisecond of load time, every layout shift, every janky interaction erodes user trust. Performance budgeting, bundle analysis, and render optimization are part of frontend engineering, not an afterthought.

Powiązane zadania

z tego samego repozytorium

Więcej Skills

Wszystkie Skills
magnus919
Społeczność

analog-occultism

- Use this skill to create subject-neutral images and videos in an analog occultism / industrial CRT noir aesthetic: near-monochrome archival technical atmosphere, severe low-key lighting, tactile signal degradation, industrial geometry, and quiet unresolved tension. Use for portraits, products, environments, interfaces, diagrams, abstract forms, stills, and motion. Do not use for colorful cyberpunk, vaporwave, glossy advertising, conventional horror, or clean digital renders.

instalacje
1
GitHub Stars
127
Aktualizacja
13 paź
magnus919
Społeczność

api-design-and-evolution

- Design, govern, document, review, and evolve consumer-facing APIs and event interfaces. Use when choosing REST/HTTP, GraphQL, RPC, events, webhooks, or streaming; writing OpenAPI or AsyncAPI contracts; assessing an API landscape, ownership, duplication, lifecycle, discoverability, retirement, gateways, service meshes, north-south or east-west traffic, routing, policy, observability, or failure boundaries; defining schemas, pagination, mutations, errors, idempotency, or compatibility; or planni

instalacje
1
GitHub Stars
127
Aktualizacja
13 paź
magnus919
Społeczność

binary-analysis

- Plan static inspection of unknown binary files with a deterministic CLI whose Ghidra operations are currently unimplemented and fail closed. Use when you need to inspect a PE, ELF, or Mach-O file — triage suspicious binaries, map imported APIs, decompile functions, trace call paths, or produce structured evidence reports. Do not use for runtime analysis (debugging, dynamic tracing, sandbox execution), for modifying or patching binaries, or for binaries you already know everything about. The sk

instalacje
1
GitHub Stars
127
Aktualizacja
13 paź
magnus919
Społeczność

bmad

- Use this skill to run BMad (Breakthrough Method of Agile AI-Driven Development) as a harness-agnostic control-plane protocol that turns human intent into bounded, inspectable, resumable agent work. Compress intent into a five-field contract (Why, Capabilities, Constraints, Non-goals, Success signal); classify work as direct/bounded/initiative and route to the smallest safe path; carry decisions in durable artifacts; review as triage; route failure to the layer where ambiguity entered; and gate

instalacje
1
GitHub Stars
127
Aktualizacja
13 paź