← スキル一覧に戻る

astro-setup
by wlfmnstr
⭐ 0🍴 0📅 2025年11月5日
SKILL.md
name: astro-setup description: Astro project initialization and configuration patterns. Use when setting up new Astro projects or configuring Astro features.
Astro Setup Skill
Project Initialization
npm create astro@latest project-name -- --template minimal --typescript strict
cd project-name
Essential Integrations
npx astro add react
npx astro add mdx
npx astro add tailwind
Configuration Pattern
// astro.config.mjs
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
export default defineConfig({
site: 'https://username.github.io',
base: '/repo-name', // or '/' for user pages
integrations: [react(), mdx(), tailwind()],
output: 'static', // Required for GitHub Pages
image: {
service: {
entrypoint: 'astro/assets/services/sharp'
}
}
});
Content Collections
Content collections go in src/content/ with a config.ts file defining schemas using Zod.
Best Practices
- Use
output: 'static'for GitHub Pages - Configure
siteandbasefor proper asset paths - Enable image optimization
- Keep integrations minimal
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です