seif.dev
AI-ASSISTED · FROM MY VIDEO · TEXT BY MY AGENTSBY SEIF SGAYER · · 3 MIN READ

Vercel React Best Practices + 2 speed skills

TL;DR

  • Claude should make your app run faster, and three free skills help it do so.
  • Modern Web Guidance, from the Google Chrome team, steers Claude away from old, heavy patterns toward what browsers do today.
  • Vercel React Best Practices is Vercel's own 70 speed rules, ranked by impact, so the biggest slowdowns get fixed first.
  • Supabase Postgres Best Practices shows Claude how to write faster queries, including the indexes your tables are missing.
  • Below: one mistake each skill catches, the fix, and a prompt to paste.

The 3 Claude skills that make your app faster

One skill per layer: the browser, the React code, the database. Each is a skill, a folder of instructions Claude Code loads when the job matches (how skills work). New to Claude? Start with AI from zero.

SkillMade byThe layer it speeds upLicence
Modern Web GuidanceGoogle Chrome, with Edge, Firefox and MDNThe browser: HTML, CSS, web APIsApache 2.0
React Best PracticesVercel EngineeringReact and Next.js codeMIT
Postgres Best PracticesSupabaseDatabase queries and schemaMIT

Modern Web Guidance: Google Chrome's skill against legacy code

First: Modern Web Guidance. It's from the Google Chrome team, and it swaps Claude's old heavy code for what browsers do today.

Coding agents learned from years of old code, so they reach for a JavaScript library or a polyfill where the browser now has a built-in answer. Modern Web Guidance gives Claude guides on 277 modern web features with their browser support, and points it to light fallbacks instead of heavy ones. It is stewarded by the Chrome, Edge, Firefox and MDN teams.

  • Don't: install a modal or tooltip library for a popup.
  • Do: use the browser's own <dialog> element or the Popover API; both are on the skill's feature list.

In Claude Code:

/plugin marketplace add GoogleChrome/modern-web-guidance
/plugin install modern-web-guidance@googlechrome

Then run /reload-plugins. Or use the setup wizard from a terminal (Node.js 22 or later): npx modern-web-guidance@latest install. Its README warns that copies installed from claude-plugins-official are stuck on an old version, so use the googlechrome marketplace above.

To find old patterns in a project you already have, run npx modern-web-guidance@latest legacy-scan ., then paste:

Use Modern Web Guidance. Replace each legacy pattern the scan found with the native web feature, keep a light fallback where browser support needs one, and list every library we can now remove.

Vercel React Best Practices: 70 speed rules, ranked by impact

Second: React Best Practices. It's Vercel's own speed rules, ranked by impact, so the biggest slowdowns get fixed first.

The skill holds 70 rules in 8 categories, from Vercel Engineering's work on React and Next.js. The order is the point: request waterfalls and bundle size are marked critical and come first; re-renders and small JavaScript tweaks come later, even though they hold more rules.

Bar chart of Vercel React Best Practices rules per category, in impact order: Waterfalls 6, Bundle size 6, Server side 10, Client fetching 4, Re-renders 15, Rendering 11, JavaScript 14, Advanced 4.
The skill's 8 categories, critical at the top. Counted from its rules folder, 1 Dec 2026.

One of its critical rules, a waterfall. Don't wait for each request before you start the next (three round trips):

const user = await fetchUser();
const posts = await fetchPosts();
const comments = await fetchComments();

Do start the ones that don't depend on each other together (one round trip):

const [user, posts, comments] = await Promise.all([fetchUser(), fetchPosts(), fetchComments()]);

The skill's own note on this rule: a 2-10× improvement.

npx skills add vercel-labs/agent-skills

That adds Vercel's whole skill pack; pick React Best Practices when it asks. Then paste:

Use react-best-practices. Review app/page.tsx and the components it loads. Fix the CRITICAL rules first, then HIGH, and list each rule id you applied.

Supabase Postgres best practices: faster queries

Now your pages load fast. But could still one slow query take down the whole app?

Third: Postgres Best Practices. It's built by Supabase. It shows Claude how to write faster queries.

It works for Postgres running anywhere, not only on Supabase. Its rules are ranked the same way, by impact: query performance, connection management and row-level security are critical; schema design is high; locking, data access, monitoring and advanced features follow. Each rule shows the wrong SQL next to the right one. One of its critical rules:

Don't filter a big table on a column with no index. Postgres reads every row:

select * from orders where customer_id = 123;

Do index the columns you filter and join on:

create index orders_customer_id_idx on orders (customer_id);

The skill puts that at 100-1000× faster on large tables.

npx skills add supabase/agent-skills --skill supabase-postgres-best-practices

As a Claude Code plugin: claude plugin marketplace add supabase/agent-skills, then claude plugin install postgres-best-practices@supabase-agent-skills. Then paste:

Use supabase-postgres-best-practices. Run EXPLAIN on our five most used queries, find every sequential scan on a large table, and write the migration that adds the missing indexes. Don't apply it yet.

Which Claude skill to install first for app speed

Start where your app is slow:

  1. Pages heavy with scripts and libraries: Modern Web Guidance, then run legacy-scan.
  2. A React or Next.js app that feels sluggish: React Best Practices, critical rules first.
  3. Pages that wait on data: Postgres Best Practices, missing indexes first.

Then make it look right with Claude design skills, and let Claude check it like a hacker with the best Claude skills for security.

AI-ASSISTED · FROM MY VIDEO

I try my best to bring you value. My AI agents write these. Tell me if it was valuable, or AI slop.

Was this worth your time?

One tap. No sign-in. We save the vote, not who you are.

WRITTEN BY

Hi, I'm Seif Sgayer.

I'm a software engineer with 10+ years of shipping software. I build with AI every day and I teach what works.

Get the next post.

One free AI bite a week, from my own work. Only your email.