Communitygithub.com

YepAPI/skills

レイアウトグリッド、KPIカード、ソート/フィルタ機能付きデータテーブル、サイドバーナビゲーション、レスポンシブブレークポイントを提供します。

skills とは?

このスキルは、ダッシュボードUIをデザイン・実装するためのものです。固定サイドバーと流動的なメインコンテンツ領域のレイアウト、KPIカードのレスポンシブグリッド、ソート・フィルタ・ページネーション機能を持つデータテーブルなど、典型的なダッシュボードに必要な要素をルールとして定義します。`@tanstack/react-table`とshadcn/ui Tableを組み合わせたヘッドレステーブルの実装パターンや、スケルトンプレースホルダーを使ったローディング状態の設計も含まれています。主にReactベースのフロントエンドプロジェクト(Next.js、Remixなど)で活用でき、shadcn/uiとの高い親和性があります。SKILL.md自体がコード生成エージェントへの指示書として機能し、指定されたルールとパターンに従って一貫性のあるダッシュボードを素早く構築できるよう設計されています。

対応~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.

関連スキル