Communitygithub.com

Astro

Astroは、デフォルトでゼロJavaScriptを配信する、コンテンツ駆動型Webサイト構築のためのWebフレームワークです。アイランドアーキテクチャによりインタラクティブなコンポーネントのみをハイドレートし、React、Vue、Svelteなど、必要な場所で任意のUIフレームワークをサポートしながら、優れたLighthouseスコアを実現します。

Astro とは?

Astroスキルは、アイランドアーキテクチャを採用したコンテンツ駆動型Webフレームワークです。不要なJavaScriptを排除し、Lighthouseのスコアを最大化するために、インタラクティブなコンポーネントのみを選択的にハイドレートします。主にClaude CodeなどのAIエージェント上で動作するように設計されており、Astroプロジェクトの構築、ページやレイアウトの作成、コンテンツコレクションの管理、画像最適化、ページトランジションの追加といったタスクを効率的に支援します。このスキルは、React、Vue、Svelteといった主要なUIフレームワークとの統合をサポートし、静的サイト生成(SSG)とサーバーサイドレンダリング(SSR)のハイブリッドレンダリングを容易にします。具体的な例として、型安全なContent Collectionsを使ったブログ構築や、静的なドキュメントサイトへのインタラクティブなReact検索コンポーネントの追加手順を提供し、開発者がベストプラクティスに沿って効率的に作業を進められるようガイドします。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/TerminalSkills/skills/astro

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

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

ドキュメント

Astro は何をしますか?

概要

Astroは、デフォルトでゼロJavaScriptを配信する、コンテンツ駆動型Webサイトを構築するためのWebフレームワークです。アイランドアーキテクチャによりインタラクティブなコンポーネントのみをハイドレートし、React、Vue、Svelteなど、インタラクティブ性が必要な場所で任意のUIフレームワークをサポートしながら、優れたLighthouseスコアを実現します。

使用方法

  • ページを作成する際は、src/pages/ 内で .astro、.md、.mdx ファイルを使用したファイルベースルーティングを使用し、共有構造は src/layouts/ に整理します。
  • インタラクティブ性を追加する際は、フレームワークコンポーネントにクライアントディレクティブを使用します。ほとんどのコンポーネントは即時ハイドレーションを必要としないため、client:load よりも client:visible または client:idle を優先します。
  • コンテンツを管理する際は、defineCollection() を使用して厳格なZodスキーマを持つContent Collectionsを src/content/ に定義し、getCollection() と getEntry() でクエリを実行します。
  • レンダリングモードを選択する際は、マーケティングページやコンテンツページにはデフォルトで静的(SSG)を選択し、動的ページには output: "server" を使用するか、ページごとに export const prerender = false を使用したハイブリッドレンダリングを使用します。
  • 画像を最適化する際は、生の <img> タグの代わりに astro:assets の <Image> コンポーネントを使用して、自動フォーマット変換(WebP/AVIF)、リサイズ、遅延ロードを行います。
  • ページトランジションを追加する際は、<ViewTransitions /> を使用して、クライアントサイドルーターを配信せずにSPAのようなナビゲーションを実現します。
  • UIフレームワークを統合する際は、適切な統合パッケージ(@astrojs/react、@astrojs/vue、@astrojs/svelte)をインストールし、静的なコンテンツにはAstroコンポーネントを使用し、インタラクティブ性が必要な場合にのみフレームワークコンポーネントを使用します。

サンプル

サンプル1: Content Collectionsを使ったブログ構築

ユーザーリクエスト: 「型安全なMarkdownコンテンツを持つAstroブログを作成する」

アクション:

  1. フロントマター(タイトル、日付、タグ、作成者)用のZodスキーマを持つブログContent Collectionを定義します。
  2. getStaticPaths() を使用して動的ルート src/pages/blog/[slug].astro を作成します。
  3. ソートを適用して getCollection("blog") をクエリするブログインデックスページを構築します。
  4. SEOメタタグ、ナビゲーション、View Transitionsを備えたレイアウトを追加します。

出力: 検証済みコンテンツ、クリーンなURL、スムーズなページトランジションを備えた静的に生成されたブログ。

サンプル2: 静的サイトへのインタラクティブコンポーネントの追加

ユーザーリクエスト: 「AstroのドキュメントサイトにReact検索コンポーネントを追加する」

アクション:

  1. @astrojs/react 統合パッケージをインストールします。
  2. 状態とイベント処理を備えたReact検索コンポーネントを作成します。
  3. client:idle ディレクティブを付けてコンポーネントをページに追加します。
  4. Astroページのフロントマターから静的なデータをプロパティとして渡します。

出力: インタラクティブな検索アイランド部分を除いて完全に静的なドキュメントサイト。

ガイドライン

  • 静的なコンテンツにはAstroコンポーネント(.astro)を使用し、インタラクティブ性が必要な場合にのみReact/Vue/Svelteを使用します。
  • ハイドレーションディレクティブは、client:load よりも client:visible または client:idle をデフォルトとします。
  • 厳格なZodスキーマを持つContent Collectionsを定義して、ビルド時にコンテンツのエラーを検出します。
  • 自動最適化のために、生の <img> タグの代わりに astro:assets の <Image> を使用します。
  • 共有の <head>、ナビゲーション、フッターを持つ薄いレイアウトを維持し、ページ固有のコンテンツはページ自体に配置します。
  • ハイブリッドレンダリングを使用します。マーケティングページには静的、パーソナライズされたページや動的ページにのみSSRを使用します。
  • ルーターを配信せずにSPAのようなナビゲーションを実現するために、View Transitionsを有効にします。

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

関連スキル