Claude Skill

frontend-engineering

Build and maintain web frontends — component architecture, state management,

LLM Mart · 0 points · 13 views 0 listing impressions 0 install-command copies
Download magnus919-agent-skills-frontend-engineering-ade3385.zip · 32 KB

Install

skills CLI npx skills add https://github.com/magnus919/agent-skills/tree/main/frontend-engineering
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install magnus919-agent-skills@llmmart
Git git clone https://github.com/magnus919/agent-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole magnus919/agent-skills collection as a plugin from our marketplace. Git is the plain clone.

README

Frontend Engineering

Frontend engineering methodology — component architecture, state management, API integration, responsive layout, client-side performance, and frontend testing patterns. Framework agnostic, focused on web frontend implementation.

Why Install This Skill

Your agent applies proven component architecture, state management, and performance patterns instead of reinventing frontend structure each time. Fillable templates capture component/state design and performance budgets as reviewable records, and the bundled bundle-budget checker enforces performance budgets in CI.

Design-continuity guidance keeps approved components and visual decisions intact across AI-assisted changes, with rendered checks for drift and explicit handling of new requirements.

What You Get

Directory Purpose
SKILL.md Core methodology, trigger conditions, reference index
references/ Deep-dive reference files loaded on demand
templates/ Fillable records: component/state design record, performance budget
scripts/ bundle-budget-checker.py — checks bundle size reports against total and per-chunk budgets
evals/ Output-quality eval manifest for the skill's methodology cases

Triggers

Building UI components, choosing state management approaches, integrating APIs, optimizing Core Web Vitals, or setting up responsive layouts.

Requirements

Platform-agnostic. Framework-agnostic patterns applicable to React, Vue, Svelte, or vanilla JS. The bundled script needs only Python 3 (standard library).

Quick Start

Check a bundle size report against total and per-chunk budgets before merging a change:

python3 frontend-engineering/scripts/bundle-budget-checker.py dist/bundle-report.json --total 500KB --chunk 120KB

The report maps chunk names to sizes (or a {"chunks": [...]} list from your bundler's analyzer). The script prints each chunk, the budget, and OK/OVER status, and exits 1 when any budget is exceeded — so it can gate CI. Add --json for machine-readable output.

Load SKILL.md for the methodology overview and reference table, then load specific references as needed for the task at hand.

Skill manifest

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 own You don't own
Component implementation — UI component composition, props/state interfaces, rendering patterns, lifecycle User journeys, wireframes, accessibility standards, interaction design — that's the product-design-and-ux
State management — client-side state architecture, data fetching patterns, caching, optimistic updates API contract design — that's the api-design-and-evolution
API integration — frontend-to-backend data flow, auth flows (OAuth, JWT), real-time updates Test strategy and automation — that's qa-methodology
Responsive design implementation — layout systems, breakpoints, cross-device testing Visual identity and brand guidelines — that's the brand-designer
Client-side performance — bundle optimization, lazy loading, Core Web Vitals, render optimization Editorial content and copy — owned by the content and marketing team, outside this skill's scope
Frontend testing — component tests, integration tests, visual regression, accessibility tests Code review and quality gates — that's the qa-methodology
E2E test scenarios and user-flow coverage for frontend features Operating 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 environment CI/CD pipeline infrastructure — that's platform-engineering

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.

When not to use

Use product-design-and-ux for unchosen task flows and interaction behavior, brand-designer for visual identity, and web-accessibility for conformance. Before modifying implementation, confirm the target, scope, and rollback path. Read-only discovery may proceed without confirmation.

When implementing an approved design, extending UI, or repairing generated-design drift, read design continuity. Reuse settled components and decisions, ask about genuine exceptions, and compare rendered states against the approved baseline rather than regenerating the design from scratch.

Reference Files

Reference When to load
references/component-architecture.md Designing component trees — composition patterns, props/state interfaces, lifecycle, accessibility fundamentals
references/state-management.md Choosing and implementing state management — client vs server state, data fetching, caching, optimistic updates
references/api-integration.md Connecting frontend to backend — API client design, auth token flow, error handling in the UI, real-time subscriptions
references/responsive-layout-testing.md Implementing 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.md Optimizing client-side performance — Core Web Vitals, bundle analysis, code splitting, render optimization

Templates

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

Scripts

Script When to Use
scripts/bundle-budget-checker.py Checking 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.

Files (agent-skills)
  • evals
    • evals.json 11.9 KB
      Loading…
  • references
    • api-integration.md 1.6 KB
      Loading…
    • component-architecture.md 1.8 KB
      Loading…
    • design-continuity.md 3.2 KB
      Loading…
    • performance.md 1.4 KB
      Loading…
    • responsive-layout-testing.md 31.6 KB
      Loading…
    • state-management.md 1.8 KB
      Loading…
  • scripts
    • bundle-budget-checker.py 6.3 KB
      Loading…
    • test_bundle_budget_checker.py 7.9 KB
      Loading…
  • templates
    • component-state-design-record.md 2.9 KB
      Loading…
    • performance-budget.md 2.8 KB
      Loading…
  • README.md 2.2 KB
    # Frontend Engineering
    
    Frontend engineering methodology — component architecture, state management, API integration, responsive layout, client-side performance, and frontend testing patterns. Framework agnostic, focused on web frontend implementation.
    
    ## Why Install This Skill
    
    Your agent applies proven component architecture, state management, and performance patterns instead of reinventing frontend structure each time. Fillable templates capture component/state design and performance budgets as reviewable records, and the bundled bundle-budget checker enforces performance budgets in CI.
    
    Design-continuity guidance keeps approved components and visual decisions intact
    across AI-assisted changes, with rendered checks for drift and explicit handling
    of new requirements.
    
    ## What You Get
    
    | Directory | Purpose |
    |-----------|---------|
    | `SKILL.md` | Core methodology, trigger conditions, reference index |
    | `references/` | Deep-dive reference files loaded on demand |
    | `templates/` | Fillable records: component/state design record, performance budget |
    | `scripts/` | `bundle-budget-checker.py` — checks bundle size reports against total and per-chunk budgets |
    | `evals/` | Output-quality eval manifest for the skill's methodology cases |
    
    ## Triggers
    
    Building UI components, choosing state management approaches, integrating APIs, optimizing Core Web Vitals, or setting up responsive layouts.
    
    ## Requirements
    
    Platform-agnostic. Framework-agnostic patterns applicable to React, Vue, Svelte, or vanilla JS. The bundled script needs only Python 3 (standard library).
    
    ## Quick Start
    
    Check a bundle size report against total and per-chunk budgets before merging a change:
    
    ```bash
    python3 frontend-engineering/scripts/bundle-budget-checker.py dist/bundle-report.json --total 500KB --chunk 120KB
    ```
    
    The report maps chunk names to sizes (or a `{"chunks": [...]}` list from your bundler's analyzer). The script prints each chunk, the budget, and OK/OVER status, and exits 1 when any budget is exceeded — so it can gate CI. Add `--json` for machine-readable output.
    
    Load SKILL.md for the methodology overview and reference table, then load specific references as needed for the task at hand.
    
  • SKILL.md 6.6 KB
    ---
    name: frontend-engineering
    description: Build and maintain web frontends — component architecture, state management,
      API integration, responsive layout, client-side performance, and frontend testing
      patterns. Framework agnostic, focused on web frontend implementation. Do not use
      for backend service implementation, data engineering, or platform infrastructure
      work.
    license: MIT
    metadata:
      tags: frontend, web, ui, components, state-management, performance, javascript,
        typescript, responsive, testing
      source_repo: https://github.com/magnus919/hermes-profiles
    ---
    
    # 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 own | You don't own |
    |---------|--------------|
    | Component implementation — UI component composition, props/state interfaces, rendering patterns, lifecycle | User journeys, wireframes, accessibility standards, interaction design — that's the product-design-and-ux |
    | State management — client-side state architecture, data fetching patterns, caching, optimistic updates | API contract design — that's the api-design-and-evolution |
    | API integration — frontend-to-backend data flow, auth flows (OAuth, JWT), real-time updates | Test strategy and automation — that's [qa-methodology](../qa-methodology/SKILL.md) |
    | Responsive design implementation — layout systems, breakpoints, cross-device testing | Visual identity and brand guidelines — that's the brand-designer |
    | Client-side performance — bundle optimization, lazy loading, Core Web Vitals, render optimization | Editorial content and copy — owned by the content and marketing team, outside this skill's scope |
    | Frontend testing — component tests, integration tests, visual regression, accessibility tests | Code review and quality gates — that's the qa-methodology |
    | E2E test scenarios and user-flow coverage for frontend features | Operating the browser test tool (Playwright) — authoring/running specs, selectors, network mocking, scraping — route to [playwright](../playwright/SKILL.md) |
    | 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](../mobile-development/SKILL.md); this skill owns web frontends |
    | Build tooling — bundler config, TypeScript config, linting, formatting, dev environment | CI/CD pipeline infrastructure — that's [platform-engineering](../platform-engineering/SKILL.md) |
    
    For React component and hooks work, load [react](../react/SKILL.md); for Vite config, modes, plugins, and builds, load [vite](../vite/SKILL.md). This skill remains the owner of framework-neutral architecture and frontend strategy.
    
    ## When not to use
    
    Use [product-design-and-ux](../product-design-and-ux/SKILL.md) for unchosen task flows
    and interaction behavior, [brand-designer](../brand-designer/SKILL.md) for visual
    identity, and [web-accessibility](../web-accessibility/SKILL.md) for conformance.
    Before modifying implementation, confirm the target, scope, and rollback path.
    Read-only discovery may proceed without confirmation.
    
    When implementing an approved design, extending UI, or repairing generated-design
    drift, read [design continuity](references/design-continuity.md). Reuse settled
    components and decisions, ask about genuine exceptions, and compare rendered states
    against the approved baseline rather than regenerating the design from scratch.
    
    ## Reference Files
    
    | Reference | When to load |
    |-----------|-------------|
    | `references/component-architecture.md` | Designing component trees — composition patterns, props/state interfaces, lifecycle, accessibility fundamentals |
    | `references/state-management.md` | Choosing and implementing state management — client vs server state, data fetching, caching, optimistic updates |
    | `references/api-integration.md` | Connecting frontend to backend — API client design, auth token flow, error handling in the UI, real-time subscriptions |
    | `references/responsive-layout-testing.md` | Implementing 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.md` | Optimizing client-side performance — Core Web Vitals, bundle analysis, code splitting, render optimization |
    
    ## Templates
    
    | Template | When to Use |
    |-----------|-------------|
    | `templates/component-state-design-record.md` | Designing a component tree and state ownership for a feature — decomposition, state scoping, data fetching, and error/loading UX |
    | `templates/performance-budget.md` | Defining performance targets — bundle byte budgets, Core Web Vitals budgets, measurement setup, and CI enforcement |
    
    ## Scripts
    
    | Script | When to Use |
    |-----------|-------------|
    | `scripts/bundle-budget-checker.py` | Checking 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.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.