一键导入
dev-create-island
Use when adding an interactive UI component that requires client-side JavaScript - creates a framework island with hydration strategy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when adding an interactive UI component that requires client-side JavaScript - creates a framework island with hydration strategy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when you need a comprehensive code audit covering security, performance, architecture, and dependencies before a release, major refactor, or compliance review.
Use when you want to iteratively build a feature using a PRD as source of truth, with progress tracking and fresh-context iterations - the Autopilot technique for autonomous development.
Use when starting a complex feature, exploring unclear requirements, or needing to challenge assumptions before committing to a design - before /plan.
Use when you need a comprehensive code review combining architecture, security, and test perspectives - especially before merging, releasing, or after major changes.
Use when creating marketing copy for landing pages, email campaigns, product descriptions, or social media - with A/B variants and conversion-focused frameworks.
Use when optimizing landing pages, signup flows, checkout processes, or any user-facing page for higher conversion rates - before A/B testing.
| name | dev-create-island |
| description | Use when adding an interactive UI component that requires client-side JavaScript - creates a framework island with hydration strategy. |
| user-invocable | true |
| argument-hint | [IslandName] |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
Create an interactive island component following docs/ARCHITECTURE.md section 5.2.
Island: $ARGUMENTS
Read docs/ARCHITECTURE.md section 5.2.
Confirm interactivity is required - if the component is purely presentational, use /dev-create-component instead.
Determine the framework (based on project preference):
src/islands/IslandName.tsxsrc/islands/IslandName.vuesrc/islands/IslandName.svelteChoose hydration strategy:
client:load - immediately visible + interactive (above the fold)client:idle - not urgent, hydrate when browser is idleclient:visible - below the fold, hydrate when scrolled into viewclient:media="(max-width: 768px)" - only on specific viewportsclient:only="react" - skip SSR entirely (browser-API-dependent)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>
)
}
---
import IslandName from '../islands/IslandName'
---
<IslandName client:idle prop1="value" prop2={42} />
Checklist:
Validate: npx astro check && npx astro build