/agent-skills:engineering-frontend-developerfrom agent-skills
Build modern web apps with React, Vue, Angular, or Svelte, focusing on performance and accessibility. Covers component libraries, TypeScript UI, responsive layouts, Core Web Vitals, service workers, code splitting, ARIA, Storybook, and API client architecture.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This guide covers modern frontend development with React, Vue, Angular, and Svelte, including component architecture, performance optimization, accessibility, and testing. Use it when building web applications, component libraries, or optimizing frontend performance.
api.ts module using fetch or axios with interceptors) so auth headers, error transforms, and retries are handled in one place.transform and opacity properties (compositor-only) rather than width, height, or top/left to avoid triggering layout recalculations that cause jank.React.lazy() or dynamic import() and defer non-critical scripts below the fold.<picture> with WebP/AVIF sources and explicit width/height attributes to prevent layout shift; for images below the fold, add loading="lazy".React.lazy() (or framework equivalent) with a <Suspense> fallback so the main bundle excludes that route's code.Cache-Control: public, max-age=31536000, immutable on content-hashed filenames and no-cache on index.html.Enter, Space, Escape as appropriate), and test with axe-core before marking the task complete.<input> with a <label> via htmlFor/id, provide visible error messages linked with aria-describedby, and ensure the form is fully operable with keyboard-only navigation.When a layout breaks, diagnose by symptom:
min-width: 0 (row) or min-height: 0 (column) to the flex child. Flex items default to min-width: auto, which prevents shrinking below content size.minmax(0, 1fr) instead of 1fr. Plain 1fr means minmax(auto, 1fr), which lets content push the column wider than intended.position: sticky does not stick: Check every ancestor for overflow: hidden, overflow: auto, or overflow: scroll. Any of these creates a new scrolling context that contains the sticky element. Also verify the element has a top/bottom value set.margin: auto does not center: Verify the element has an explicit width (block) or the parent has display: flex (flex child). margin: auto does nothing on full-width block elements.z-index does not work: The element needs position: relative/absolute/fixed/sticky to create a stacking context. Also check if an ancestor creates a stacking context (via transform, opacity < 1, filter, or will-change) that limits the z-index scope.display: flex on the parent (preferred), or set font-size: 0 on parent and reset on children.outline instead of border for debugging, or set background on the parent to mask the gap.overflow: hidden, white-space: nowrap, text-overflow: ellipsis. For multi-line truncation, use -webkit-line-clamp with display: -webkit-box and -webkit-box-orient: vertical.container-type: inline-size (or size). The element itself cannot be its own container — the query must reference a parent.optimizeDeps.include for those packages — do not switch to Webpack.next dev --turbo). Not yet usable standalone. Provides faster dev builds than Webpack for Next.js projects. If builds are already fast (<5s), do not bother switching.tsup (esbuild wrapper) for publishing npm packages.Cache-Control or CDN.revalidate interval based on how stale the data can be: 60s for prices, 3600s for blog posts.onClick, useState, useEffect, or browser APIs — it must be a Client Component ('use client').async/await directly — no useEffect, no TanStack Query, no loading states needed. The data is resolved before the HTML is sent.'use server') for form submissions and mutations that are called from the UI. Use API routes (/api/*) for webhooks, third-party integrations, or endpoints called by external services.useState with the server prop and manage updates on the client.<Suspense> boundaries. Wrap the slow Server Component in <Suspense fallback={<Skeleton />}>. The shell renders immediately; the slow component streams in when ready. Place Suspense boundaries at meaningful UI sections (sidebar, main content, comments) — not around every component.Date.now(), Math.random(), or new Date().toLocaleString() in render → move to useEffect + useState.typeof window !== 'undefined' conditional rendering → use useEffect to set a hasMounted flag.<p> nested inside <p>, or <div> inside <p> → fix the nesting, HTML spec does not allow it.dynamic(() => import(...), { ssr: false }).When a page is slow, follow this sequence — do not skip steps:
priority (Next.js) or fetchpriority="high". Add explicit width/height. Serve in WebP/AVIF. If served from a CDN, verify cache headers.font-display: swap or font-display: optional. Preload the critical font file with <link rel="preload" as="font" crossorigin>.requestIdleCallback, scheduler.yield() (Chrome 115+), or setTimeout(fn, 0) to yield to the browser between frames.React.memo (expensive children), useMemo (derived values), or move state closer to where it is used. If >500 components re-render on a single state change, the state is too high in the tree.async or defer attribute, or load after requestIdleCallback.width and height attributes (or aspect-ratio CSS). The browser reserves space before the asset loads.size-adjust in @font-face to match metrics, or use font-display: optional to eliminate the swap entirely.min-height on the container. If the content height varies, use contain: layout to prevent shifts from propagating.strict: true in tsconfig.json on day one; retrofitting strict mode later is exponentially harder as the codebase grows.tsc --noEmit), test (Vitest/Jest), and bundle-size check as required gates -- all four must pass before merge.bundlesize or equivalent)any casts in production code; strict: true enabled in tsconfigreact-scripts with vite + @vitejs/plugin-react, move index.html to root, update process.env → import.meta.env, fix any CommonJS imports. Budget: 2-4 hours for small apps, 1-2 days for large apps with custom Webpack config.app/ directory. Start with static/simple pages, leave complex pages (with getServerSideProps + complex state) for last. Do not migrate the entire app at once. Budget: 1 route per day for complex apps.allowJs: true in tsconfig and rename files one at a time from .js → .tsx. Start with leaf components (no dependencies), work inward. Enforce strict: true on new files from day one; create a tsconfig.strict.json that extends base if needed. Budget: ~10 files per day.componentDidMount → useEffect(..., []), componentDidUpdate → useEffect with deps, this.state → useState.useReducer for structured state, or Zustand for simpler API. If the state is server data, use TanStack Query instead — not Context.useState for simple forms (<5 fields, no complex validation). Never use a global state manager for form state.useSearchParams) as the source of truth. Sync to component state only for derived values. This makes the state shareable, bookmarkable, and back-button friendly.After completing a frontend implementation, verify:
npx axe-core or axe-playwright on every new page/component. Zero WCAG 2.1 AA violations.npx bundlesize or check the build output. If initial JS exceeds 200KB gzipped, investigate what is in the bundle (use npx source-map-explorer).React.memo (for expensive children), useMemo/useCallback (for derived values/callbacks passed as props), or move state closer to where it is used.source-map-explorer to find the culprit. Common causes: importing an entire library (import _ from 'lodash' → import groupBy from 'lodash/groupBy'), accidentally bundling a dev dependency, or a heavy polyfill.Date.now() or Math.random() in render, accessing window/document during SSR, or conditional rendering based on client-only state. Fix: use useEffect for client-only values, or suppressHydrationWarning as last resort.min-width: 0 on flex children, overflow: hidden clipping content, or position: absolute elements escaping their container. Use CSS Grid with minmax() instead of fixed widths.useEffect dependency arrays. If using TanStack Query, set staleTime to avoid refetching on every mount. If using useEffect for data fetching, consider switching to a data fetching library entirely.When joining an existing frontend project:
npm start / npm run dev (5 min) — If it fails, fix the dev environment first.npm test. Note coverage, test types, and which flows are untested.any casts? eslint-disable comments? Files >500 lines? Inline styles? These indicate areas of fragility.scripts/check_bundle.sh -- Analyze a build output directory for JS and CSS bundle sizes, with gzip estimates and configurable warning/error thresholds. Run with --help for options.See DataTable Component for a full virtualized DataTable implementation in React + TypeScript. See React Component Patterns for compound components, custom hooks, error boundaries, optimistic UI, and form validation patterns. See TypeScript Patterns for discriminated unions, polymorphic components, branded types, and type-safe API clients. See CSS Patterns for modern CSS Grid layouts, container queries, theming, view transitions, and :has() selectors.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (topstar-ai/agent-skills) — no native marketplace selected
npx claudepluginhub p/topstar-ai-agent-skills9 skills in this plugin
/engineering-backend-architectArchitect scalable backend systems, database schemas, APIs, and cloud infrastructure for robust server-side applications. Use when you need microservice vs monolith decisions, database indexing strategies, API versioning, event-driven architecture, ETL pipelines, WebSocket streaming, data modeling, query optimization, or cloud-native service design with high reliability and sub-20ms query performance./engineering-devops-automatorAutomate infrastructure provisioning, CI/CD pipelines, and cloud operations for reliable deployments. Use when you need Terraform infrastructure-as-code, Docker containerization, blue-green or canary deployments, monitoring and alerting setup, log aggregation, disaster recovery planning, secrets management, cost optimization, or multi-environment configuration with tools like Vault, ELK, Loki, or AWS./engineering-ml-engineerBuild and deploy machine learning models with PyTorch, HuggingFace Transformers, and scikit-learn. Use when you need model training, fine-tuning with LoRA/QLoRA, text classification, NER, embeddings, RAG pipelines, dataset preparation, model evaluation, hyperparameter tuning, ONNX export, quantization, inference optimization, or classical ML with XGBoost and scikit-learn./engineering-mobile-app-builderBuild native and cross-platform mobile applications for iOS and Android with optimized performance and platform integration. Use when you need SwiftUI or Jetpack Compose development, React Native or Flutter cross-platform apps, offline-first architecture, biometric authentication, push notifications, deep linking, app startup optimization, or mobile-specific UX patterns and gesture handling./engineering-rapid-prototyperBuild functional prototypes and MVPs at maximum speed to validate ideas through working software. Use when you need proof-of-concept development, rapid iteration on user feedback, no-code or low-code solutions, backend-as-a-service integration, A/B testing scaffolding, quick feature validation, or modular architectures designed for fast experimentation and learning./engineering-security-engineerSecure applications, infrastructure, and pipelines through threat modeling, vulnerability assessment, and security architecture. Use when you need OWASP Top 10 remediation, threat modeling (STRIDE/DREAD), penetration testing methodology, secrets management, dependency vulnerability scanning, authentication/authorization architecture, CSP and security headers, API security, supply chain security, compliance frameworks (SOC 2, GDPR, HIPAA), incident response, or security-focused code review.2 plugins ship this exact skill · first indexed Aug 8, 2026