一键导入
astro-expert
Astro framework expert including components, content collections, and integrations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Astro framework expert including components, content collections, and integrations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Creates structured plans from requirements. Generates comprehensive plans with steps, dependencies, risks, and success criteria. Coordinates with specialist agents for planning input and validates plan completeness. Uses template-renderer for formatted output.
Create, validate, and convert skills for the agent ecosystem. Enforces standardized structure for consistency. Enables self-evolution by creating new skills on demand, converting MCP servers and codebases to skills.
Research-backed skill refresh workflow for updating existing skills with TDD checkpoints, memory-aware integration, and EVOLVE/reflection trigger handling.
Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.
Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.
N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.
| name | astro-expert |
| version | 1.1.0 |
| category | Frameworks |
| agents | ["developer","frontend-pro"] |
| tags | ["astro","static-site","islands","web","frontend"] |
| description | Astro framework expert including components, content collections, and integrations |
| model | sonnet |
| invoked_by | both |
| user_invocable | true |
| tools | ["Read","Write","Edit","Bash","Grep","Glob"] |
| consolidated_from | 1 skills |
| best_practices | ["Follow domain-specific conventions","Apply patterns consistently","Prioritize type safety and testing"] |
| error_handling | graceful |
| streaming | supported |
| verified | true |
| lastVerifiedAt | "2026-02-22T00:00:00.000Z" |
| source | builtin |
| trust_score | 100 |
| provenance_sha | d5c2f65fef572878 |
When reviewing or writing code, apply these guidelines:
Build and Deployment
When reviewing or writing code, apply these guidelines:
Component Development
When reviewing or writing code, apply these guidelines:
Content Management
When reviewing or writing code, apply these guidelines:
Data Fetching
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
Key Principles
This expert skill consolidates 1 individual skills:
defineCollection() + schema validation catches frontmatter errors at build time, not at runtime in production.client:load, client:idle, or client:visible intentionally; never rely on defaults; wrong hydration strategy defeats Astro's performance model.<Image> or getImage() from astro:assets; raw <img> tags skip width/height inference, format conversion, and LCP optimization.Astro.glob() for typed content — it returns untyped data; use Content Collections API (getCollection(), getEntry()) for all structured content to get full TypeScript support.| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Using React/Vue for static-only UI | Ships unnecessary JS; kills Astro's zero-JS default | Use .astro components for static content |
Raw <img> tags instead of <Image> | Misses LCP optimization, format conversion, lazy loading | Use <Image> from astro:assets always |
| Content without Zod schema | Frontmatter errors surface at runtime, not build time | Define schema in src/content/config.ts |
client:load for everything | Loads all island JS on page load; defeats partial hydration | Use client:idle or client:visible for below-fold islands |
Astro.glob() for structured content | Returns untyped; no schema validation | Use getCollection() from astro:content |
Before starting:
cat .claude/context/memory/learnings.md
After completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.