Communitygithub.com

Astro

Astro는 기본적으로 제로 자바스크립트를 제공하는 콘텐츠 중심 웹사이트 구축을 위한 웹 프레임워크입니다. 섬(island) 아키텍처를 통해 대화형 컴포넌트만 선택적으로 수화(hydrate)하여 뛰어난 Lighthouse 점수를 달성하면서, 대화형이 필요한 곳에서는 React, Vue, Svelte 등 모든 UI 프레임워크를 지원합니다.

Astro란 무엇인가요?

Astro는 콘텐츠 중심 웹사이트를 위해 설계된 웹 프레임워크로, 기본적으로 제로 자바스크립트를 제공하며 뛰어난 성능과 SEO를 자랑합니다. 섬 아키텍처를 사용하여 대화형 컴포넌트만 선택적으로 수화하므로, 불필요한 클라이언트 측 자바스크립트를 줄이고 Lighthouse 점수를 극대화할 수 있습니다. 이 스킬은 Astro 프로젝트를 안내하며, 파일 기반 라우팅, Content Collections, `client:visible`이나 `client:idle`과 같은 클라이언트 디렉티브를 통한 점진적 수화, 하이브리드 렌더링(SSG/SSR), `astro:assets`를 통한 이미지 최적화, `<ViewTransitions />`를 통한 페이지 전환 등을 강조합니다. 또한 React, Vue, Svelte 등 주요 UI 프레임워크와의 통합을 지원하지만, 정적 콘텐츠에는 Astro 컴포넌트를 사용하고 대화형이 필요한 경우에만 프레임워크 컴포넌트를 사용할 것을 권장합니다. 이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있는 SKILL.md 문서 형식으로 제공됩니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/TerminalSkills/skills/astro

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

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

문서

Astro은(는) 무엇을 하나요?

개요

Astro는 기본적으로 제로 자바스크립트를 제공하는 콘텐츠 중심 웹사이트 구축을 위한 웹 프레임워크입니다. 섬(island) 아키텍처를 통해 대화형 컴포넌트만 선택적으로 수화(hydrate)하여 뛰어난 Lighthouse 점수를 달성하면서, 대화형이 필요한 곳에서는 React, Vue, Svelte 등 모든 UI 프레임워크를 지원합니다.

사용 방법

  • 페이지를 만들 때는 src/pages/에서 .astro, .md, .mdx 파일을 사용하는 파일 기반 라우팅을 사용하고, 공유 구조는 src/layouts/에 구성하세요.
  • 상호작용을 추가할 때는 프레임워크 컴포넌트에 클라이언트 디렉티브를 사용하세요: 대부분의 컴포넌트는 즉시 수화가 필요 없으므로 client:load보다는 client:visible 또는 client:idle을 선호하세요.
  • 콘텐츠를 관리할 때는 src/content/에서 defineCollection()을 사용해 엄격한 Zod 스키마로 Content Collections를 정의하고, getCollection()과 getEntry()로 질의하세요.
  • 렌더링 모드를 선택할 때는 마케팅 및 콘텐츠 페이지에는 정적(SSG)을 기본으로 하고, 동적 페이지에는 output: "server"를 사용하며, 페이지별로 export const prerender = false를 사용하는 하이브리드 렌더링을 활용하세요.
  • 이미지를 최적화할 때는 원시 <img> 태그 대신 astro:assets의 <Image> 컴포넌트를 사용하여 자동 포맷 변환(WebP/AVIF), 크기 조정, 지연 로딩을 적용하세요.
  • 페이지 전환을 추가할 때는 클라이언트 측 라우터를 제공하지 않고 SPA와 유사한 탐색을 위해 <ViewTransitions />로 View Transitions를 활성화하세요.
  • UI 프레임워크를 통합할 때는 적절한 통합 모듈(@astrojs/react, @astrojs/vue, @astrojs/svelte)을 설치하고, 정적 콘텐츠에는 Astro 컴포넌트를 사용하며, 상호작용이 필요한 경우에만 프레임워크 컴포넌트를 사용하세요.

예시

예시 1: Content Collections로 블로그 구축

사용자 요청: "타입 안전한 Markdown 콘텐츠가 있는 Astro 블로그 만들어 줘"

수행 단계:

  1. 프론트매터(title, date, tags, author)에 대한 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 페이지 프론트매터에서 정적 데이터를 props로 전달

결과: 대화형 검색 섬을 제외하고는 완전히 정적인 문서 사이트.

지침

  • 정적 콘텐츠에는 Astro 컴포넌트(.astro)를 사용하고, 상호작용이 필요한 경우에만 React/Vue/Svelte를 사용하세요.
  • 수화 디렉티브는 client:load보다 client:visible 또는 client:idle을 기본으로 사용하세요.
  • 빌드 시 콘텐츠 오류를 잡기 위해 엄격한 Zod 스키마로 Content Collections를 정의하세요.
  • 자동 최적화를 위해 원시 <img> 태그보다 astro:assets의 <Image>를 사용하세요.
  • 공유 <head>, 내비게이션, 푸터가 있는 레이아웃은 얇게 유지하고, 페이지별 콘텐츠는 페이지에 넣으세요.
  • 마케팅 페이지는 정적(SSG), 개인화나 동적 페이지는 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

관련 스킬