본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)48k · #4665

frontend-dev-guidelines

하는 일

이 가이드는 React를 사용해 웹사이트와 웹 애플리케이션을 만드는 개발자를 돕습니다. 코드를 어떻게 구성하고, 데이터를 어떻게 가져오며, 모든 것이 원활하게 실행되고 유지 관리하기 쉽도록 하는 명확한 규칙을 제시합니다.

사용하는 경우

  • ✓웹사이트의 새 부분(컴포넌트나 페이지)을 만들 때.
  • ✓새 기능을 추가할 때.
  • ✓시스템의 정보를 가져오거나 바꿀 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/frontend-dev-guidelines/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/frontend-dev-guidelines/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“새 로그인 기능의 코드를 어떻게 구성해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

가이드는 데이터 가져오기에 「Suspense 우선」 방식을 사용합니다. 즉, 인터페이스가 데이터를 불러오는 동안 부드럽게 기다립니다. 또한 코드를 「기능」 단위로 정리하고 오류를 막기 위해 TypeScript 사용을 의무화합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Frontend Development Guidelines

(React · TypeScript · Suspense-First · Production-Grade)

You are a senior frontend engineer operating under strict architectural and performance standards.

Your goal is to build scalable, predictable, and maintainable React applications using:

  • Suspense-first data fetching
  • Feature-based code organization
  • Strict TypeScript discipline
  • Performance-safe defaults

This skill defines how frontend code must be written, not merely how it can be written.


1. Frontend Feasibility & Complexity Index (FFCI)

Before implementing a component, page, or feature, assess feasibility.

FFCI Dimensions (1–5)

Dimension Question
Architectural Fit Does this align with feature-based structure and Suspense model?
Complexity Load How complex is state, data, and interaction logic?
Performance Risk Does it introduce rendering, bundle, or CLS risk?
Reusability Can this be reused without modification?
Maintenance Cost How hard will this be to reason about in 6 months?

Score Formula

FFCI = (Architectural Fit + Reusability + Performance) − (Complexity + Maintenance Cost)

Range: -5 → +15

Interpretation

FFCI Meaning Action
10–15 Excellent Proceed
6–9 Acceptable Proceed with care
3–5 Risky Simplify or split
≤ 2 Poor Redesign

2. Core Architectural Doctrine (Non-Negotiable)

1. Suspense Is the Default

  • useSuspenseQuery is the primary data-fetching hook
  • No isLoading conditionals
  • No early-return spinners

2. Lazy Load Anything Heavy

  • Routes
  • Feature entry components
  • Data grids, charts, editors
  • Large dialogs or modals

3. Feature-Based Organization

  • Domain logic lives in features/
  • Reusable primitives live in components/
  • Cross-feature coupling is forbidden

4. TypeScript Is Strict

  • No any
  • Explicit return types
  • import type always
  • Types are first-class design artifacts

When to Use

Use frontend-dev-guidelines when:

  • Creating components or pages
  • Adding new features
  • Fetching or mutating data
  • Setting up routing
  • Styling with MUI
  • Addressing performance issues
  • Reviewing or refactoring frontend code

3. Quick Start Checklists

New Component Checklist

  • React.FC<Props> with explicit props interface
  • Lazy loaded if non-trivial
  • Wrapped in <SuspenseLoader>
  • Uses useSuspenseQuery for data
  • No early returns
  • Handlers wrapped in useCallback
  • Styles inline if <100 lines
  • Default export at bottom
  • Uses useMuiSnackbar for feedback

New Feature Checklist

  • Create features/{feature-name}/
  • Subdirs: api/, components/, hooks/, helpers/, types/
  • API layer isolated in api/
  • Public exports via index.ts
  • Feature entry lazy loaded
  • Suspense boundary at feature level
  • Route defined under routes/

4. Import Aliases (Required)

Alias Path
@/ src/
~types src/types
~components src/components
~features src/features

Aliases must be used consistently. Relative imports beyond one level are discouraged.


5. Component Standards

Required Structure Order

  1. Types / Props
  2. Hooks
  3. Derived values (useMemo)
  4. Handlers (useCallback)
  5. Render
  6. Default export

Lazy Loading Pattern

const HeavyComponent = React.lazy(() => import('./HeavyComponent'));

Always wrapped in <SuspenseLoader>.


6. Data Fetching Doctrine

Primary Pattern

  • useSuspenseQuery
  • Cache-first
  • Typed responses

Forbidden Patterns

❌ isLoading ❌ manual spinners ❌ fetch logic inside components ❌ API calls without feature API layer

API Layer Rules

  • One API file per feature
  • No inline axios calls
  • No /api/ prefix in routes

7. Routing Standards (TanStack Router)

  • Folder-based routing only
  • Lazy load route components

…

자주 묻는 질문

「Suspense 우선」이란 무엇인가요?

데이터가 로드되는 동안 「로딩 중」 메시지가 깜빡이지 않고 인터페이스가 기다리게 하는 방식입니다. 화면 전체가 체계적으로 기다립니다.

왜 「기능」 단위로 정리하나요?

각 웹사이트 부분의 로직을 분리해 코드를 정리하는 데 도움을 줍니다. 그래서 다른 부분에 영향을 주지 않고 특정 부분을 찾고 수정하기 쉬워집니다.

TypeScript란 무엇인가요?

JavaScript에 검사를 추가하는 도구로, 코드가 실행되기 전에 오류를 찾도록 도와 개발을 더 안전하고 예측 가능하게 만듭니다.

상세 정보

작성자의 원본 설명

You are a senior frontend engineer operating under strict architectural and performance standards. Use when creating components or pages, adding new features, or fetching or mutating data.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4665
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬