원클릭으로
fsd-frontend-architecture
Архитектура FSD: layers, imports, public APIs. Используй для: frontend boundaries. EN: FSD architecture, place code.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Архитектура FSD: layers, imports, public APIs. Используй для: frontend boundaries. EN: FSD architecture, place code.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Отлаживает browser-only failures через Chrome DevTools MCP и Playwright CLI. Используй для: консоль, сеть, runtime, layout, memory, performance, Lighthouse. EN triggers: browser debug, console, network, runtime, performance.
Маршрутизирует browser tasks только через managed Playwright CLI и Chrome DevTools MCP. Используй для: UI, визуально, скриншот, Figma, консоль, сеть, перфоманс. EN triggers: browser routing, UI validation, screenshots, visual QA, console, network.
Валидирует UI и сценарии через Playwright CLI evidence. Используй для: проверь UI, браузер, скриншот, регрессия, адаптив, бизнес-логика, визуально. EN triggers: validate UI, browser check, regression, responsive, screenshot.
Низкоуровневая browser automation через Playwright CLI. Используй для: screenshots, snapshots, headed sessions, traces, responsive, UI proof. EN triggers: Playwright CLI validation, screenshots, snapshots, traces.
Проводит visual QA для Figma, screenshots и reference images. Используй для: pixel-perfect, сравни с Figma, сравни с фото, diff. EN triggers: visual diff, pixel-perfect, compare Figma, reference image.
Маршрутизирует старые Webwright-запросы в управляемые CloakBrowser workflows. Используй для: длинная web-задача, RPA, extraction. EN triggers: compatibility browser task, long-horizon web task.
| name | fsd-frontend-architecture |
| description | Архитектура FSD: layers, imports, public APIs. Используй для: frontend boundaries. EN: FSD architecture, place code. |
Keep frontend design implementation structurally clean and scalable. Default to strict Feature-Sliced Design for React application code.
Use this skill without waiting for an explicit $fsd-frontend-architecture call when the task involves:
app, pages, widgets, features, entities, or shared.Use it together with design-system-implementation whenever token or shared UI placement is involved.
For Figma-to-code work with dynamic content or i18n decisions, read ../../references/figma-delivery-contract.md.
Use these layers only:
app: routing, providers, root layouts, global styles, app-level initialization.pages: route-level screens and page-specific composition.widgets: large self-contained UI blocks or page sections that combine features/entities/shared.features: user actions that provide business value.entities: domain entities and their UI/model/api where appropriate.shared: reusable UI primitives, assets, tokens, config, API clients, libs without business logic.Do not use the deprecated processes layer.
Files can import only from lower layers:
app can import from all lower layers.pages can import from widgets, features, entities, shared.widgets can import from features, entities, shared.features can import from entities, shared.entities can import from shared.shared imports only internal shared segments or external libraries.Slices on the same layer must not import each other's internals. Use public APIs.
Every slice and relevant segment must expose a public API, usually index.ts.
External imports must target public APIs, not internal files:
import { UserCard } from "@/entities/user".import { UserCard } from "@/entities/user/ui/UserCard".Use this placement by default:
shared/config/theme or the existing centralized theme location.shared/ui.shared/ui if generic, otherwise the owning widget/feature.shared/assets.shared/i18n or the existing centralized i18n location.entities, features, widgets, or pages API/model boundaries, depending on project conventions.entities/<entity> for reusable domain representation, features/<action> for user actions, widgets/<block> for composed reusable blocks, and pages/<page> for route-specific composition.pages/<page>/ui.widgets/<widget>/ui.features/<feature>/ui, features/<feature>/model, features/<feature>/api.entities/<entity>/ui, entities/<entity>/model, entities/<entity>/api.Never paste generated Figma, shadcn, or ReactBits code blindly.
Before committing generated or copied code:
For design implementation, report in Russian:
Placement: layer/slice/segment decisions.Content ownership: static/config/admin/API/session placement and i18n namespace decisions.Public APIs: new or changed exports.Architecture constraints: import boundaries or compromises.Generated code adaptation: what was removed, tokenized, or moved.Validation: checks proving the placement works.