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 navigationtesting
Copy self-audit and ban-lists — filler verbs/hype adjectives, slop placeholder names, fake-precise numbers, Title Case headlines, humor in error copy ('Oops!'), em-dash crutch, one copy register per page.
development
Logged-in web apps — dashboards, auth flows, settings, onboarding, data tables, command palettes, modals, toasts. Register `product`: density and glance-speed over marketing polish, no hero/CTA-tricks, every data surface covers empty/loading/error explicitly, tables and dataviz follow preattentive-processing rules.
development
Marketing sites, landing pages, campaign pages — register `brand` (design IS the product). Structure comes from the register's POV + a macrostructure pick, never from copying an inspiration site's section flow. Hero discipline, deviated section order, asymmetric grids, and a silhouette lookalike-test gate before ship.
development
Token-strategy core — OKLCH color rules, neutral tinting, accent-commitment levels, type scale, 8pt spacing grid, touch targets, and the canonical output format of design-system.md (the file the harness gates on). This is routing step 1 of design-method/SKILL.md — read it before design-web/design-webapp/design-ios/design-android, before picking or auditing a single color/type/spacing value.