一键导入
astro-best-practices
Apply performant, accessible, and maintainable defaults when building or reviewing Astro projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply performant, accessible, and maintainable defaults when building or reviewing Astro projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add and configure Astro integrations, adapters, and UI framework tooling.
Set up and evolve Astro content collections with typed schemas and reliable querying patterns.
Plan and execute migrations to Astro or between Astro versions with minimal regressions.
Create Astro components, pages, and layouts with accessible markup and minimal client-side JavaScript.
Look up official Astro documentation and answer version-sensitive Astro questions accurately.
| name | astro-best-practices |
| description | Apply performant, accessible, and maintainable defaults when building or reviewing Astro projects. |
Use this skill as the baseline when designing, implementing, or reviewing Astro work. It translates Astro-specific architectural guidance into portable instructions that can be applied across agents.
.astro first.astro components for static and mostly static UIclient:visible for deferred UIclient:idle for lower-priority enhancementclient:load for critical immediate interactivity onlyclient:only only when skipping server rendering is intentionalDefault away from hydrating broad layout regions.
Typical structure:
src/
components/
layouts/
pages/
content/
styles/
assets/
public/
Do not invent novel folder structure without a clear project-specific reason.
header, nav, main, article, and footerastro:assets or the project’s chosen image pipeline intentionallyBefore finalizing Astro work, check: