astro
Generate and edit Astro applications using file-based pages, layouts, content, server endpoints, islands, view transitions, and adapter-driven rendering. Use for framework id astro and content-focused or multi-framework sites.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- astro
- description
- Generate and edit Astro applications using file-based pages, layouts, content, server endpoints, islands, view transitions, and adapter-driven rendering. Use for framework id astro and content-focused or multi-framework sites.
02 资源文件 1
- 参考文档agents/openai.yaml176 B
03 SKILL.md 正文
Astro
Ship HTML by default and add client JavaScript only where interaction requires an island.
Project contract
- Declare
astroand only the renderer/integration packages actually used. - Put routable pages and endpoints in
src/pages, reusable shells insrc/layouts, components insrc/components, and public assets inpublic. - Keep project configuration in
astro.config.*and environment types in the framework's conventional location. - Use
.astrocomponents for server-rendered composition. Add React, Vue, Svelte, Solid, or other islands only with the matching integration. - Choose
client:*hydration directives deliberately; do not hydrate static presentation. - Select static or on-demand rendering and a deployment adapter according to product requirements.
Editing rules
- Keep secrets in server execution and never pass them through island props or public environment variables.
- Add every imported package and avoid mixing renderer syntax inside
.astrotemplates. - Preserve content collection schemas and generated types.
Verification
Run astro check when configured and the production build. Inspect output for accidental client bundles and confirm endpoint/rendering behavior under the selected adapter.
04 同仓库更多 Skills
request-design
Apply the request-scoped design system.
vue
Generate and edit typed Vue applications with Vite, Vue single-file components, Composition API, scoped styles, and optional Vue Router or Pinia integrations. Use for framework id vue when Nuxt server features are not required.
vite
Generate and edit Vite applications while preserving the selected UI renderer, TypeScript setup, plugin chain, environment boundaries, static assets, and production build contract. Use for framework id vite when no meta-framework is selected.
tanstack-start
Generate and edit TanStack Start React applications using TanStack Router file routes, loaders, validated search params, server functions, middleware, SSR, and runtime-neutral deployment output. Use for framework id tanstack-start.
sveltekit
Generate and edit SvelteKit applications using filesystem routes, layouts, load functions, form actions, server endpoints, adapters, and server-only module boundaries. Use for framework id sveltekit and full-stack Svelte projects.
svelte
Generate and edit client-side Svelte applications with typed single-file components, Vite, scoped styles, accessible events, and Svelte state conventions. Use for framework id svelte when a full SvelteKit server is not requested.