astro-islands

astro-islands is a skill for Claude Code, Codex from fusengine/agents. It costs 27 tokens per session (955 once invoked), scanned A, original, MIT.

A tool for adding selected interactivity to Astro pages while leaving the rest of the page as normal server-rendered HTML. It can also delay dynamic server content and preserve component state during page transitions.

In plain words
What is it for?
Use it to hydrate React, Vue, Svelte, or Solid components, choose when they load in the browser, defer server content, and keep component state across Astro View Transitions.
Why use it?
It avoids sending browser JavaScript for parts of a page that do not need it, while allowing interactive components to load when appropriate. This can improve how quickly pages become usable.

Skill for Claude CodeCodex

Part of the fuse-astro plugin — 14 skills, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fusengine/agents/astro-islands
Any agent
npx skills add fusengine/agents --skill astro-islands
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents

Made for: Claude Code, Codex.

Or install fuse-astro, the plugin that ships this one along with the rest of its 14 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for astro-islands

README.md
[![agentmods](https://agentmods.dev/badge/skills/fusengine/agents/astro-islands.svg)](https://agentmods.dev/skills/fusengine/agents/astro-islands)
Your own site
<a href="https://agentmods.dev/skills/fusengine/agents/astro-islands"><img src="https://agentmods.dev/badge/skills/fusengine/agents/astro-islands.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.00955
Opus 5 $0.00014 $0.00477
Sonnet 5 $0.00005 $0.00191
Haiku 4.5 $0.00003 $0.00096

Measured 3d ago against content hash bcdccbfcaa44, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

astro-islands scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/astro-expert/skills/astro-islands/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Also covers transition:persist for preserving component state across View Transitions, and prop serialization rules for data crossing the server/client boundary. Does not cover installing the underlying UI framework itself (astro-integrations) or Server Actions used inside islands (astro-actions) — those are separate skills.

Astro Islands Expert

Partial hydration architecture: zero JS by default, selective interactivity via directives.

Agent Workflow (MANDATORY)

Before ANY implementation, use TeamCreate to spawn 3 agents:

  1. fuse-ai-pilot:explore-codebase - Analyze existing components and hydration patterns
  2. fuse-ai-pilot:research-expert - Verify latest Islands docs via Context7/Exa
  3. mcp__context7__query-docs - Get client directive and server:defer examples

After implementation, run fuse-ai-pilot:sniper for validation.


Overview

When to Use

  • Adding interactive React/Vue/Svelte/Solid components to Astro pages
  • Deferring dynamic server content without blocking page load
  • Persisting component state during View Transitions
  • Optimizing Time to Interactive with lazy hydration

Why Islands Architecture

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

Client Directives

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

Read the full file on GitHub · 97 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 97 lines · 27 tokens per session scan A bcdccbfcaa44

Subscribe to this mod's changes

astro-islands is a skill published in the GitHub repository fusengine/agents (25 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 955 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.