[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E8G59M4EP7DCE54F6879QN":3,"skill-same:01M7E8G59M4EP7DCE54F6879QN":70},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":14,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7E8G59M4EP7DCE54F6879QN","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.","wxdwu\u002Fnew-api","wxdwu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F80968397?v=4","01M7E6AEMB59N90BKXD77EC83D","Xudong Wu","01M7E6AEMY2BXCDVZ9MJJHFQ4C",0,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fvercel\u002Fskills\u002Freact-best-practices\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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'\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,"metadata":24,"description":7},{"docs":25,"priority":28,"bashPatterns":29,"pathPatterns":30,"importPatterns":39},[26,27],"https:\u002F\u002Freact.dev\u002Freference\u002Freact","https:\u002F\u002Freact.dev\u002Flearn",4,[],[31,32,33,34,35,36,37,38],"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",[40,41],"react","react-dom","main","dde9a06ab10bce3fe52058c783826590231f7df3","plugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fvercel\u002Fskills\u002Freact-best-practices","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api","https:\u002F\u002Fgithub.com\u002Fwxdwu","24120128@bjtu.edu.cn","I am Xudong Wu，a student in beijing jiaotong University, \"I am eager to learn on GitHub and contribute my part to this community.","2026-10-05 17:26:50",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add wxdwu\u002Fnew-api --skill react-best-practices",{"tool":56,"command":57},"bunx","bunx skills add wxdwu\u002Fnew-api --skill react-best-practices",{"tool":59,"command":60},"pnpm","pnpm dlx skills add wxdwu\u002Fnew-api --skill react-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fvercel\u002Fskills\u002Freact-best-practices\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"agents\u002Fopenai.yaml","REFERENCE","参考文档",117,"https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fvercel\u002Fskills\u002Freact-best-practices\u002Fagents\u002Fopenai.yaml",[71,78,85,92,99,106],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7E8SVA2N0JA09RW1XJYXCWX","Zotero","Use Zotero Desktop from Codex to enable\u002Fprobe the local API, search a local Zotero library, list items\u002Fcollections\u002Ftags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full text when requested, and import BibTeX\u002FRIS records into Zotero through the connector server. Use when the user mentions Zotero, citations, references.bib, BibTeX export, local Zotero API, localhost:23119, or adding citations from a Zotero library.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzotero\u002Fskills\u002Fzotero\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7E8ST1FJAD5PWTW2FN1NSK0","zoom-apps-sdk","Use when using Apps SDK.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7E8SRW074NNNCZRCZA5T3Z1","setup-zoom-websockets","Use when building Zoom WebSockets.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7E8SPCFMD3YVPRX2MW8X3RA","setup-zoom-webhooks","Use when building Zoom webhooks.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fwebhooks\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7E8SMCH4RPCX8YSBNGWQCMP","zoom-virtual-agent-web","Zoom Virtual Agent SDK for web embeds. Use for campaign or entry ID chat launch, event-driven controls, user context updates, and CSP-safe deployment.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fvirtual-agent\u002Fweb\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7E8SJCAY323E36Z8SAP8H4M","zoom-virtual-agent-ios","Zoom Virtual Agent iOS integration via WKWebView. Use for Swift\u002FObjective-C script injection, message handlers, support_handoff relay, and URL routing policies.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fvirtual-agent\u002Fios\u002FSKILL.md",[],[]]