CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dev-create-island

Use when adding an interactive UI component that requires client-side JavaScript - creates a framework island with hydration strategy.

Quality

84%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Create an interactive island component following docs/ARCHITECTURE.md section 5.2.

Island: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md section 5.2.

  2. Confirm interactivity is required - if the component is purely presentational, use /dev-create-component instead.

  3. Determine the framework (based on project preference):

    • React -> src/islands/IslandName.tsx
    • Vue -> src/islands/IslandName.vue
    • Svelte -> src/islands/IslandName.svelte
  4. Choose hydration strategy:

    • client:load - immediately visible + interactive (above the fold)
    • client:idle - not urgent, hydrate when browser is idle
    • client:visible - below the fold, hydrate when scrolled into view
    • client:media="(max-width: 768px)" - only on specific viewports
    • client:only="react" - skip SSR entirely (browser-API-dependent)
  5. Create the island with typed props (React example):

interface Props {
  // all props must be serializable (no functions, no class instances)
}

export default function IslandName({ prop1, prop2 }: Props) {
  // minimal client-side state and interactivity
  return (
    <div>
      {/* interactive UI */}
    </div>
  )
}
  1. Usage example in .astro file:
---
import IslandName from '../islands/IslandName'
---
<IslandName client:idle prop1="value" prop2={42} />
  1. Checklist:

    • Props are serializable (no functions, no class instances)
    • Least aggressive hydration strategy chosen
    • Island scope is minimal (non-interactive parts in .astro)
    • PascalCase filename matching framework convention
  2. Validate: npx astro check && npx astro build

Repository

fernandezbaptiste/specialist-agent

Path

packs/astro/skills/dev-create-island/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.