By Cst2989
Guide React and JavaScript coding with interactive skills that validate useEffect necessity via decision trees—suggesting alternatives like derivations or queries—apply high-impact patterns for state management, performance, hooks, and component design, and promote ES2025/ES2026 APIs over legacy code during writing or review.
Use when writing or reviewing JavaScript - prefer ES2025/ES2026 APIs (Iterator helpers, Set methods, Temporal, using, Promise.try, Error.isError, Math.sumPrecise, Map.getOrInsert) over older patterns.
Before writing useEffect, run through a decision tree to verify it's actually needed. Prevents the most common React anti-pattern in AI-generated code.
10 high-impact React patterns and anti-patterns - state management, performance, hooks, and component design. Use when writing or reviewing React components.
High-impact React and JavaScript patterns for writing better code. Extracted from the Daily React newsletter by Dan Neciu.
10 React patterns and anti-patterns for state management, performance, hooks, and component design:
A decision tree that stops the AI from reaching for useEffect when a better alternative exists. Covers every common misuse: derived state, event handling, state resets, data fetching, parent notifications, effect chains, and external store subscriptions.
Full article: You really, really, really don't need an effect! I swear!
A lookup table of ES2025 and ES2026 APIs that models trained before 2025 don't reach for by default: Iterator helpers, Set methods, Temporal, using, Promise.try, Error.isError, Math.sumPrecise, Map.getOrInsert, native JSON imports, import defer, and more. The skill forces Claude to check output against modern alternatives before finalizing code.
Full article: What's actually new in JavaScript (and what's coming next)
Add the marketplace:
/plugin marketplace add Cst2989/react-tips-skill
Install the plugin:
/plugin install [email protected]
Once installed, the skills are available in Claude Code. They activate automatically when you're writing or reviewing React components. You can also invoke them directly:
/react-tips:react-tips
/react-tips:no-unnecessary-effects
/react-tips:modern-js
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub cst2989/react-tips-skill --plugin react-tipsReact design philosophy for abstraction design, hook review, and hook writing. Covers declarative APIs, lifecycle safety, SSR, state design, effect patterns, TypeScript, and performance.
React and Next.js performance optimization guidelines from Vercel Engineering. Use when writing/reviewing/refactoring React code for optimal performance. Covers async patterns, bundle optimization, server/client components, re-render optimization.
Modern React and UI development expertise. Master React 19, Next.js 15, component architecture, state management, performance optimization, and design systems.
Advanced React skills for hooks, context, and performance optimization.
Idiomatic usage patterns for React, TanStack Table, and better-all.
React, Next.js, and React Native best practices with web design guidelines.