Communitygithub.com

ComeOnOliver/skillshub

Feature-Sliced Design(FSD) 기반의 확장 가능한 프로젝트 구조. Next.js 프로젝트를 Feature-Sliced Design 아키텍처로 구성할 때 사용합니다. (트리거: src/features/**, src/entities/**, src/widgets/**, FSD, Feature Sliced Design, slices, segments)

skillshub란 무엇인가요?

이 스킬은 확장 가능한 애플리케이션 구조를 위해 **Feature-Sliced Design (FSD)** 아키텍처를 채택하도록 안내합니다. Next.js 프로젝트에서 특히 유용하며, 20개 이상의 기능을 가질 정도로 프로젝트가 성장할 것으로 예상될 때 권장됩니다. FSD는 코드를 비즈니스 도메인별로 그룹화하여 유지보수성과 확장성을 높이며, App, Widgets, Features, Entities, Shared 계층 간의 엄격한 의존성 규칙을 적용합니다. 주요 규칙으로는 pages.tsx에서 비즈니스 로직을 제거하고, 슬라이스 간 직접 가져오기를 금지하며, 엔티티를 조기에 생성하지 않는 것이 포함됩니다. 지원 플랫폼은 Claude Code, Cursor, Codex 등 AI 에이전트 도구이며, Next.js의 App Router 환경에서 최적의 구조를 제공합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/HoangNguyen0403/agent-skills-standard/nextjs-architecture

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

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

문서

아키텍처 (Feature-Sliced Design)

우선순위: P2 (중간)

확장 가능한 애플리케이션을 위해 Feature-Sliced Design (FSD) 을 채택합니다. 경고: FSD는 보일러플레이트를 도입합니다. 프로젝트가 크게 성장할 것으로 예상될 때만 사용하세요 (예: 20개 이상의 기능). 소규모 프로젝트의 경우 간단한 모듈 기반 구조가 더 적합합니다.

전략

  1. RSC 경계: 서버에서 클라이언트로 전달되는 props에 대해 엄격한 직렬화 규칙을 적용합니다. RSC 경계 및 직렬화를 참조하세요.
  2. App 계층은 얇게: app/ 디렉토리(App Router)는 오직 라우팅만을 위한 것입니다.
    • 규칙: page.tsx는 Widgets/Features만 가져와야 합니다. 페이지에 직접 비즈니스 로직(useEffect, fetch)이 없어야 합니다.
  3. 타입보다 슬라이스: 파일 타입(컴포넌트, 훅, 유틸)이 아닌 비즈니스 도메인(사용자, 제품, 장바구니)별로 코드를 그룹화합니다.
    • 나쁜 예: src/components/LoginForm.tsx, src/hooks/useLogin.ts
    • 좋은 예: src/features/auth/login/ 안에 모두 포함.
  4. 계층 계층 구조: 코드는 아래 계층에서만 가져올 수 있습니다.
    • App -> Widgets -> Features -> Entities -> Shared.
  5. 과도한 Entity 생성 피하기: 미리 Entities를 생성하지 마십시오.
    • 규칙: 로직은 Features 또는 Pages에서 시작하세요. 데이터/로직이 여러 다른 기능에서 엄격히 재사용될 때만 Entities로 이동하세요.
    • 규칙: 단순 CRUD는 entities가 아닌 shared/api에 속합니다.
  6. 표준 세그먼트: 슬라이스 내에서 표준 세그먼트 이름을 사용하세요.
    • ui (컴포넌트), model (상태/액션), api (데이터 페칭), lib (헬퍼), config (상수).
    • 피해야 할 것: components, hooks, services를 세그먼트 이름으로 사용하지 마세요.

구조 참조

특정 디렉터리 레이아웃 및 계층 정의는 참조 문서를 확인하세요.

아키텍처 체크리스트 (필수)

  • 계층 가져오기: 어떤 계층이 자기 위에 있는 계층에서 가져오고 있습니까? (App > Widgets > Features > Entities > Shared)

  • 페이지 로직: page.tsx가 얇게 유지되며 Widgets/Features만 포함하고 useEffect/fetch가 전혀 없습니까?

  • RSC 경계: 서버 컴포넌트가 적절한 'use client' 경계로 클라이언트 컴포넌트와 분리되어 있습니까?

  • 공개 API: 모든 슬라이스 접근이 최상위 index.ts (공개 API)를 통해 이루어집니까?

  • 슬라이스 간: 같은 계층 내의 슬라이스끼리 서로 직접 가져오고 있습니까? (금지됨)

  • 서버 액션: Feature의 model/ 폴더에 배치합니다 (예: features/auth/model/actions.ts).

  • 데이터 접근 계층 (DAL): Entity의 model/ 폴더에 배치합니다 (예: entities/user/model/dal.ts).

  • UI 컴포넌트: 기본 UI(shadcn)는 shared/ui에 속합니다. 기능별 UI는 features/*/ui에 속합니다.

안티 패턴

  • 슬라이스 간 직접 가져오기 금지: 같은 계층의 슬라이스끼리 서로 직접 가져와서는 안 됩니다.
  • page.tsx에 비즈니스 로직 금지: 페이지는 Widgets/Features만 가져오며, useEffect/fetch가 전혀 없어야 합니다.
  • 파일 타입 폴더 금지: 타입별(components/, hooks/)이 아닌 도메인별(features/auth/)로 그룹화합니다.
  • 조기 Entity 생성 금지: Features에서 시작하고, 엄격한 재사용이 확인될 때만 Entities로 이동하세요.

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

관련 스킬