From fe
Use when writing, reviewing, or refactoring frontend code. Triggers on React components, hooks, API integration, TypeScript patterns, folder structure decisions, or error handling implementation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fe:fe-principlesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**코드를 작성하기 전에 반드시 작업에 해당하는 references 파일을 읽어야 한다.**
코드를 작성하기 전에 반드시 작업에 해당하는 references 파일을 읽어야 한다. 요약만으로는 구체적 코드 패턴(form, zod, query, mutation, 폴더 규칙 등)을 정확히 적용할 수 없다.
| 작업 유형 | 필수 읽기 |
|---|---|
| API/Remote/Query/Mutation 작성 | references/api-layer.md |
| 폼(react-hook-form, zod) 작성 | references/coding-style.md + references/folder-structure.md |
| 새 파일/폴더 생성 | references/folder-structure.md |
| 컴포넌트/훅 작성 | references/coding-style.md |
| 에러 처리 | references/error-handling.md |
| 리팩토링/코드 리뷰 | references/code-principles.md |
여러 작업 유형이 겹치면 해당하는 모든 파일을 읽는다.
| 우선순위 | 원칙 | 핵심 |
|---|---|---|
| 1 | 변경 용이성 | 한 종류 변경 = 한 곳에서 끝 |
| 2 | SSOT | 정의 1곳, 사용 여러 곳. 분리 ≠ 추상화 |
| 3 | SRP | 변경 이유 하나 |
| 4 | 응집도↑ 결합도↓ | 함께 바뀌는 것끼리, Page First |
| 5 | 선언적 | What 선언, How는 하위로 |
| 6 | 가독성 | 위에서 아래로 읽히는 구조, 뻔한 인터페이스, 조기 반환 |
| 7 | 인지 부하 | 함수≤30줄, 파라미터≤3, 분기≤3 |
if (isLoading))models/ = 서버 타입(DTO), types/ = 클라이언트 타입(schema 포함)modules/ = UI + 로직 + 상태 묶음 (여러 페이지 재사용)_common/ = 도메인 내 형제 페이지 간 공유fetch/post/update/delete + 명사*Params 타입 객체[domain].dto.ts)types/{domain}.schema.ts에 정의z.infer<typeof schema>로 파생 (별도 정의 금지)useForm + zodResolver + handleSubmit + mutateAsyncform.getValues() 직접 사용 금지 → handleSubmit(async (data) => {}) 사용상세 패턴, 코드 예시, 안티패턴은 아래 파일에 정의되어 있다:
references/api-layer.md — Remote, Query, Mutation, DTO 상세 패턴references/code-principles.md — 코드 철학 상세 + 안티패턴 예시references/coding-style.md — Form, useEffect, 네이밍, 코딩 스타일 상세references/error-handling.md — 에러 처리 체계 상세references/folder-structure.md — 폴더 규칙, 파일 접미사, 배치 규칙 상세npx claudepluginhub kimseunggyu/ai-axProvides modern React patterns for component design, hooks, composition, state management, performance, error handling, and TypeScript best practices. Useful for production-ready apps.
Guides modern React patterns: hooks, composition, performance, TypeScript best practices, state management selection, and React 19 features.
Provides React patterns, hooks, architecture, performance strategies, testing, forms, and styling guidance for modern frontend development.