Frontend Astro Patterns
Use when the user asks about Astro island patterns, client:load / client:visible / client:idle, server islands, view transitions, Astro integrations, content collection queries or per-route prerendering. Produces hydration and rendering patterns for an existing Astro site. Not for initial Astro project setup (use frontend-astro-architecture).
Install
npx skills add j4flmao/agent-skills --skill frontend-astro-patternsgit clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/frontend/astro/patterns ~/.claude/skills/frontend-astro-patternsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Astro Patterns
## Purpose
Apply production patterns to Astro projects: island architecture with optimal hydration, type-safe content collections, view transitions, and static/dynamic hybrid rendering strategies.
## Agent Protocol
### Trigger
Exact user phrases: "Astro pattern", "Astro island", "Astro component pattern", "Astro integration", "Astro content collection", "Astro view transition", "Astro hybrid SSR/SSG", "client:load", "client:visible".
### Input Context
Before activating, verify:
- package.json has astro dependency.
- Which integration(s) are configured (React, Vue, Svelte, Solid).
- Whether the project uses SSG, SSR, or hybrid mode (output config).
- Content collection structure in src/content/.
### Output Artifact
No file output. Produces island strategy, content model, rendering approach as text.
### Response Format
```
Island Strategy: {directive} — {rationale}
Content Model: {collection/type} — {schema summary}
Rendering: {static/server/hybrid} — {per-route rationale}
```
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
### Completion Criteria
- [ ] Island hydration chosen from most to least aggressive: load -> idle -> visible -> media -> only.
- [ ] Content collections have Zod schemas with validation.
- [ ] View transitions use <ViewTransition /> and transition:name directives.
- [ ] Hybrid rendering: static for content, server for dynamic routes.Details
- Skill name
frontend-astro-patterns- Repository
- j4flmao/agent-skills
- Path
skills/frontend/astro/patterns/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Frontend Astro Patterns skill do?
Use when the user asks about Astro island patterns, client:load / client:visible / client:idle, server islands, view transitions, Astro integrations, content collection queries or per-route prerendering. Produces hydration and rendering patterns for an existing Astro site. Not for initial Astro project setup (use frontend-astro-architecture).
How do I install the Frontend Astro Patterns skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill frontend-astro-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Frontend Astro Patterns popular?
It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.
Related skills
Agent Observability
45j4flmao/agent-skills
Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).
AI Agent Architectures
45j4flmao/agent-skills
Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).
AI Agent Core Loop
45j4flmao/agent-skills
Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).
Frontend Authentication
45j4flmao/agent-skills
Use when the user asks to implement JWT login with refresh tokens in the browser, OAuth2/OIDC with PKCE, protected routes and route guards, token storage, sessions, logout, SSO, passkeys or MFA screens. Produces secure client-side auth flows for any framework and provider. Not for server-side token validation and auth APIs (use backend-auth-patterns).
Frontend Animation
45j4flmao/agent-skills
Use when the user asks about Motion (Framer Motion), GSAP, CSS keyframes and transitions, the View Transitions API, page transitions, enter/exit or spring animations and prefers-reduced-motion. Produces performant, accessible web animation code. Not for motion principles and specs (use design-motion-design) or 3D scenes (use web3d-webgl).
Frontend Browser Caching
45j4flmao/agent-skills
Use when the user asks about Cache-Control headers, ETag, immutable hashed assets, cache busting, stale-while-revalidate, bfcache or service worker cache strategies for page loads. Produces browser caching headers and asset versioning rules. Not for installable offline apps (use frontend-pwa) or CDN edge config (use cdn-edge).
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.