frontend-skills

Argonauts Inc. フロントエンド開発スキル。Next.js App Router または React SPA (Vite) を使ったゼロからのプロジェクト構築、Tailwind CSS v4 + shadcn/ui によるスタイリング、render-as-you-fetch パターンのデータ取得実装を行う際に使用する。 フロントエンドの新規プロジェクト作成、コンポーネント実装、データ取得、状態管理、スタイリングに関するタスクすべてに適用される。 Use when: building new React/Next.js projects, implementing components with shadcn/ui, setting up data fetching, choosing state management solutions, configuring Tailwind CSS v4.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "frontend-skills" with this command: npx skills add argonauts-inc/frontend-skills/argonauts-inc-frontend-skills-frontend-skills

Argonauts Inc. Frontend Skills

このスキルは AI エージェントが Argonauts Inc. のフロントエンド開発標準に従って、一貫した技術選定・コードパターンでプロジェクトをゼロから構築できるようにするためのガイドラインを提供します。

起動時に必ず確認する質問

スキル起動後、実装を始める前に以下を必ずユーザーに確認してください:

Q1: フレームワーク選択

どちらのフレームワークを使用しますか?
1. Next.js (App Router) - SSR/SSG が必要、SEO 重視、フルスタック
2. React SPA (Vite) - クライアントサイドのみ、管理画面、ダッシュボード

Q2: API 通信方式

API との通信方式はどれですか?
1. SWR + fetch (デフォルト) - REST API、シンプルな HTTP 通信
2. gRPC-connect (@connectrpc/connect) - gRPC/Connect プロトコル使用
3. OpenAPI + orval - OpenAPI スキーマからクライアント自動生成

Q3: 状態管理

状態管理の要件を教えてください:
1. なし / 最小限 (useState + useReducer のみ)
2. 軽量グローバル状態 → Jotai を使用
3. 複雑なグローバル状態 → Zustand を使用
4. まだ決まっていない (後で references/state-management.md を参照して決定)

Q4: Linting / Formatting (指定がなければ biome)

Linting / Formatting ツールを教えてください:
1. Biome (デフォルト推奨) - 高速、設定シンプル
2. oxlint + oxfmt - Oxide ツールチェーン
※ ESLint / Prettier は使用しません

技術スタック概要

項目採用技術
FrameworkNext.js (latest, App Router) / React SPA (Vite)
LanguageTypeScript (strict モード必須)
StylingTailwind CSS v4
UI Libraryshadcn/ui
Data fetchingSWR + fetch (デフォルト) / gRPC-connect / orval
Data fetch 戦略render-as-you-fetch
Formsreact-hook-form + zod
LintingBiome (デフォルト)
TestingVitest + @testing-library/react

References ナビゲーション

以下のタイミングで各 reference ファイルを参照してください:

プロジェクト初期化時

スタイリング・UI 実装時

  • tailwind-shadcn.md: Tailwind CSS v4 の設定、shadcn/ui コンポーネント追加するとき
    • 重要: Tailwind v3 と v4 は破壊的変更あり。必ずこのファイルを確認すること

データ取得実装時

  • data-fetching.md: API 通信の実装パターン (SWR/gRPC-connect/orval) を実装するとき
    • render-as-you-fetch パターンの実装方法

状態管理選択時

コーディング規約

  • code-conventions.md: TypeScript、命名規則、コンポーネント構成パターン
    • Biome の設定方法も含む

フォーム実装時

  • form-patterns.md: react-hook-form + zod + shadcn/ui <Form> を使ったフォーム実装
    • 基本パターン、Server Action 連携、条件付きフィールド、useFieldArray、カスタムフック化

テスト実装時

  • testing.md: Vitest + @testing-library/react を使ったテストパターン
    • vitest.config.ts 設定、コンポーネントテスト、非同期処理、MSW モック、カスタムフックのテスト

環境変数設定時

  • env-vars.md: Next.js / Vite の環境変数管理
    • .env ファイルの使い分け、NEXT_PUBLIC_ / VITE_ プレフィックス、zod バリデーション

アンチパターン確認時

  • anti-patterns.md: 実装前・レビュー時に NG パターンを確認する

ボイラープレートテンプレート


重要な原則

  1. render-as-you-fetch を徹底: useEffect + fetch の fetch-on-render は使用しない
  2. Server Component を優先: 'use client' は必要な場合のみ付与
  3. Tailwind v4 の記法を使用: tailwind.config.ts は不要、@import "tailwindcss" を使う
  4. TypeScript strict モード: any 型は使用しない
  5. ESLint / Prettier は使用しない: Biome に統一

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

e2e-ci-debug

No summary provided by upstream source.

Repository SourceNeeds Review
General

react-hook-form-zod-shadcn

No summary provided by upstream source.

Repository SourceNeeds Review
General

yeet

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

workflow-local-dev

No summary provided by upstream source.

Repository SourceNeeds Review