This teaches Claude to write React 19 code the way it's meant to be written now that the React Compiler handles optimization automatically. The main shift is dropping useMemo and useCallback everywhere since the compiler does that work for you. It covers the new patterns like using ref as a regular prop instead of forwardRef, the use() hook for reading promises and conditional context, and knowing when to mark components with "use client" versus keeping them as server components by default. If you're working on a React 19 project and want Claude to stop suggesting the old manual memoization patterns, this is the skill to load.
- skills.sh installs
- 270
- GitHub stars
- 665
- last updated
- Aug 21, 2026
Install
$ npx -y skills add gentleman-programming/gentleman-skills --skill react-19 --agent claude-codeInstalls into .claude/skills of the current project.
Files
No Manual Memoization (REQUIRED)
// ✅ React Compiler handles optimization automatically
function Component({ items }) {
const filtered = items.filter(x => x.active);
const sorted = filtered.sort((a, b) => a.name.localeCompare(b.name));
const handleClick = (id) => {
console.log(id);
};
return <List items={sorted} onClick={handleClick} />;
}
// ❌ NEVER: Manual memoization
const filtered = useMemo(() => items.filter(x => x.active), [items]);
const handleClick = useCallback((id) => console.log(id), []);
Imports (REQUIRED)
// ✅ ALWAYS: Named imports
import { useState, useEffect, useRef } from "react";
// ❌ NEVER
import React from "react";
import * as React from "react";
Server Components First
// ✅ Server Component (default) - no directive
export default async function Page() {
const data = await fetchData();
return <ClientComponent data={data} />;
}
// ✅ Client Component - only when needed
"use client";
export function Interactive() {
const [state, setState] = useState(false);
return <button onClick={() => setState(!state)}>Toggle</button>;
}
When to use "use client"
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Repository
- github.com/gentleman-programming/gentleman-skills
- Categories
- Frontend Development, Documentation
- First seen
- Jun 3, 2026
More from gentleman-programming/gentleman-skills
All 13Recommended
More Frontend Development1
product-frontend-designmosif16/codex-skillsReview and design SaaS/product marketing sites and frontend interfaces end-to-end: clarify value, fix hierarchy, and implement distinctive, production-grade UI 270skills.sh installs
2
godot-ui-rich-textthedivergentai/gd-agentic-skillsExpert blueprint for RichTextLabel with BBCode formatting (bold, italic, colors, images, clickable links) and custom effects. Covers meta tags, RichTextEffect s251skills.sh installs
3
generic-react-ux-designertravisjneuman/.claudeProfessional UI/UX design expertise for React applications. Covers design thinking, user psychology (Hick's/Fitts's/Jakob's Law), visual hierarchy, interaction 250skills.sh installs
5
ui-ux-polishdicklesworthstone/agent_flywheel_clawdbot_skills_and_integrationsIterative UI/UX polishing workflow for web applications. The exact prompt and methodology for achieving Stripe-level visual polish through multiple passes.235skills.sh installs
6
angular-materialoguzhan18/angular-ecosystem-skillsALWAYS use when working with Angular Material components, CDK, or Material Design in Angular applications.233skills.sh installs
