plugins/astro-expert/skills/astro-islands/SKILL.md
Expert Astro Islands Architecture — client:load, client:idle, client:visible, client:media, client:only, server:defer (Server Islands), fallback slots, transition:persist, prop serialization. Use when adding interactivity to Astro pages or rendering dynamic server content.
npx skillsauth add fusengine/agents astro-islandsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Partial hydration architecture: zero JS by default, selective interactivity via directives.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
| Concept | Benefit |
|---------|---------|
| Zero JS by default | Maximum performance, minimal payload |
| Selective hydration | Only interactive components ship JS |
| server:defer | Dynamic server content without SSR blocking |
| client:visible | Lazy-load below-fold components |
| transition:persist | State survives page navigation |
| Directive | When JS Loads | Use Case |
|-----------|--------------|----------|
| client:load | Immediately on page load | Critical interactive UI |
| client:idle | After requestIdleCallback | Non-critical UI |
| client:visible | When component enters viewport | Below-fold components |
| client:media="(query)" | When media query matches | Responsive components |
| client:only="framework" | Client-only, no SSR | Components using browser APIs |
server:defer renders the component on the server after the page loads:
slot="fallback" for placeholder content| Need | Reference | |------|-----------| | Architecture overview | overview.md | | Client directive details | client-directives.md | | server:defer patterns | server-islands.md | | transition:persist | transitions.md | | View Transitions (complete) | view-transitions.md | | Prop serialization rules | prop-serialization.md | | Interactive component | templates/interactive-island.md | | Server island with fallback | templates/server-island.md |
client:visible — Defer below-fold components automaticallyclient:only for browser APIs — localStorage, window, canvasserver:defer for personalized content — Avatars, prices, auth statetransition:persist — Preserve media players or forms during navigationdevelopment
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.