スキル一覧に戻る
dallington

astro-page-vs-island

by dallington

0🍴 0📅 2026年1月20日
GitHubで見るManusで実行

SKILL.md


name: astro-page-vs-island description: Decides when to use Astro pages versus React islands, minimizing unnecessary client-side JavaScript.

Astro Page vs Island Decision

This skill enforces correct separation between Astro and React, preventing overuse of client-side hydration.

When to use this skill

Use this skill when:

  • Creating or refactoring pages in an AstroJS project
  • Mixing .astro files with React components
  • Deciding whether a feature needs interactivity

Do NOT use this skill when:

  • The project is not using AstroJS
  • The component is already clearly interactive or static

How to use it

  1. Analyze the feature requirements
  2. Classify the component as:
    • Static (Astro page/component)
    • Interactive (React island)
  3. Use React only when interactivity is required
  4. Apply the minimum necessary client:* directive

Decision Rules

  • Static content → .astro
  • Forms, state, events → React
  • Avoid client:load by default
  • Prefer client:visible or client:idle

Expected Output

  • Clear justification for Astro vs React usage
  • Reduced client-side JavaScript
  • Better performance and maintainability

スコア

総合スコア

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

レビュー

💬

レビュー機能は近日公開予定です