Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

React Project Standard

БесплатноБез исполняемых скриптовНе проверен

Use when designing or reviewing React + TypeScript project structure, feature/module boundaries, component architecture, hooks organization, routing…

bovinphangот 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:

  1. Identify the warehouse and have an agreement

    • Directory organization
    • Style system
    • Status management solution
    • Request packaging method
    • Testing framework
    • UI component library/design system
  2. Determine which layer the target belongs to

    • Routing page -Page private components
    • feature business module
    • Global common components
    • hooks / services / stores / utils
  3. 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 tsconfig are complex, first use the TypeScript project specification process to converge cross-framework type contracts
  4. 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:

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 + setState to 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
Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить React Project Standard с