Communitygithub.com

ComeOnOliver/skillshub

React, Vue 또는 프론트엔드 컴포넌트 코드를 검토할 때 자동으로 호출됩니다. 컴포넌트 아키텍처, 상태 관리 패턴 및 UI 모범 사례를 강제합니다.

skillshub란 무엇인가요?

이 스킬은 프론트엔드 코드 리뷰 시 컴포넌트 아키텍처, 상태 관리, 성능, 접근성 및 안티패턴을 자동으로 점검하도록 설계되었습니다. React, Vue, Svelte 등 주요 프론트엔드 프레임워크를 지원하며, 단일 책임 원칙, props 개수 제한, 상태 위치 최적화, useMemo/useCallback을 통한 불필요한 리렌더링 방지, 시맨틱 HTML 및 ARIA 준수 등 핵심 모범 사례를 검증합니다. God Component, 로직 인라인 처리, Props Drilling, Boolean Prop 남용 같은 흔한 안티패턴을 구체적인 코드 예시와 함께 식별합니다. 또한 주니어 개발자에게 정답을 주지 않고 스스로 깨닫게 하는 소크라테스식 질문 목록을 제공하며, 파일 크기 200줄 초과, useState 5개 이상 사용 등 위험 신호를 감지하는 기준이 포함되어 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/danielpodolsky/frontend-fundamentals

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

프론트엔드 기본 원칙 리뷰

"컴포넌트는 하나의 일만 잘 해야 합니다. '그리고'로 설명하고 있다면 분리하세요."

적용 시점

이 스킬은 다음을 검토할 때 활성화하세요:

  • React/Vue/Svelte 컴포넌트
  • UI 렌더링 로직
  • 상태 관리 코드
  • CSS/스타일링 결정
  • 클라이언트 사이드 라우팅

리뷰 체크리스트

컴포넌트 아키텍처

  • 단일 책임: 각 컴포넌트가 하나의 작업만 수행합니까?
  • 크기 확인: 컴포넌트가 200줄 미만입니까?
  • Props 개수: props가 7개 미만입니까?
  • 이름 짓기: '그리고'를 사용하지 않고 컴포넌트를 설명할 수 있습니까?

상태 관리

  • 위치 최적화: 상태가 사용되는 위치와 최대한 가깝게 있습니까?
  • 상태 끌어올리기: 형제 컴포넌트 간에 부모를 통해 상태가 적절히 공유됩니까?
  • Context vs Props: prop drilling이 방지되었습니까? (최대 3단계)
  • 서버 상태: 서버 데이터가 별도로 관리됩니까? (React Query/SWR)

성능

  • 메모이제이션: 비용이 많이 드는 계산이 useMemo로 감싸졌습니까?
  • 콜백: 이벤트 핸들러가 필요한 곳에 useCallback으로 감싸졌습니까?
  • 리렌더링: 이 코드가 불필요한 리렌더링을 유발합니까?
  • 지연 로딩: 무거운 컴포넌트가 코드 스플리팅 되었습니까?

접근성

  • 시맨틱 HTML: 적절한 요소가 사용되었습니까? (button vs div)
  • ARIA: 상호작용 요소에 접근성이 보장됩니까?
  • 키보드: 사용자가 마우스 없이 탐색할 수 있습니까?

흔한 실수 (안티패턴)

1. God 컴포넌트

❌ UserDashboard.tsx (1000줄)
   - 데이터 가져오기, 상태 관리, UI 렌더링, 라우팅 처리

✅ 다음과 같이 분할:
   - UserDashboardPage.tsx (컨테이너)
   - UserStats.tsx (프레젠테이션)
   - UserActivity.tsx (프레젠테이션)
   - useUserData.ts (훅)

2. 렌더 내 로직

❌ return <div>{users.filter(u => u.active).map(u => ...)}</div>

✅ const activeUsers = useMemo(() => users.filter(u => u.active), [users]);
   return <div>{activeUsers.map(u => ...)}</div>

3. Prop Drilling

❌ <App user={user}>
     <Layout user={user}>
       <Main user={user}>
         <Widget user={user} />

✅ const user = useUser(); // Widget.tsx 내부

4. Boolean Prop 남발

❌ <Button primary secondary large small disabled loading />

✅ <Button variant="primary" size="large" state="loading" />

소크라테스 질문

주니어 개발자에게 답을 주는 대신 다음 질문을 하세요:

  1. 아키텍처: "이 컴포넌트의 유일한 작업은 무엇인가요?"
  2. 분할: "헤더 부분만 다른 곳에서 사용하라고 한다면 가능할까요?"
  3. 상태: "이 데이터가 필요한 사람은 누구인가요? 여기에 있어야 할까요, 아니면 더 위에 있어야 할까요?"
  4. 성능: "부모가 리렌더링되면 어떤 일이 발생하나요?"
  5. 복잡성: "새로운 개발자가 5분 안에 이 코드를 이해할 수 있을까요?"

표준 참조

자세한 패턴은 다음에서 확인하세요:

  • /standards/frontend/component-architecture.md

지적해야 할 위험 신호

신호질문할 내용
파일 > 200줄"이것을 더 작은 조각으로 나눌 수 있을까요?"
> 5개의 useState 호출"이 중 일부 상태는 끌어올리거나 결합해야 할까요?"
외부 값을 사용하는 useEffect의 [] 의존성"의존성이 누락된 것은 아닌가요?"
직접 DOM 조작"이 작업을 React 방식으로 할 수 있나요?"
모든 곳에 인라인 스타일"일관된 스타일링 방식을 사용해야 할까요?"

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

관련 스킬