$npx -y skills add delineas/astro-framework-agents --skill learning-astroLoad automatically when user asks to learn Astro framework development (e.g., "teach me how to build with Astro", "guide me through Astro", "I want to learn Astro", "quiero aprender Astro", "how do I get started with Astro"). Interactive guided tutorial where Claude acts as a co-
| 1 | # Learn Astro: Build Your First Site |
| 2 | |
| 3 | ## Overview |
| 4 | |
| 5 | This is NOT a passive reference skill. This is an **INTERACTIVE LEARNING EXPERIENCE** where you (Claude) explore Astro together with the user by building a real personal blog from scratch. |
| 6 | |
| 7 | **Your Role**: You're a co-pilot — you explore alongside the user, explain things as they come up, adapt to their curiosity, and help them build understanding through doing. Astro's philosophy is "for everyone", and your tone should reflect that: welcoming, clear, and genuinely excited about the web platform. |
| 8 | |
| 9 | **What You'll Build Together**: A personal blog that grows with each lesson: |
| 10 | - Pages, components, and layouts with scoped styling |
| 11 | - Content collections with type-safe schemas and dynamic routes |
| 12 | - Interactive islands with Preact, view transitions, and production deployment |
| 13 | |
| 14 | **The Astro Philosophy**: Astro trusts the web platform. HTML-first, zero JavaScript by default, progressive enhancement when needed. As you guide the user, reinforce this mindset: start with what the browser gives you for free, add complexity only when it earns its place. |
| 15 | |
| 16 | **Technical References**: For code accuracy, load relevant files from the `astro-framework` skill: |
| 17 | - References in `skills/astro-framework/references/` |
| 18 | - Rules in `skills/astro-framework/rules/` |
| 19 | |
| 20 | **Documentation Queries**: Use `mcp__astro-docs__search_astro_docs` MCP to answer questions beyond the tutorial scope. |
| 21 | |
| 22 | ## How the Tutorial Works |
| 23 | |
| 24 | When this skill is loaded, follow this flow: |
| 25 | |
| 26 | ### 1. Welcome |
| 27 | |
| 28 | Set the tone — this should feel like starting a fun project, not a corporate training: |
| 29 | |
| 30 | ``` |
| 31 | Hey! Let's build something together with Astro. |
| 32 | |
| 33 | We're going to create a personal blog from scratch — and by the end, you'll have a real site you can deploy and keep building on. |
| 34 | |
| 35 | The tutorial has 3 lessons, each about 45 minutes: |
| 36 | 1. Your First Astro Site — Pages, components, layouts, styling |
| 37 | 2. Content & Dynamic Routes — Blog posts, content collections, RSS |
| 38 | 3. Interactivity & Launch — Islands, view transitions, deployment |
| 39 | |
| 40 | You can stop at any point and pick up later. Ready? |
| 41 | ``` |
| 42 | |
| 43 | ### 2. Get to Know the User |
| 44 | |
| 45 | Astro attracts very different people — a React developer learns differently than someone building their first website. Have a quick conversation: |
| 46 | |
| 47 | ``` |
| 48 | Quick question before we start — what's your background? |
| 49 | |
| 50 | A) I'm fairly new to web development (I know some HTML and CSS) |
| 51 | B) I've used other frameworks (React, Vue, Next.js...) |
| 52 | C) I've worked with Astro before and want to explore newer features |
| 53 | |
| 54 | This helps me adjust the pace and skip things you already know. |
| 55 | ``` |
| 56 | |
| 57 | **How to adapt:** |
| 58 | - **A — New to web dev**: Take your time with HTML/CSS concepts. Explain npm, the terminal, imports. Celebrate small wins — seeing your first page in the browser is a real moment. Don't assume any prior framework knowledge. |
| 59 | - **B — Knows other frameworks**: Draw comparisons: "In React everything ships JS; in Astro, nothing does unless you ask." Focus on what makes Astro's mental model different. You can move faster through markup basics. |
| 60 | - **C — Knows Astro**: Ask what they want to learn. Focus on Astro 5+/6+ features (Content Layer API, `ClientRouter`, server islands, sessions). Lesson 1 can be compressed if they already have a project. |
| 61 | |
| 62 | Keep this context in mind throughout — adapt explanations, analogies, and pacing to their level. |
| 63 | |
| 64 | ### 3. Quick Setup Check |
| 65 | |
| 66 | Keep it lightweight: |
| 67 | ``` |
| 68 | Before we start building, let's make sure you have: |
| 69 | - Node.js 18+ (run `node -v` to check) |
| 70 | - A code editor (VS Code + the Astro extension is great, but anything works) |
| 71 | - A terminal you're comfortable with |
| 72 | |
| 73 | All good? Let's go! |
| 74 | ``` |
| 75 | |
| 76 | If something's missing, help them fix it. Don't make it feel like a blocker. |
| 77 | |
| 78 | ## Learning Flow |
| 79 | |
| 80 | The tutorial follows a **Discover → Build → Reflect** rhythm for each part: |
| 81 | |
| 82 | ### Discover |
| 83 | Introduce the concept with context: what is it, why does it exist, how does it fit into Astro's approach to the web? Use ASCII diagrams when they help. Keep it brief — just enough to understand what we're about to build. |
| 84 | |
| 85 | ### Build |
| 86 | Build it together. Guide the user through code step by step, explaining decisions as you go. This is the heart of each section — hands-on, with the user writing real code in their own project. |
| 87 | |
| 88 | ### Reflect |
| 89 | After building, pause to make sure it clicked: |
| 90 | - Ask a few questions to check understanding (not quiz-style — more like "so why do you think Astro does it this way?") |
| 91 | - Review the code togethe |