Write and review React 18/19 components using modern best practices.
The material indicates a prompt-only/documentation-style React patterns skill with no required secrets, no declared remote endpoints, and no evident execution or data exfiltration capability. Given the open-source source and very strong community adoption, the overall risk is low.
The material explicitly states that no keys or environment variables are required; as a prompt/documentation-style skill, there is no sign of credential collection, storage, or third-party account use.
No remote endpoints or network behavior are declared; the content is limited to React coding patterns, with no evidence of sending user data to external services.
The system flags it as prompt-only, and the material consists only of guidance and example snippets; there is no indication of spawning local processes, executing scripts, or invoking system capabilities.
No file read/write, local resource access, or database permission is described; the code examples are instructional and do not imply that the skill itself has data access capabilities.
The source is an open-source GitHub repository with extremely high community adoption (about 210k stars), both strong risk-reducing signals. The license and maintenance status are unclear and worth verifying, but the current material shows no red flags such as closed source, abandonment, or suspicious distribution.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "react-patterns" skill from askskill: 1. Download https://raw.githubusercontent.com/affaan-m/ECC/main/skills/react-patterns/SKILL.md 2. Save it as ~/.claude/skills/react-patterns/SKILL.md 3. Reload skills and tell me it's ready
Please review this React component design. Focus on hooks discipline, Server/Client Component boundaries, and whether Suspense and Error Boundaries are placed correctly. Then provide refactoring suggestions and example code: [Paste component code or design]
A structured review highlighting boundary issues, risks, and improved component organization with code examples.
I am building a React 19 app with form submissions, server data fetching, local UI state, and cross-page shared state. Please provide a state management decision tree explaining when to use useState, useReducer, context, URL state, server data caching, or an external state library.
A scenario-based state management decision guide with selection criteria, tradeoffs, and recommendations.
Please rewrite this React form implementation with accessibility-first design, using modern form actions patterns. Handle submitting, success, and error states, and explain how to improve keyboard and screen reader support: [Paste form code]
An improved form implementation with accessible interaction guidance, state handling logic, and example code.
Idiomatic React 18/19 patterns for building robust, accessible, performant component trees.
forwardRef/useEffect-heavy code// Good: derive during render
function Cart({ items }: { items: CartItem[] }) {
const total = items.reduce((sum, i) => sum + i.price * i.qty, 0);
return <span>{formatMoney(total)}</span>;
}
// Bad: derived state stored separately
function Cart({ items }: { items: CartItem[] }) {
const [total, setTotal] = useState(0);
useEffect(() => {
setTotal(items.reduce((sum, i) => sum + i.price * i.qty, 0));
}, [items]);
return <span>{formatMoney(total)}</span>;
}
Derived state in useEffect adds a render cycle, can desync, and obscures the data flow.
Effects, mutations, network calls, and subscriptions live in event handlers or useEffect — never in the render body.
React has no inheritance model for components. Compose with children, render props, or component props.
See rules/react/hooks.md for the full ruleset. Highlights:
setX(prev => prev + 1)) when new state depends on olduseMemo/useCallback only when a profiler or a dependency chain proves it mattersUsed by one component?
-> useState inside it
Used by parent + a few descendants?
-> lift to nearest common ancestor
Used across distant branches AND low-frequency reads (theme, auth, locale)?
-> React Context
High-frequency updates shared across the tree?
-> external store (Zustand, Jotai, Redux Toolkit)
Derived from a server?
-> server-state library (TanStack Query, SWR, RSC fetch)
Most pages do not need context or a global store. Resist abstraction until duplicated lifting becomes painful.
// Server Component - default, async, never ships JS for itself
export default async function ProductPage({ params }: { params: { id: string } }) {
const product = await db.product.findUnique({ where: { id: params.id } });
if (!product) notFound();
return <ProductView product={product} />;
}
// Client Component - opt in with "use client"
"use client";
export function AddToCartButton({ productId }: { productId: string }) {
const [pending, startTransition] = useTransition();
return (
<button
disabled={pending}
onClick={() => startTransition(() => addToCart(productId))}
>
{pending ? "Adding..." : "Add to cart"}
</button>
);
}
Boundaries:
children<form action={...}> or imperatively from event handlersimport a Server Component from a Client Component file — compose them via children instead<ErrorBoundary fallback={<ErrorView />}>
<Suspense fallback={<UserSkeleton />}>
<UserDetail id={id} />
</Suspense>
</ErrorBoundary>
…
Handle returns, refunds, fraud checks, and warranty claim decisions efficiently.
Use Bun for runtime, bundling, testing, packages, and Node migration decisions.
Use the correct Ethereum Keccak-256 hashing in Node.js and TypeScript.
Apply Nuxt 4 patterns for SSR safety, performance, and data fetching.
Generate images, videos, and audio with one unified AI media workflow.
Design Quarkus 3 backend patterns for messaging, APIs, data, and async workflows.
Optimize React and Next.js performance during coding, review, and refactoring.
Learn frontend patterns for React, Next.js, state, performance, and UI best practices.
Write, fix, and improve tests for React components, hooks, and pages.
Build accessible React and Next.js interfaces with robust UI accessibility patterns.
Build React microfrontends with shared dependencies, dynamic forms, and state management.
Learn idiomatic Go patterns and best practices for robust, maintainable applications.