React Project Standard
БесплатноБез исполняемых скриптовНе проверенUse when designing or reviewing React + TypeScript project structure, feature/module boundaries, component architecture, hooks organization, routing…
от bovinphang1 262 установки в других каталогахОб этом скилле
React project specifications
Suitable for medium and large module construction, page reconstruction and engineering structure design in React + TypeScript warehouse.
Purpose
Provide engineering structure, module boundaries and default implementation conventions for React + TypeScript projects to ensure clear architecture and maintainable code.
Procedure
This skill mainly solves the problem of "how to design and implement" React engineering tasks, without repeating the basic coding bottom line. When handling React engineering tasks, perform them in the following order:
Identify the warehouse and have an agreement
- Directory organization
- Style system
- Status management solution
- Request packaging method
- Testing framework
- UI component library/design system
Determine which layer the target belongs to
- Routing page -Page private components
- feature business module
- Global common components
- hooks / services / stores / utils
Design the boundaries before writing the code
- What logic belongs to page layout
- Which logic belongs to feature
- Which logic should be transferred to general capabilities?
- Which state should be managed locally and which should be handed over to store/query/URL
- When the status ownership is complex, use the status management process to make a status list first
- When the boundaries of DTO, public props, generic components or
tsconfigare complex, first use the TypeScript project specification process to converge cross-framework type contracts
Complete key quality items when outputting
- loading / error / empty / data status
- Error handling and retrying
- Type constraints
- Key test entrance
- Diversion of necessary special skills
- Check whether the dependency already exists in
package.json. If it is missing, give the installation command first and then use it. - Whether heavy UI capabilities (animation, charts, 3D, editors, maps) are isolated as leaf components and loaded on demand
- Whether images, videos, fonts and other resources are localized and cacheable, and avoid placeholder URLs from entering delivery
- Whether page-level Error Boundary, module-level fallback, API error mapping and user-recoverable actions are consistent
- Whether Tailwind token/variant or responsive layout requirements should be diverted to the corresponding special skill
- Perform lightweight screening for obvious architectural performance risks, such as heavy dependency boundaries, too wide Context, high-frequency derived values and lazy loading fallback; enter the performance optimization workflow when indicator evidence is needed
Detailed reference
Load more detailed reference files as needed:
- Project Directory, Component Hierarchy, Component Boundary and Component Directory Recommendations: Load references/react-project-structure.md.
- Component pattern, Hooks, routing, state ownership, API layer, error handling and Suspense/lazy loading: Load references/react-runtime-patterns.md.
- Style, annotations, TypeScript, tests, anti-patterns and output checklist: Loading references/react-quality-patterns.md.
- Lightweight performance conventions at the React project specification level: Load references/react-performance-patterns.md.
Constraints
- Comply with the existing global rules and React rules of the warehouse by default
- If the warehouse already has a clear directory structure, style system, status management or request encapsulation, the warehouse convention will be used first.
- The size of the component file should be approximately 300 lines; if it exceeds 500 lines or is too complex, it must be split into sub-components, Hooks, utils, and types.
- It is forbidden to add new class components (Error Boundary uses libraries such as
react-error-boundary) - Disable bypassing module exports and importing from feature deep paths
- Do not use
useEffect + setStateto simulate derived values that can be calculated directly - Avoid prop drilling too deep without considering composition or partial encapsulation
- Do not synchronously introduce GSAP, Three.js, Lottie, rich text editor or map SDK into common page components; use dynamic import, route-level subcontracting or leaf component isolation when necessary.
- No bare
fetch, API URL, token refresh or upload processes scattered around React components; cross-border requests should be converged to the API integration layer. - Do not use Error Boundary to handle normal API failures; request errors should first fall into the loading/error/empty/data state and recoverable operations.
- Do not write React performance recommendations as global memo without evidence; first locate request waterfall, bundle boundaries, repeated rendering or effect misus
Установить React Project Standard в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл React Project Standard?
Use when designing or reviewing React + TypeScript project structure, feature/module boundaries, component architecture, hooks organization, routing composition, state/API/error/styling defaults, or repository-wide React conventions. Prefer narrower skills for forms, data fetching, tests, accessibility, virtualization, animation, or security deep dives; Chinese triggers include React project specification, React component architecture.
Как установить скилл React Project Standard?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл React Project Standard запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic