Our review
This skill guides the design and implementation of Astro projects with a focus on HTML-centric rendering, Islands architecture, and minimal JavaScript.
Strengths
- Promotes an HTML-first approach that improves performance and accessibility.
- Provides a clear methodology for breaking dynamic UI into small, focused islands.
- Includes a practical checklist to verify performance before deployment.
- Helps avoid common pitfalls like overloading client-side JavaScript.
Limitations
- Does not cover advanced use cases like complex framework integrations.
- May be too restrictive for applications requiring heavy client-side interactivity.
- Assumes a good understanding of basic Astro concepts.
Use this skill when starting a new Astro project or optimizing an existing one for performance and low JavaScript footprint.
Avoid this skill if your project requires a single-page application (SPA) with heavy client state and complex interactions.
Security analysis
SafeThis skill contains only design philosophy and guidance for Astro projects. It does not invoke any tools or perform any actions that could compromise security.
No concerns found
Examples
I'm starting a new Astro project for a blog. I want to use SSG with minimal client JavaScript. Can you help me set up the project structure following the Astro Web-First skill?Review my existing Astro site for performance issues. Check for oversized islands, unnecessary client-side JavaScript, and suggest optimizations based on the HTML-centric approach.I have a React component that fetches data and displays a user dashboard. How should I refactor it into a small Astro island to avoid sending too much JavaScript to the client?name: astro category: tech user-invocable: false description: Astroプロジェクトの設計・実装・レビューを、HTML中心/Islands/JS最小化の思想で整理する。doc/input/rdd.md に「技術スタック Astro」があるリポジトリ、またはAstro/Islands/SSG/SSR/パフォーマンス最適化の相談で使う。
Astro Web-First Skill
参照(公式)
発火条件(リポジトリ判定)
- まず
doc/input/rdd.mdを確認し、そこに技術スタック Astroが書かれている場合は、このSkillの方針をデフォルト採用する。 - 書かれていない場合でも、ユーザーの依頼がAstro/Islands/SSG/SSR/JS削減/速度改善に該当するなら適用する。
このSkillの基本方針
- 基本方針: HTML中心(ドキュメント中心)。JSは必要箇所のみ(Islands)。
- レンダリング: まずSSGを第一候補。更新頻度が高い箇所のみSSR/オンデマンドを検討。
- Islands設計: 動的UIは小さく分割し、責務を限定する。島の肥大化は避ける。
- パフォーマンス: 「送らない最適化」を優先(クライアントJS、画像、フォント、3rd party)。
- 参考: Astro公式 / Docs
思想(判断ルール)
- HTMLを先に完成させる(Webはまずドキュメント)。
- クライアントJSはコスト。必要性を説明できる分だけ送る。
- Islandsは「動的UIの特区」。島は小さく、責務を限定する。
- “便利だから全部クライアント”を避け、送信量の最小化を優先する。
出力フォーマット(必ずこの順)
- 推奨方針(1〜3行)
- 理由(Web制約 / 性能 / 保守性)
- 設計案(レンダリング戦略 / Islands粒度 / データ取得 / バンドル・資産 / キャッシュ)
- チェックリスト(実装前に確認)
- 落とし穴(避けるべき)
- 次アクション(小さく試す順)
チェックリスト
- [ ] Islandsは本当に必要箇所だけか
- [ ] 島が大きすぎないか(ページ/一覧まるごとを避ける)
- [ ] 画像・フォント・3rd party が速度を壊していないか
- [ ] SSGを第一候補にできているか(SSRは必要部分だけか)
- [ ] 「送らない最適化」の観点でJS量を説明できるか
よくある落とし穴
- React等を“とりあえず”全部クライアントに送ってAstroの旨味が消える
- 島間の状態共有が増え、結果的にSPA級の複雑さになる
- 解析/広告などの3rd partyがINP/LCPを悪化させる
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.