Communitygithub.com

ComeOnOliver/skillshub

Guessimate Angular UI のフロントエンドコーディング規約、コンポーネントパターン、デザインシステムを定義します。フロントエンドコードの作成やレビュー時に参照してください。

skillshub とは?

このスキルは、Guessimate Angular フロントエンドプロジェクト向けの詳細なコーディング規約、アーキテクチャパターン、およびデザインシステムを提供します。Angular 20+、Tailwind CSS 4、Angular Signals と RxJS による状態管理を前提とし、フィーチャーベースのディレクトリ構造を採用しています。スタンドアロンコンポーネント、インラインテンプレート、Tailwind ユーティリティクラスの使用を推進し、明確な命名規則と依存性注入パターンを定義しています。また、セマンティックカラーパレット(ブランド、成功、危険、警告など)とタイポグラフィ規則を含むデザインシステムも含まれており、一貫性のあるアクセシブルな UI の構築を支援します。このスキールは主に Angular 開発者向けで、Claude Code、Cursor、Codex などの AI エージェントで使用できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/davidopdebeeck/ui-style-guide

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

フロントエンドスタイルガイド & コーディング規約

このドキュメントは、Guessimate Angular フロントエンドのコーディング規約、アーキテクチャパターン、およびデザインシステムを定義します。

1. 技術スタック

  • フレームワーク: Angular 20+
  • スタイリング: Tailwind CSS 4
  • 状態管理: Angular Signals & RxJS
  • ビルドシステム: Angular CLI (Esbuild)

2. プロジェクト構造

フィーチャーベースのディレクトリ構造を採用します。コードは技術タイプではなくドメインフィーチャーごとに整理されます。

src/app/
├── core/            # グローバルシングルトン (Guards, Interceptors, グローバルサービス)
├── layout/          # レイアウトコンポーネント (ナビゲーション, フッター, シェル)
├── features/        # フィーチャーモジュール (ドメインロジック)
│   ├── home/
│   ├── session/
│   │   ├── components/  # ダム/プレゼンテーショナルコンポーネント
│   │   ├── pages/       # スマート/コンテナコンポーネント (ルーティング対象)
│   │   ├── services/    # フィーチャー固有の状態/ロジック
│   │   └── models/      # フィーチャー固有の型
│   └── ...
├── websocket/       # WebSocket インフラ
└── shared/          # 共有ユーティリティ (パイプ, ディレクティブ, 汎用 UI)

命名規則

  • ファイル: ケバブケース (例: session-page.component.ts, auth.service.ts)。
  • クラス: パスカルケース (例: SessionPageComponent, AuthService)。
  • セレクタ: app- プレフィックス、ケバブケース (例: app-user-profile)。
  • シグナル: 接尾辞なし、説明的な名詞/動詞 (例: user(), isLoading())。
  • Observables: $ 接尾辞 (例: user$)。

3. コンポーネント標準

定義

  • スタンドアロンコンポーネントを使用します (standalone: true は v19+ でデフォルト)。
  • ほとんどのコンポーネントでは、ロジックとビューを同じ場所に配置するために インラインテンプレート を推奨します。
  • 外部 CSS ファイルは避け、テンプレートで Tailwind CSS ユーティリティクラスを直接使用します。

@Component({
    selector: 'app-example',
    imports: [CommonModule, RouterLink], // 明示的なインポート
    template: `
    <div class="p-4 bg-surface-100 rounded-lg">
      <h1 class="text-2xl font-bold text-gray-900">{{ title() }}</h1>
    </div>
  `
})
export class ExampleComponent {
    title = signal('Hello World');
}

制御フロー

新しい組み込み Angular 制御フロー構文を使用します。

<!-- Good -->
@if (isLoading()) {
<app-spinner/>
} @else {
@for (item of items(); track item.id) {
<app-item [data]="item"/>
}
}

依存性注入

型推論とコードの明確さを向上させるため、コンストラクター注入よりも inject() 関数を推奨します。

// Good
private readonly
route = inject(ActivatedRoute);
private readonly
store = inject(SessionStore);

// 可能な限り避ける
constructor(private
route: ActivatedRoute
)
{
}

4. 状態管理

  • ローカル状態: プリミティブ状態には signal() を使用します。
  • 共有状態: 適切なレベル (ルートまたはコンポーネント) で提供される Signal Store (シグナルを使用するサービス) を使用します。
  • リアクティブデータ: 派生状態には computed() を、副作用には effect() を控えめに使用します。

@Injectable()
export class SessionStore {
    // 状態
    private readonly _state = signal<SessionState>(initialState);

    // セレクター
    readonly lobby = computed(() => this._state().lobby);
    readonly connection = computed(() => this._state().connection);

    // アクション
    setLobby(lobby: Lobby) {
        this._state.update(s => ({...s, lobby}));
    }
}

5. スタイリング & デザインシステム

styles.css で定義されたセマンティックカラーパレットを持つ Tailwind CSS 4 を使用します。

使用ルール

  1. ユーティリティファースト: クラスを HTML に直接記述します。
  2. マジックナンバー禁止: テーマ値を使用します (例: p-4、p-[16px] は不可)。
  3. ダークモード: すべての色関連クラスには dark: 修飾子を使用します。

カラーパレット

アプリケーションは、Tailwind カラーにマッピングされたセマンティック命名規則を使用します。

コアカラー

カテゴリセマンティック名ライトモードダークモード使用目的
背景backgroundgray-50gray-950メインアプリケーション背景
サーフェスsurfacewhitegray-900カード、モーダル、セクション
代替サーフェスsurface-altgray-100gray-800セカンダリ背景、入力フィールド
プライマリbrandblue-600blue-600プライマリアクション、ボタン、ハイライト
プライマリミュートbrand-mutedblue-50blue-900/30選択状態、薄いハイライト
成功successemerald-500emerald-600成功状態、確認
成功ミュートsuccess-mutedemerald-50emerald-900/30成功背景
危険dangerred-600red-600エラー、破壊的アクション
危険ミュートdanger-mutedred-50red-900/30エラー背景
警告warningamber-500amber-600警告、保留状態
警告ミュートwarning-mutedamber-50amber-900/30警告背景

タイポグラフィ & ボーダー

カテゴリライトモードダークモード使用目的
プライマリgray-900white主要見出しと本文テキスト
セカンダリgray-500gray-400サブタイトル、ラベル、補足情報
ミュートgray-400gray-500無効テキスト、プレースホルダー
ボーダーgray-200gray-800標準区切り線とカード境界線

styles.css での実装

色は @theme ブロック内の CSS 変数を使用して定義されます:

@theme {
    --color-brand-600: var(--color-blue-600);
    --color-surface-100: var(--color-stone-100);
    /* ... */
}

6. 共通コンポーネントパターン

カード & コンテナ

コンテンツコンテナ (見積もりカード、リストなど) の標準スタイリング:


<div class="flex flex-col bg-surface-100/60 border border-surface-200 dark:bg-gray-900/40 dark:border-gray-800/60 rounded-md shadow-sm">
    <!-- コンテンツ -->
</div>
  • 背景: bg-surface-100/60 (ライト) / dark:bg-gray-900/40 (ダーク)
  • ボーダー: border border-surface-200 (ライト) / dark:border-gray-800/60 (ダーク)
  • 角丸: rounded-md (標準)
  • 区切り線: divide-y divide-surface-300 dark:divide-gray-800

タイポグラフィヘッダー


<div class="flex flex-col gap-1">
    <h2 class="text-2xl font-semibold leading-none text-gray-900 dark:text-white">タイトル</h2>
    <span class="text-sm font-normal text-gray-600 dark:text-gray-400">サブタイトル説明</span>
</div>

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

関連スキル