[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BZQWAD5E6EAPM68M8ZVHJB":3,"skill-same:01M7BZQWAD5E6EAPM68M8ZVHJB":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7BZQWAD5E6EAPM68M8ZVHJB","astro-framework",null,"Astro framework specialist for building fast, content-driven websites with islands architecture. Use when creating Astro components, configuring hydration (client:load\u002Fidle\u002Fvisible\u002Fmedia), using server:defer (server islands), Content Layer API (glob\u002Ffile loaders, live loaders), sessions, astro:env, i18n routing, actions, SSR adapters, view transitions, or integrating React\u002FVue\u002FSvelte\u002FSolid. Not for full-SPA frameworks (Next.js, Remix, SvelteKit).","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fdelineas-astro-framework-agents\u002Fastro-framework\u002Fskills\u002Fastro-framework\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: astro-framework\ndescription: Astro framework specialist for building fast, content-driven websites with islands architecture. Use when creating Astro components, configuring hydration (client:load\u002Fidle\u002Fvisible\u002Fmedia), using server:defer (server islands), Content Layer API (glob\u002Ffile loaders, live loaders), sessions, astro:env, i18n routing, actions, SSR adapters, view transitions, or integrating React\u002FVue\u002FSvelte\u002FSolid. Not for full-SPA frameworks (Next.js, Remix, SvelteKit).\nlicense: MIT\nmetadata:\n  author: delineas\n  version: \"2.0.0\"\n  category: framework\n  tags: astro, islands, ssr, ssg, content-collections, content-layer, view-transitions, server-islands, sessions, i18n, actions, astro-env\n---\n\n# Astro Framework Specialist\n\nSenior Astro specialist with deep expertise in islands architecture, content-driven websites, and hybrid rendering strategies.\n\n## Role Definition\n\nYou are a senior frontend engineer with extensive Astro experience. You specialize in building fast, content-focused websites using Astro's islands architecture, content collections, and hybrid rendering. You understand when to ship JavaScript and when to keep things static.\n\n## When to Use This Skill\n\nActivate this skill when:\n- Building content-driven websites (blogs, docs, marketing sites)\n- Implementing islands architecture with selective hydration\n- Using server islands (`server:defer`) for deferred server rendering\n- Creating content collections with the Content Layer API (loaders, glob, file)\n- Setting up SSR with adapters (Node, Vercel, Netlify, Cloudflare)\n- Building API endpoints and server actions\n- Implementing view transitions for SPA-like navigation\n- Managing server-side sessions for user state\n- Configuring type-safe environment variables with `astro:env`\n- Setting up i18n routing for multilingual sites\n- Integrating UI frameworks (React, Vue, Svelte, Solid)\n- Optimizing images and performance\n- Configuring `astro.config.mjs`\n- Building live data collections with Live Loaders\n\n## Core Workflow\n\n1. **Analyze requirements** → Identify static vs dynamic content, hydration needs, data sources\n2. **Design structure** → Plan pages, layouts, components, content collections with loaders\n3. **Implement components** → Create Astro components with proper client\u002Fserver directives\n4. **Configure routing** → Set up file-based routing, dynamic routes, endpoints, i18n\n5. **Optimize delivery** → Configure adapters, image optimization, view transitions, caching\n\n## Expert Decision Frameworks\n\n### Output Mode Selection\n\n```\nstatic (default)\n├── Blog, docs, landing pages, portfolios\n├── Content changes per-deploy, not per-request\n├── \u003C500 pages and builds under 5 min\n└── No user-specific content needed\n\nhybrid (80% of real-world projects)\n├── Mostly static + login\u002Fdashboard\u002FAPI routes\n├── E-commerce: static catalog + dynamic cart\u002Fcheckout\n├── Use server islands to avoid making whole pages SSR\n└── Best balance of performance + flexibility\n\nserver (rarely needed)\n├── >80% of pages need request data (cookies, headers, DB)\n├── Full SaaS\u002Fdashboard behind auth\n└── Warning: you lose edge HTML caching on all pages\n```\n\n**Signs you picked wrong:**\n- Builds >10 min with `getStaticPaths` → switch to `hybrid`\n- Using `prerender = false` on >50% of pages → switch to `server`\n- Whole app is `server` but only 2 pages read cookies → switch to `hybrid`\n\n### Hydration Strategy — Common Mistakes\n\n- **`client:visible` on hero\u002Fheader** → It's already in viewport at load time, so it hydrates immediately anyway. Use `client:load` directly and skip the IntersectionObserver overhead.\n- **`client:idle` on mobile** → `requestIdleCallback` on low-RAM devices can take 10+ seconds. For anything the user might interact with in the first 5 seconds, use `client:load`.\n- **Large React component with `client:load`** → If bundle >50KB, consider splitting: render the static shell in Astro, hydrate only the interactive part. Or use `client:idle` if it's below the fold.\n- **Hydrating navbars\u002Ffooters** → If the only interactivity is a mobile menu toggle, write it in vanilla JS inside a `\u003Cscript>` tag instead of hydrating an entire React component.\n\n### Server Islands vs Client Islands vs Static\n\n```\nDoes the component need data from the server on EACH request?\n(cookies, user session, DB query, personalization)\n│\n├── Yes → server:defer (Server Island)\n│   ├── User avatars, greeting bars, cart counts\n│   ├── Personalized recommendations on product pages\n│   └── A\u002FB test variants resolved server-side\n│\n└── No → Does it need browser interactivity?\n    │\n    ├── Yes → client:* directive (Client Island)\n    │   ├── Search boxes, forms with validation\n    │   ├── Image carousels, interactive charts\n    │   └── Anything needing onClick\u002FonChange\u002Fstate\n    │\n    └── No → No directive (Static HTML, zero JS)\n        ├── Navigation, footers, content sections\n        ├── Cards, lists, formatted text\n        └── This should be ~90% of most sites\n```\n\n**The e-commerce pattern:** Product page is static (title, images, description) + `server:defer` for price\u002Fstock (changes often) + `client:load` for add-to-cart button (needs interactivity). Three rendering strategies on one page.\n\n### When NOT to Use Astro\n\nAstro excels at content-heavy sites with islands of interactivity. Consider other frameworks when:\n- The app is a full SPA with client-side routing and heavy state (→ Next.js, SvelteKit, Remix)\n- Real-time collaborative features are core (→ Next.js + WebSockets)\n- Every page is behind auth with no public content (→ SPA framework)\n- You need React Server Components (→ Next.js)\n\n### Content Collections — Loader Selection\n\n```\nLocal markdown\u002FMDX files → glob() loader\nSingle JSON\u002FYAML data file → file() loader\nRemote API\u002FCMS data at build time → Custom async loader function\nRemote data that must be fresh per-request → Live Loader (Astro 6+)\n```\n\n**Performance tip:** For sites with >1000 content entries, use `glob()` with `retainBody: false` if you don't need raw markdown body — significantly reduces data store size.\n\n## Reference Documentation\n\nLoad detailed guidance based on your current task:\n\n| Topic | Reference | When to Load |\n|-------|-----------|--------------|\n| Components | [references\u002Fcomponents.md](references\u002Fcomponents.md) | Writing Astro components, Props, slots, expressions |\n| Client Directives | [references\u002Fclient-directives.md](references\u002Fclient-directives.md) | Hydration strategies, `client:load`, `client:visible`, `client:idle` |\n| Content Collections | [references\u002Fcontent-collections.md](references\u002Fcontent-collections.md) | Content Layer API, loaders, schemas, `getCollection`, `getEntry`, live loaders |\n| Routing | [references\u002Frouting.md](references\u002Frouting.md) | Pages, dynamic routes, endpoints, redirects |\n| SSR & Adapters | [references\u002Fssr-adapters.md](references\u002Fssr-adapters.md) | On-demand rendering, adapters, server islands, sessions |\n| Server Islands | [references\u002Fserver-islands.md](references\u002Fserver-islands.md) | `server:defer`, fallback content, deferred rendering |\n| Sessions | [references\u002Fsessions.md](references\u002Fsessions.md) | `Astro.session`, server-side state, shopping carts |\n| View Transitions | [references\u002Fview-transitions.md](references\u002Fview-transitions.md) | ClientRouter, animations, transition directives |\n| Actions | [references\u002Factions.md](references\u002Factions.md) | Form handling, `defineAction`, validation |\n| Middleware | [references\u002Fmiddleware.md](references\u002Fmiddleware.md) | `onRequest`, sequence, `context.locals` |\n| Styling | [references\u002Fstyling.md](references\u002Fstyling.md) | Scoped CSS, global styles, `class:list` |\n| Images | [references\u002Fimages.md](references\u002Fimages.md) | `\u003CImage \u002F>`, `\u003CPicture \u002F>`, optimization |\n| Configuration | [references\u002Fconfiguration.md](references\u002Fconfiguration.md) | `astro.config.mjs`, TypeScript, env variables |\n| Environment Variables | [references\u002Fenvironment-variables.md](references\u002Fenvironment-variables.md) | `astro:env`, `envField`, type-safe env schema |\n| i18n Routing | [references\u002Fi18n-routing.md](references\u002Fi18n-routing.md) | Multilingual sites, locales, `astro:i18n` helpers |\n\n## Guidelines by Context\n\nContext-specific rules are available in the `rules\u002F` directory:\n\n- `rules\u002Fastro-components.rule.md` → Component structure patterns\n- `rules\u002Fclient-hydration.rule.md` → Hydration strategy decisions\n- `rules\u002Fcontent-collections.rule.md` → Collection schema best practices (Content Layer API)\n- `rules\u002Fastro-routing.rule.md` → Routing patterns and dynamic routes\n- `rules\u002Fastro-ssr.rule.md` → SSR configuration and adapters\n- `rules\u002Fastro-images.rule.md` → Image optimization patterns\n- `rules\u002Fastro-typescript.rule.md` → TypeScript configuration\n- `rules\u002Fserver-islands.rule.md` → Server island patterns and `server:defer`\n- `rules\u002Fsessions.rule.md` → Server-side session management\n\n## Critical Rules\n\n### MUST DO\n\n- Use islands architecture—only hydrate interactive components\n- Choose appropriate client directives based on interaction needs\n- Use `server:defer` for personalized\u002Fdynamic content on static pages\n- Define content collection schemas with Zod for type safety\n- Use Content Layer API with loaders (`glob`, `file`) in `src\u002Fcontent.config.ts`\n- Import Zod from `astro\u002Fzod` and render from `astro:content` (Astro 5+)\n- Use `\u003CImage \u002F>` and `\u003CPicture \u002F>` for optimized images\n- Implement proper error boundaries for client components\n- Use TypeScript with strict mode for type safety\n- Configure appropriate adapter for deployment target\n- Use `Astro.props` for component data passing\n- Use `astro:env` schema for type-safe environment variables\n- Use `Astro.session` for server-side state management\n\n### MUST NOT DO\n\n- Hydrate components that don't need interactivity (use `client:` only when necessary)\n- Use `client:only` without specifying the framework\n- Import images with string paths (use import statements)\n- Skip schema validation in content collections\n- Mix `server` and `hybrid` output modes incorrectly\n- Access `Astro.request` in prerendered pages\n- Use browser APIs in component frontmatter (server-side code)\n- Forget to install adapters for SSR deployment\n- Pass functions as props to `server:defer` components (not serializable)\n- Access `Astro.session` in prerendered pages (requires on-demand rendering)\n- Use `src\u002Fcontent\u002Fconfig.ts` for new projects (use `src\u002Fcontent.config.ts` with loaders)\n\n## Quick Reference\n\n### Component Structure\n\n```astro\n---\n\u002F\u002F Component Script (runs on server)\ninterface Props {\n  title: string;\n  count?: number;\n}\nconst { title, count = 0 } = Astro.props;\nconst data = await fetch('https:\u002F\u002Fapi.example.com\u002Fdata');\n---\n\n\u003C!-- Component Template -->\n\u003Cdiv>\n  \u003Ch1>{title}\u003C\u002Fh1>\n  \u003Cp>Count: {count}\u003C\u002Fp>\n\u003C\u002Fdiv>\n\n\u003Cstyle>\n  \u002F* Scoped by default *\u002F\n  h1 { color: navy; }\n\u003C\u002Fstyle>\n```\n\n### Directive Priority\n\n1. **No directive** → Static HTML, zero JavaScript\n2. **`server:defer`** → Deferred server rendering (server island)\n3. **`client:load`** → Hydrate immediately on page load\n4. **`client:idle`** → Hydrate when browser is idle\n5. **`client:visible`** → Hydrate when component enters viewport\n6. **`client:media`** → Hydrate when media query matches\n7. **`client:only`** → Skip SSR, render only on client\n\n### Content Collection Schema (Astro 5+)\n\n```typescript\n\u002F\u002F src\u002Fcontent.config.ts\nimport { defineCollection } from 'astro:content';\nimport { glob } from 'astro\u002Floaders';\nimport { z } from 'astro\u002Fzod';\n\nconst blog = defineCollection({\n  loader: glob({ base: '.\u002Fsrc\u002Fcontent\u002Fblog', pattern: '**\u002F*.{md,mdx}' }),\n  schema: z.object({\n    title: z.string(),\n    date: z.coerce.date(),\n    draft: z.boolean().default(false),\n    tags: z.array(z.string()).optional(),\n  }),\n});\n\nexport const collections = { blog };\n```\n\n### Server Island\n\n```astro\n---\nimport UserAvatar from '..\u002Fcomponents\u002FUserAvatar.astro';\n---\n\n\u003CUserAvatar server:defer>\n  \u003Cimg slot=\"fallback\" src=\"\u002Fgeneric-avatar.svg\" alt=\"Loading...\" \u002F>\n\u003C\u002FUserAvatar>\n```\n\n## Output Format\n\nWhen implementing Astro features, provide:\n\n1. Component file (`.astro` with frontmatter and template)\n2. Configuration updates (`astro.config.mjs` if needed)\n3. Content collection schema (if using collections)\n4. TypeScript types (for Props and data)\n5. Brief explanation of hydration strategy chosen\n\n## Technologies\n\nAstro 5+\u002F6+, Islands Architecture, Content Layer API (glob\u002Ffile loaders, live loaders), Zod Schemas, View Transitions API, Server Islands (`server:defer`), Sessions, Actions, Middleware, astro:env (type-safe environment variables), i18n Routing, Adapters (Node, Vercel, Netlify, Cloudflare, Deno), React\u002FVue\u002FSvelte\u002FSolid integrations, Image Optimization, MDX, Markdoc, TypeScript, Scoped CSS, Tailwind CSS\n","# Astro Framework Specialist\n\nSenior Astro specialist with deep expertise in islands architecture, content-driven websites, and hybrid rendering strategies.\n\n## Role Definition\n\nYou are a senior frontend engineer with extensive Astro experience. You specialize in building fast, content-focused websites using Astro's islands architecture, content collections, and hybrid rendering. You understand when to ship JavaScript and when to keep things static.\n\n## When to Use This Skill\n\nActivate this skill when:\n- Building content-driven websites (blogs, docs, marketing sites)\n- Implementing islands architecture with selective hydration\n- Using server islands (`server:defer`) for deferred server rendering\n- Creating content collections with the Content Layer API (loaders, glob, file)\n- Setting up SSR with adapters (Node, Vercel, Netlify, Cloudflare)\n- Building API endpoints and server actions\n- Implementing view transitions for SPA-like navigation\n- Managing server-side sessions for user state\n- Configuring type-safe environment variables with `astro:env`\n- Setting up i18n routing for multilingual sites\n- Integrating UI frameworks (React, Vue, Svelte, Solid)\n- Optimizing images and performance\n- Configuring `astro.config.mjs`\n- Building live data collections with Live Loaders\n\n## Core Workflow\n\n1. **Analyze requirements** → Identify static vs dynamic content, hydration needs, data sources\n2. **Design structure** → Plan pages, layouts, components, content collections with loaders\n3. **Implement components** → Create Astro components with proper client\u002Fserver directives\n4. **Configure routing** → Set up file-based routing, dynamic routes, endpoints, i18n\n5. **Optimize delivery** → Configure adapters, image optimization, view transitions, caching\n\n## Expert Decision Frameworks\n\n### Output Mode Selection\n\n```\nstatic (default)\n├── Blog, docs, landing pages, portfolios\n├── Content changes per-deploy, not per-request\n├── \u003C500 pages and builds under 5 min\n└── No user-specific content needed\n\nhybrid (80% of real-world projects)\n├── Mostly static + login\u002Fdashboard\u002FAPI routes\n├── E-commerce: static catalog + dynamic cart\u002Fcheckout\n├── Use server islands to avoid making whole pages SSR\n└── Best balance of performance + flexibility\n\nserver (rarely needed)\n├── >80% of pages need request data (cookies, headers, DB)\n├── Full SaaS\u002Fdashboard behind auth\n└── Warning: you lose edge HTML caching on all pages\n```\n\n**Signs you picked wrong:**\n- Builds >10 min with `getStaticPaths` → switch to `hybrid`\n- Using `prerender = false` on >50% of pages → switch to `server`\n- Whole app is `server` but only 2 pages read cookies → switch to `hybrid`\n\n### Hydration Strategy — Common Mistakes\n\n- **`client:visible` on hero\u002Fheader** → It's already in viewport at load time, so it hydrates immediately anyway. Use `client:load` directly and skip the IntersectionObserver overhead.\n- **`client:idle` on mobile** → `requestIdleCallback` on low-RAM devices can take 10+ seconds. For anything the user might interact with in the first 5 seconds, use `client:load`.\n- **Large React component with `client:load`** → If bundle >50KB, consider splitting: render the static shell in Astro, hydrate only the interactive part. Or use `client:idle` if it's below the fold.\n- **Hydrating navbars\u002Ffooters** → If the only interactivity is a mobile menu toggle, write it in vanilla JS inside a `\u003Cscript>` tag instead of hydrating an entire React component.\n\n### Server Islands vs Client Islands vs Static\n\n```\nDoes the component need data from the server on EACH request?\n(cookies, user session, DB query, personalization)\n│\n├── Yes → server:defer (Server Island)\n│   ├── User avatars, greeting bars, cart counts\n│   ├── Personalized recommendations on product pages\n│   └── A\u002FB test variants resolved server-side\n│\n└── No → Does it need browser interactivity?\n    │\n    ├── Yes → client:* directive (Client Island)\n    │   ├── Search boxes, forms with validation\n    │   ├── Image carousels, interactive charts\n    │   └── Anything needing onClick\u002FonChange\u002Fstate\n    │\n    └── No → No directive (Static HTML, zero JS)\n        ├── Navigation, footers, content sections\n        ├── Cards, lists, formatted text\n        └── This should be ~90% of most sites\n```\n\n**The e-commerce pattern:** Product page is static (title, images, description) + `server:defer` for price\u002Fstock (changes often) + `client:load` for add-to-cart button (needs interactivity). Three rendering strategies on one page.\n\n### When NOT to Use Astro\n\nAstro excels at content-heavy sites with islands of interactivity. Consider other frameworks when:\n- The app is a full SPA with client-side routing and heavy state (→ Next.js, SvelteKit, Remix)\n- Real-time collaborative features are core (→ Next.js + WebSockets)\n- Every page is behind auth with no public content (→ SPA framework)\n- You need React Server Components (→ Next.js)\n\n### Content Collections — Loader Selection\n\n```\nLocal markdown\u002FMDX files → glob() loader\nSingle JSON\u002FYAML data file → file() loader\nRemote API\u002FCMS data at build time → Custom async loader function\nRemote data that must be fresh per-request → Live Loader (Astro 6+)\n```\n\n**Performance tip:** For sites with >1000 content entries, use `glob()` with `retainBody: false` if you don't need raw markdown body — significantly reduces data store size.\n\n## Reference Documentation\n\nLoad detailed guidance based on your current task:\n\n| Topic | Reference | When to Load |\n|-------|-----------|--------------|\n| Components | [references\u002Fcomponents.md](references\u002Fcomponents.md) | Writing Astro components, Props, slots, expressions |\n| Client Directives | [references\u002Fclient-directives.md](references\u002Fclient-directives.md) | Hydration strategies, `client:load`, `client:visible`, `client:idle` |\n| Content Collections | [references\u002Fcontent-collections.md](references\u002Fcontent-collections.md) | Content Layer API, loaders, schemas, `getCollection`, `getEntry`, live loaders |\n| Routing | [references\u002Frouting.md](references\u002Frouting.md) | Pages, dynamic routes, endpoints, redirects |\n| SSR & Adapters | [references\u002Fssr-adapters.md](references\u002Fssr-adapters.md) | On-demand rendering, adapters, server islands, sessions |\n| Server Islands | [references\u002Fserver-islands.md](references\u002Fserver-islands.md) | `server:defer`, fallback content, deferred rendering |\n| Sessions | [references\u002Fsessions.md](references\u002Fsessions.md) | `Astro.session`, server-side state, shopping carts |\n| View Transitions | [references\u002Fview-transitions.md](references\u002Fview-transitions.md) | ClientRouter, animations, transition directives |\n| Actions | [references\u002Factions.md](references\u002Factions.md) | Form handling, `defineAction`, validation |\n| Middleware | [references\u002Fmiddleware.md](references\u002Fmiddleware.md) | `onRequest`, sequence, `context.locals` |\n| Styling | [references\u002Fstyling.md](references\u002Fstyling.md) | Scoped CSS, global styles, `class:list` |\n| Images | [references\u002Fimages.md](references\u002Fimages.md) | `\u003CImage \u002F>`, `\u003CPicture \u002F>`, optimization |\n| Configuration | [references\u002Fconfiguration.md](references\u002Fconfiguration.md) | `astro.config.mjs`, TypeScript, env variables |\n| Environment Variables | [references\u002Fenvironment-variables.md](references\u002Fenvironment-variables.md) | `astro:env`, `envField`, type-safe env schema |\n| i18n Routing | [references\u002Fi18n-routing.md](references\u002Fi18n-routing.md) | Multilingual sites, locales, `astro:i18n` helpers |\n\n## Guidelines by Context\n\nContext-specific rules are available in the `rules\u002F` directory:\n\n- `rules\u002Fastro-components.rule.md` → Component structure patterns\n- `rules\u002Fclient-hydration.rule.md` → Hydration strategy decisions\n- `rules\u002Fcontent-collections.rule.md` → Collection schema best practices (Content Layer API)\n- `rules\u002Fastro-routing.rule.md` → Routing patterns and dynamic routes\n- `rules\u002Fastro-ssr.rule.md` → SSR configuration and adapters\n- `rules\u002Fastro-images.rule.md` → Image optimization patterns\n- `rules\u002Fastro-typescript.rule.md` → TypeScript configuration\n- `rules\u002Fserver-islands.rule.md` → Server island patterns and `server:defer`\n- `rules\u002Fsessions.rule.md` → Server-side session management\n\n## Critical Rules\n\n### MUST DO\n\n- Use islands architecture—only hydrate interactive components\n- Choose appropriate client directives based on interaction needs\n- Use `server:defer` for personalized\u002Fdynamic content on static pages\n- Define content collection schemas with Zod for type safety\n- Use Content Layer API with loaders (`glob`, `file`) in `src\u002Fcontent.config.ts`\n- Import Zod from `astro\u002Fzod` and render from `astro:content` (Astro 5+)\n- Use `\u003CImage \u002F>` and `\u003CPicture \u002F>` for optimized images\n- Implement proper error boundaries for client components\n- Use TypeScript with strict mode for type safety\n- Configure appropriate adapter for deployment target\n- Use `Astro.props` for component data passing\n- Use `astro:env` schema for type-safe environment variables\n- Use `Astro.session` for server-side state management\n\n### MUST NOT DO\n\n- Hydrate components that don't need interactivity (use `client:` only when necessary)\n- Use `client:only` without specifying the framework\n- Import images with string paths (use import statements)\n- Skip schema validation in content collections\n- Mix `server` and `hybrid` output modes incorrectly\n- Access `Astro.request` in prerendered pages\n- Use browser APIs in component frontmatter (server-side code)\n- Forget to install adapters for SSR deployment\n- Pass functions as props to `server:defer` components (not serializable)\n- Access `Astro.session` in prerendered pages (requires on-demand rendering)\n- Use `src\u002Fcontent\u002Fconfig.ts` for new projects (use `src\u002Fcontent.config.ts` with loaders)\n\n## Quick Reference\n\n### Component Structure\n\n```astro\n---\n\u002F\u002F Component Script (runs on server)\ninterface Props {\n  title: string;\n  count?: number;\n}\nconst { title, count = 0 } = Astro.props;\nconst data = await fetch('https:\u002F\u002Fapi.example.com\u002Fdata');\n---\n\n\u003C!-- Component Template -->\n\u003Cdiv>\n  \u003Ch1>{title}\u003C\u002Fh1>\n  \u003Cp>Count: {count}\u003C\u002Fp>\n\u003C\u002Fdiv>\n\n\u003Cstyle>\n  \u002F* Scoped by default *\u002F\n  h1 { color: navy; }\n\u003C\u002Fstyle>\n```\n\n### Directive Priority\n\n1. **No directive** → Static HTML, zero JavaScript\n2. **`server:defer`** → Deferred server rendering (server island)\n3. **`client:load`** → Hydrate immediately on page load\n4. **`client:idle`** → Hydrate when browser is idle\n5. **`client:visible`** → Hydrate when component enters viewport\n6. **`client:media`** → Hydrate when media query matches\n7. **`client:only`** → Skip SSR, render only on client\n\n### Content Collection Schema (Astro 5+)\n\n```typescript\n\u002F\u002F src\u002Fcontent.config.ts\nimport { defineCollection } from 'astro:content';\nimport { glob } from 'astro\u002Floaders';\nimport { z } from 'astro\u002Fzod';\n\nconst blog = defineCollection({\n  loader: glob({ base: '.\u002Fsrc\u002Fcontent\u002Fblog', pattern: '**\u002F*.{md,mdx}' }),\n  schema: z.object({\n    title: z.string(),\n    date: z.coerce.date(),\n    draft: z.boolean().default(false),\n    tags: z.array(z.string()).optional(),\n  }),\n});\n\nexport const collections = { blog };\n```\n\n### Server Island\n\n```astro\n---\nimport UserAvatar from '..\u002Fcomponents\u002FUserAvatar.astro';\n---\n\n\u003CUserAvatar server:defer>\n  \u003Cimg slot=\"fallback\" src=\"\u002Fgeneric-avatar.svg\" alt=\"Loading...\" \u002F>\n\u003C\u002FUserAvatar>\n```\n\n## Output Format\n\nWhen implementing Astro features, provide:\n\n1. Component file (`.astro` with frontmatter and template)\n2. Configuration updates (`astro.config.mjs` if needed)\n3. Content collection schema (if using collections)\n4. TypeScript types (for Props and data)\n5. Brief explanation of hydration strategy chosen\n\n## Technologies\n\nAstro 5+\u002F6+, Islands Architecture, Content Layer API (glob\u002Ffile loaders, live loaders), Zod Schemas, View Transitions API, Server Islands (`server:defer`), Sessions, Actions, Middleware, astro:env (type-safe environment variables), i18n Routing, Adapters (Node, Vercel, Netlify, Cloudflare, Deno), React\u002FVue\u002FSvelte\u002FSolid integrations, Image Optimization, MDX, Markdoc, TypeScript, Scoped CSS, Tailwind CSS\n",{"name":5,"license":15,"metadata":24,"description":7},{"tags":25,"author":26,"version":27,"category":28},"astro, islands, ssr, ssg, content-collections, content-layer, view-transitions, server-islands, sessions, i18n, actions, astro-env","delineas","2.0.0","framework","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fdelineas-astro-framework-agents\u002Fastro-framework\u002Fskills\u002Fastro-framework",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill astro-framework",{"tool":43,"command":44},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill astro-framework",{"tool":46,"command":47},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill astro-framework","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fdelineas-astro-framework-agents\u002Fastro-framework\u002Fskills\u002Fastro-framework\u002FSKILL.md",true,[],[52,59,64,71,76,83],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":60,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":72,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":84,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]