[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1SVPBKA1VQ6MHCD1V0JZB":3,"skill-same:01M6K1SVPBKA1VQ6MHCD1V0JZB":126},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":103,"commitSha":104,"skillDirectory":105,"forksCount":106,"repositoryHtmlUrl":107,"repositoryHomepageUrl":6,"ownerHtmlUrl":108,"ownerBlogUrl":109,"ownerDescription":110,"updatedAt":111,"install":112,"resources":125},"01M6K1SVPBKA1VQ6MHCD1V0JZB","react-best-practices",null,"React best-practices reviewer for TSX files. Triggers after editing multiple TSX components to run a condensed quality checklist covering component structure, hooks usage, accessibility, performance, and TypeScript patterns.","NagyVikt\u002Fcodex-plugins","NagyVikt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137165288?v=4","01M6K0SJ3R2DAZRJKJJS10VN87","Viktor Nagy","01M6K0SJ9HXN0GBD91QDQ9WNVV",2,"MIT","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Freact-best-practices\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"react","best practices","react best practices","linter","ecosystem","loading","app","get","files","alignment","tsx","hooks","fetch","css","improve","Tailwind","deduplication","component library","performance","tailwindcss","2026-11-10 10:12:30",false,"---\nname: react-best-practices\ndescription: React best-practices reviewer for TSX files. Triggers after editing multiple TSX components to run a condensed quality checklist covering component structure, hooks usage, accessibility, performance, and TypeScript patterns.\nmetadata:\n  priority: 4\n  docs:\n    - \"https:\u002F\u002Freact.dev\u002Freference\u002Freact\"\n    - \"https:\u002F\u002Freact.dev\u002Flearn\"\n  pathPatterns:\n    - 'src\u002Fcomponents\u002F**\u002F*.tsx'\n    - 'src\u002Fcomponents\u002F**\u002F*.jsx'\n    - 'app\u002Fcomponents\u002F**\u002F*.tsx'\n    - 'app\u002Fcomponents\u002F**\u002F*.jsx'\n    - 'components\u002F**\u002F*.tsx'\n    - 'components\u002F**\u002F*.jsx'\n    - 'src\u002Fui\u002F**\u002F*.tsx'\n    - 'lib\u002Fcomponents\u002F**\u002F*.tsx'\n  bashPatterns: []\n  importPatterns:\n    - 'react'\n    - 'react-dom'\nvalidate:\n  -\n    pattern: 'from\\s+[''\"](axios)[''\"]|axios\\.(get|post|put|delete)\\('\n    message: 'Client-side axios detected. Use SWR for React data fetching with caching, revalidation, and deduplication.'\n    severity: recommended\n    upgradeToSkill: swr\n    upgradeWhy: 'Replace manual fetch\u002Faxios with SWR for automatic caching, revalidation, and optimistic UI.'\n    skipIfFileContains: 'useSWR|from\\s+[''\"](swr)[''\"]|@tanstack\u002Freact-query'\n  -\n    pattern: 'from\\s+[''\"](styled-components|@emotion\u002Fstyled|@emotion\u002Freact|@mui\u002Fmaterial|@chakra-ui\u002Freact)[''\"]|styled\\.'\n    message: 'Legacy CSS-in-JS or component library detected. Consider shadcn\u002Fui + Tailwind for modern Vercel-native UI.'\n    severity: warn\n    upgradeToSkill: shadcn\n    upgradeWhy: 'Migrate from CSS-in-JS\u002FMUI\u002FChakra to shadcn\u002Fui + Tailwind CSS for better SSR performance and Vercel ecosystem alignment.'\n    skipIfFileContains: '@\u002Fcomponents\u002Fui|shadcn|tailwindcss'\nretrieval:\n  aliases:\n    - react review\n    - component quality\n    - tsx linter\n    - react patterns\n  intents:\n    - review react code\n    - improve component quality\n    - check accessibility\n    - optimize react\n  entities:\n    - hooks\n    - accessibility\n    - React\n    - TSX\n    - component\nchainTo:\n  -\n    pattern: 'from\\s+[''\\\"](axios)[''\"]|axios\\.(get|post|put|delete)\\('\n    targetSkill: swr\n    message: 'Client-side axios detected — loading SWR guidance for React data fetching with caching and revalidation.'\n  -\n    pattern: 'from\\s+[''\\\"](styled-components|@emotion\u002Fstyled|@emotion\u002Freact|@mui\u002Fmaterial|@chakra-ui\u002Freact)[''\"]|styled\\.'\n    targetSkill: shadcn\n    message: 'Legacy CSS-in-JS or component library detected — loading shadcn\u002Fui guidance for modern Vercel-native UI.'\n  -\n    pattern: 'fetch\\s*\\([^)]*\\)\\s*\\.then\\s*\\(|\\.then\\s*\\(\\s*(res|response)\\s*=>'\n    targetSkill: swr\n    message: 'Manual fetch().then() in component — loading SWR guidance for declarative data fetching with caching and revalidation.'\n    skipIfFileContains: 'useSWR|from\\s+[''\"\"](swr)[''\"\"]|useQuery|@tanstack\u002Freact-query'\n\n---\n\n# React Best-Practices Review\n\nAfter editing several TSX\u002FJSX files, run through this condensed checklist to catch common issues before they compound.\n\n## Component Structure\n\n- **One component per file** — colocate helpers only if they are private to that component\n- **Named exports** over default exports for better refactoring and tree-shaking\n- **Props interface** defined inline or colocated, not in a separate `types.ts` unless shared\n- **Destructure props** in the function signature: `function Card({ title, children }: CardProps)`\n- **Avoid barrel files** (`index.ts` re-exports) in large projects — they hurt tree-shaking\n\n## Hooks\n\n- **Rules of Hooks** — never call hooks conditionally or inside loops\n- **Custom hooks** — extract reusable logic into `use*` functions when two or more components share it\n- **Dependency arrays** — list every reactive value; lint with `react-hooks\u002Fexhaustive-deps`\n- **`useCallback` \u002F `useMemo`** — use only when passing to memoized children or expensive computations, not by default\n- **`useEffect` cleanup** — return a cleanup function for subscriptions, timers, and abort controllers\n\n## State Management\n\n- **Colocate state** — keep state as close as possible to where it is consumed\n- **Derive, don't sync** — compute values from existing state instead of adding `useEffect` to mirror state\n- **Avoid prop drilling** past 2–3 levels — use context or composition (render props \u002F children)\n- **Server state** — use React Query, SWR, or Server Components instead of manual fetch-in-effect\n\n## Accessibility (a11y)\n\n- **Semantic HTML first** — use `\u003Cbutton>`, `\u003Ca>`, `\u003Cnav>`, `\u003Cmain>`, etc. before reaching for `\u003Cdiv onClick>`\n- **`alt` on every `\u003Cimg>`** — decorative images get `alt=\"\"`\n- **Keyboard navigation** — interactive elements must be focusable and operable via keyboard\n- **`aria-*` attributes** — only when native semantics are insufficient; don't redundantly label\n\n## Performance\n\n- **`React.memo`** — wrap pure display components that re-render due to parent changes\n- **Lazy loading** — use `React.lazy` + `Suspense` for route-level code splitting\n- **List keys** — use stable, unique IDs; never use array index as key for reorderable lists\n- **Avoid inline object\u002Farray literals** in JSX props — they create new references every render\n- **Image optimization** — use `next\u002Fimage` or responsive `srcSet`; avoid unoptimized `\u003Cimg>` in Next.js\n\n## TypeScript Patterns\n\n- **`React.FC` is optional** — prefer plain function declarations with explicit return types\n- **`PropsWithChildren`** — use when the component accepts `children` but has no other custom props\n- **Event handlers** — type as `React.MouseEvent\u003CHTMLButtonElement>`, not `any`\n- **Generics for reusable components** — e.g., `function List\u003CT>({ items, renderItem }: ListProps\u003CT>)`\n- **`as const` for config objects** — ensures literal types for discriminated unions and enums\n\n## Design System Consistency\n\n- Prefer shadcn primitives in Vercel-stack apps: Button, Input, Tabs, Dialog, AlertDialog, Sheet, Table, Card before building ad-hoc equivalents.\n- Reject container soup: repeated `div rounded-xl border p-6` blocks usually mean stronger composition primitives are missing.\n- Typography consistency: use Geist Sans and Geist Mono consistently; reserve monospace for code, metrics, IDs, and timestamps.\n\n## Review Workflow\n\n1. Scan recent TSX edits for the patterns above\n2. Flag any violations with file path and line reference\n3. Suggest minimal fixes — do not refactor beyond what is needed\n4. If multiple issues exist in one file, batch them into a single edit\n","# React Best-Practices Review\n\nAfter editing several TSX\u002FJSX files, run through this condensed checklist to catch common issues before they compound.\n\n## Component Structure\n\n- **One component per file** — colocate helpers only if they are private to that component\n- **Named exports** over default exports for better refactoring and tree-shaking\n- **Props interface** defined inline or colocated, not in a separate `types.ts` unless shared\n- **Destructure props** in the function signature: `function Card({ title, children }: CardProps)`\n- **Avoid barrel files** (`index.ts` re-exports) in large projects — they hurt tree-shaking\n\n## Hooks\n\n- **Rules of Hooks** — never call hooks conditionally or inside loops\n- **Custom hooks** — extract reusable logic into `use*` functions when two or more components share it\n- **Dependency arrays** — list every reactive value; lint with `react-hooks\u002Fexhaustive-deps`\n- **`useCallback` \u002F `useMemo`** — use only when passing to memoized children or expensive computations, not by default\n- **`useEffect` cleanup** — return a cleanup function for subscriptions, timers, and abort controllers\n\n## State Management\n\n- **Colocate state** — keep state as close as possible to where it is consumed\n- **Derive, don't sync** — compute values from existing state instead of adding `useEffect` to mirror state\n- **Avoid prop drilling** past 2–3 levels — use context or composition (render props \u002F children)\n- **Server state** — use React Query, SWR, or Server Components instead of manual fetch-in-effect\n\n## Accessibility (a11y)\n\n- **Semantic HTML first** — use `\u003Cbutton>`, `\u003Ca>`, `\u003Cnav>`, `\u003Cmain>`, etc. before reaching for `\u003Cdiv onClick>`\n- **`alt` on every `\u003Cimg>`** — decorative images get `alt=\"\"`\n- **Keyboard navigation** — interactive elements must be focusable and operable via keyboard\n- **`aria-*` attributes** — only when native semantics are insufficient; don't redundantly label\n\n## Performance\n\n- **`React.memo`** — wrap pure display components that re-render due to parent changes\n- **Lazy loading** — use `React.lazy` + `Suspense` for route-level code splitting\n- **List keys** — use stable, unique IDs; never use array index as key for reorderable lists\n- **Avoid inline object\u002Farray literals** in JSX props — they create new references every render\n- **Image optimization** — use `next\u002Fimage` or responsive `srcSet`; avoid unoptimized `\u003Cimg>` in Next.js\n\n## TypeScript Patterns\n\n- **`React.FC` is optional** — prefer plain function declarations with explicit return types\n- **`PropsWithChildren`** — use when the component accepts `children` but has no other custom props\n- **Event handlers** — type as `React.MouseEvent\u003CHTMLButtonElement>`, not `any`\n- **Generics for reusable components** — e.g., `function List\u003CT>({ items, renderItem }: ListProps\u003CT>)`\n- **`as const` for config objects** — ensures literal types for discriminated unions and enums\n\n## Design System Consistency\n\n- Prefer shadcn primitives in Vercel-stack apps: Button, Input, Tabs, Dialog, AlertDialog, Sheet, Table, Card before building ad-hoc equivalents.\n- Reject container soup: repeated `div rounded-xl border p-6` blocks usually mean stronger composition primitives are missing.\n- Typography consistency: use Geist Sans and Geist Mono consistently; reserve monospace for code, metrics, IDs, and timestamps.\n\n## Review Workflow\n\n1. Scan recent TSX edits for the patterns above\n2. Flag any violations with file path and line reference\n3. Suggest minimal fixes — do not refactor beyond what is needed\n4. If multiple issues exist in one file, batch them into a single edit\n",{"name":5,"chainTo":44,"metadata":57,"validate":74,"retrieval":87,"description":7},[45,49,53],{"message":46,"pattern":47,"targetSkill":48},"Client-side axios detected — loading SWR guidance for React data fetching with caching and revalidation.","from\\s+['\\\"](axios)['\"]|axios\\.(get|post|put|delete)\\(","swr",{"message":50,"pattern":51,"targetSkill":52},"Legacy CSS-in-JS or component library detected — loading shadcn\u002Fui guidance for modern Vercel-native UI.","from\\s+['\\\"](styled-components|@emotion\u002Fstyled|@emotion\u002Freact|@mui\u002Fmaterial|@chakra-ui\u002Freact)['\"]|styled\\.","shadcn",{"message":54,"pattern":55,"targetSkill":48,"skipIfFileContains":56},"Manual fetch().then() in component — loading SWR guidance for declarative data fetching with caching and revalidation.","fetch\\s*\\([^)]*\\)\\s*\\.then\\s*\\(|\\.then\\s*\\(\\s*(res|response)\\s*=>","useSWR|from\\s+['\"\"](swr)['\"\"]|useQuery|@tanstack\u002Freact-query",{"docs":58,"priority":61,"bashPatterns":62,"pathPatterns":63,"importPatterns":72},[59,60],"https:\u002F\u002Freact.dev\u002Freference\u002Freact","https:\u002F\u002Freact.dev\u002Flearn",4,[],[64,65,66,67,68,69,70,71],"src\u002Fcomponents\u002F**\u002F*.tsx","src\u002Fcomponents\u002F**\u002F*.jsx","app\u002Fcomponents\u002F**\u002F*.tsx","app\u002Fcomponents\u002F**\u002F*.jsx","components\u002F**\u002F*.tsx","components\u002F**\u002F*.jsx","src\u002Fui\u002F**\u002F*.tsx","lib\u002Fcomponents\u002F**\u002F*.tsx",[19,73],"react-dom",[75,81],{"message":76,"pattern":77,"severity":78,"upgradeWhy":79,"upgradeToSkill":48,"skipIfFileContains":80},"Client-side axios detected. Use SWR for React data fetching with caching, revalidation, and deduplication.","from\\s+['\"](axios)['\"]|axios\\.(get|post|put|delete)\\(","recommended","Replace manual fetch\u002Faxios with SWR for automatic caching, revalidation, and optimistic UI.","useSWR|from\\s+['\"](swr)['\"]|@tanstack\u002Freact-query",{"message":82,"pattern":83,"severity":84,"upgradeWhy":85,"upgradeToSkill":52,"skipIfFileContains":86},"Legacy CSS-in-JS or component library detected. Consider shadcn\u002Fui + Tailwind for modern Vercel-native UI.","from\\s+['\"](styled-components|@emotion\u002Fstyled|@emotion\u002Freact|@mui\u002Fmaterial|@chakra-ui\u002Freact)['\"]|styled\\.","warn","Migrate from CSS-in-JS\u002FMUI\u002FChakra to shadcn\u002Fui + Tailwind CSS for better SSR performance and Vercel ecosystem alignment.","@\u002Fcomponents\u002Fui|shadcn|tailwindcss",{"aliases":88,"intents":93,"entities":98},[89,90,91,92],"react review","component quality","tsx linter","react patterns",[94,95,96,97],"review react code","improve component quality","check accessibility","optimize react",[30,99,100,101,102],"accessibility","React","TSX","component","main","9a4409c8751439c3aeeea2bc3940ba05dc3cd3b5","plugins\u002Fvercel\u002Fskills\u002Freact-best-practices",0,"https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FNagyVikt","https:\u002F\u002Fwebu.hu\u002F","Codex is a tool they said...\r\n\r\nCreator of GitGuardex, CueCards. Tech stack: Next.js · TypeScript · Rust · Linux. ","2026-03-30 02:19:53",{"source":8,"skillName":5,"commands":113,"prompt":123,"zipAvailable":124},[114,117,120],{"tool":115,"command":116},"npx","npx skills add NagyVikt\u002Fcodex-plugins --skill react-best-practices",{"tool":118,"command":119},"bunx","bunx skills add NagyVikt\u002Fcodex-plugins --skill react-best-practices",{"tool":121,"command":122},"pnpm","pnpm dlx skills add NagyVikt\u002Fcodex-plugins --skill react-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Freact-best-practices\u002FSKILL.md",true,[],[127,153,175,198,219,241],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":39},"01M6K1ZEN8P9R2S6NPNJNJ8JVH","workflow","Vercel Workflow DevKit (WDK) expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[129,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152],"workflows","create","run","streaming","logs","start","why","loop","wait for","branch","auto","log","conversation","human","lib","condition","rendering","retries","sleep",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":39},"01M6K1Z71NWFSPHK2VJJ73MVSY","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[155,160,137,161,162,163,143,164,165,166,167,168,169,25,170,171,172,173,24,174],"auth","routing middleware","api","projects","user story","full stack","jest","local","project","end","false","unit","error","middleware","unit test",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":39},"01M6K1YPRYJS3BQEDP8HKBHPEJ","vercel-storage","Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[182,183,184,185,136,186,187,144,188,189,190,191,192,193,25,148,194,195,196,197],"storage","vercel storage","vercel","config","supabase","migrate","router","clerk","expert","prisma","connection pooling","neon","turso","upstash","URL","auth0",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":39},"01M6K1YFEP0GPPGMQ3D0FPTS27","vercel-services","Vercel Services — deploy multiple services within a single Vercel project. Use for monorepo layouts or when combining a backend (Python, Go) with a frontend (Next.js, Vite) in one deployment.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[205,206,184,207,208,209,210,211,212,213,214,103,215,216,168,26,25,217,172,218],"vercel services","services","frontend","docker compose","SET","configure","monorepo","go api","fastapi","up","aws lambda","go backend","apps","python backend",{"skillNo":220,"name":221,"nameZh":6,"description":222,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":223,"categories":224,"keywords":225,"publishedAt":39},"01M6K1Y8S3CRD43DPKX0PK1MTT","vercel-sandbox","Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[226,227,184,228,229,135,136,230,231,232,233,234,235,236,237,238,24,239,221,240],"sandbox","vercel sandbox","safe","ai agents","code","ai sdk","Code Generation","playground","generated","spawn","install","runner","io","child","student",{"skillNo":242,"name":243,"nameZh":6,"description":244,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":245,"categories":246,"keywords":247,"publishedAt":39},"01M6K1Y1J8S7AN97H75SHBGF7J","vercel-queues","Vercel Queues guidance (public beta) — durable event streaming with topics, consumer groups, retries, and delayed delivery. $0.60\u002F1M ops. Powers Workflow DevKit. Use when building async processing, fan-out patterns, or event-driven architectures.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-queues\u002FSKILL.md",[],[248,184,129,134,137,249,209,162,210,214,250,251,252,253,25,148,254,151,24,255],"vercel queues","beta","message","delivery","across","worker","processing","at"]