frontend-developer_skill

This skill helps optimize React and Next.js performance by applying Vercel's best-practice guidelines across components, pages, data fetching, and bundle
  • Python

60

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill kienhaminh/anti-chaotic --skill frontend-developer

  • SKILL.md4.6 KB

Overview

This skill provides Vercel Engineering–inspired performance optimization guidelines for React and Next.js apps. It prioritizes actionable rules across critical categories like eliminating waterfalls, bundle size reduction, and server/client performance. Use it to guide automated refactors, code generation, and performance reviews for frontend projects.

How this skill works

The skill inspects component structure, data fetching patterns, bundling and import usage, server-side rendering paths, and client-side state and effects. It maps issues to prioritized rules and suggests concrete changes—e.g., parallelizing independent awaits, deferring heavy imports, adding caching layers, or memoizing expensive renders. Recommendations focus on minimal, high-impact edits that improve load time, CPU use, and bundle footprint.

When to use it

  • When adding or refactoring React components and Next.js pages
  • When implementing or reviewing data fetching (SSR, SSG, client fetches)
  • When diagnosing slow page loads or large bundle sizes
  • During code reviews focused on performance and scalability
  • When implementing progressive hydration, streaming, or suspense

Best practices

  • Eliminate waterfalls: start promises early and await them together for independent work
  • Reduce bundle size: import directly, use dynamic imports for heavy components, and defer third-party scripts
  • Optimize server work: cache per-request and cross-request results and minimize serialized client payloads
  • Control re-renders: memoize expensive nodes, use primitive effect deps, and prefer functional setState
  • Improve perceived performance: preload on hover/focus, stream content with Suspense, and hide non-critical work in transitions

Example use cases

  • Convert sequential API calls in getServerSideProps to Promise.all to cut server latency
  • Replace a large third-party component with next/dynamic so it loads after hydration
  • Introduce React.cache or an LRU cache to avoid duplicate fetches across requests
  • Refactor a component to use memo and functional state to reduce repeated expensive calculations
  • Defer analytics and logging scripts until after initial render to improve TTFB and hydration

FAQ

Start by eliminating waterfalls and reducing critical bundle weight: parallelize independent fetches and defer or dynamically import heavy modules.

How do I choose between server-side caching and client deduplication?

Use server-side caches for cross-request duplication and heavy compute; use client-side dedup (SWR) to reduce repeated client requests and improve perceived responsiveness.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational