Communitygithub.com

YepAPI/skills

레이아웃 그리드, KPI 카드, 정렬/필터링이 가능한 데이터 테이블, 사이드바 내비게이션 및 반응형 중단점을 지원합니다.

skills란 무엇인가요?

이 스킬은 대시보드 UI를 설계하고 구현하기 위한 종합적인 규칙과 패턴을 제공합니다. 개발자가 일관된 레이아웃 구조, KPI 카드, 데이터 테이블, 사이드바 내비게이션을 빠르게 구축할 수 있도록 도와줍니다. 주로 React 환경을 대상으로 하며, `@tanstack/react-table`과 shadcn/ui Table 컴포넌트를 결합하여 헤드리스 테이블 로직을 처리합니다. 또한 반응형 중단점(`md`)에서 사이드바가 햄버거 메뉴로 전환되고, 카드가 1-2열로 쌓이는 등 모바일 친화적인 디자인을 강조합니다. 로딩 상태, 빈 상태, 페이지네이션 등 사용자 경험과 성능에 중요한 요소들을 빠짐없이 다루며, 불필요한 커스텀 작업을 피하도록 안내합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/dashboard-design

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

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

문서

대시보드 디자인

규칙

  • 사이드바 + 메인 콘텐츠 레이아웃: 고정 사이드바(w-64), 유동적인 메인 영역에 패딩 적용
  • 사이드바 내비게이션: 아이콘 + 레이블 링크, 활성 상태 강조, 모바일에서 접이식
  • 상단 KPI 카드 행: 반응형 그리드에 3-4개의 카드 — 메트릭 이름, 값, 추세(증감 %), 스파크라인(선택 사항)
  • 데이터 테이블: 정렬 가능한 열, 검색/상태로 필터링, 페이지네이션 (기본 10-25행)
  • @tanstack/react-table을 헤드리스 테이블 로직에 사용 — shadcn/ui Table 컴포넌트와 함께 사용
  • 반응형: md 중단점에서 사이드바가 햄버거 메뉴로 축소, 카드는 1-2열로 쌓임
  • 로딩 상태: 카드/테이블 모양과 일치하는 스켈레톤 플레이스홀더 — 레이아웃 이동 없음
  • 대시보드 데이터 필터링을 위한 날짜 범위 선택기 — 기본값 지난 30일

레이아웃 구조

┌──────────┬────────────────────────────┐
│ 사이드바 │  헤더 / 이동 경로           │
│          ├────────────────────────────┤
│ 내비     │  KPI 카드 (3-4 그리드)      │
│ 링크     ├────────────────────────────┤
│          │  차트 / 그래프             │
│          ├────────────────────────────┤
│          │  데이터 테이블             │
└──────────┴────────────────────────────┘

패턴

// KPI 카드
function KPICard({ title, value, change }: { title: string; value: string; change: number }) {
  return (
    <Card>
      <CardHeader className="pb-2">
        <CardTitle className="text-sm font-medium text-muted-foreground">{title}</CardTitle>
      </CardHeader>
      <CardContent>
        <div className="text-2xl font-bold">{value}</div>
        <p className={cn("text-xs", change >= 0 ? "text-green-600" : "text-red-600")}>
          {change >= 0 ? "+" : ""}{change}% 이전 기간 대비
        </p>
      </CardContent>
    </Card>
  );
}

피해야 할 사항

  • 고정 너비 메인 콘텐츠 — 항상 사용 가능한 공간을 채우는 유동 레이아웃 사용
  • 페이지네이션이 없는 테이블 — 대규모 데이터셋은 성능과 사용성을 저하시킴
  • 로딩/빈 상태 누락 — 항상 스켈레톤이나 "데이터 없음" 메시지 표시
  • 축소할 수 없는 사이드바 — 모바일 사용자는 전체 뷰포트 너비가 필요함
  • 부분 페이지 업데이트에 로딩 스피너 사용 — 특정 섹션에는 스켈레톤 사용
  • 너무 많은 KPI 표시 — 3-5개의 주요 메트릭을 강조하고 나머지는 확장 가능한 섹션에 배치
  • 처음부터 사이드바를 커스텀 제작 — shadcn의 사이드바 컴포넌트 사용
  • 액션이 없는 빈 상태 — 항상 CTA 포함 ("아직 캠페인이 없습니다. 첫 번째 캠페인을 만들어보세요 →")

Individual skills in this repo

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

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Tenant isolation (row-level vs schema), subdomain routing, per-tenant config, and data partitioning.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

관련 스킬