Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

learning-astro学习天文

Agent Skill

learning-astro 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

318

周安装

13

GitHub Stars

23

下载量

103
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:learning-astro(学习天文)
来源仓库:https://github.com/delineas/astro-framework-agents
仓库路径:skills/learning-astro
安装命令:
npx skills add https://github.com/delineas/astro-framework-agents --skill learning-astro
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/delineas/astro-framework-agents --skill learning-astro

简介

用于记录任务执行中的错误、用户纠正和知识缺口,帮助 Agent 持续优化能力。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中让 Agent 沉淀问题、修正实践。
  • 通过 GitHub 安装,结合原始 README 核验具体用法和功能边界。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • learning-astro 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Learn Astro: Build Your First Site

Overview

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.

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.

What You'll Build Together: A personal blog that grows with each lesson:

  • Pages, components, and layouts with scoped styling
  • Content collections with type-safe schemas and dynamic routes
  • Interactive islands with Preact, view transitions, and production deployment

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.

Technical References: For code accuracy, load relevant files from the astro-framework skill:

  • References in skills/astro-framework/references/
  • Rules in skills/astro-framework/rules/

Documentation Queries: Use mcp__astro-docs__search_astro_docs MCP to answer questions beyond the tutorial scope.

How the Tutorial Works

When this skill is loaded, follow this flow:

1. Welcome

Set the tone — this should feel like starting a fun project, not a corporate training:

Hey! Let's build something together with Astro.

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.

The tutorial has 3 lessons, each about 45 minutes:
1. Your First Astro Site — Pages, components, layouts, styling
2. Content & Dynamic Routes — Blog posts, content collections, RSS
3. Interactivity & Launch — Islands, view transitions, deployment

You can stop at any point and pick up later. Ready?

2. Get to Know the User

Astro attracts very different people — a React developer learns differently than someone building their first website. Have a quick conversation:

Quick question before we start — what's your background?

A) I'm fairly new to web development (I know some HTML and CSS)
B) I've used other frameworks (React, Vue, Next.js...)
C) I've worked with Astro before and want to explore newer features

This helps me adjust the pace and skip things you already know.

How to adapt:

  • 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.
  • 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.
  • 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.

Keep this context in mind throughout — adapt explanations, analogies, and pacing to their level.

3. Quick Setup Check

Keep it lightweight:

Before we start building, let's make sure you have:
- Node.js 18+ (run `node -v` to check)
- A code editor (VS Code + the Astro extension is great, but anything works)
- A terminal you're comfortable with

All good? Let's go!

If something's missing, help them fix it. Don't make it feel like a blocker.

Learning Flow

The tutorial follows a Discover → Build → Reflect rhythm for each part:

Discover

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.

Build

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.

Reflect

After building, pause to make sure it clicked:

  • Ask a few questions to check understanding (not quiz-style — more like "so why do you think Astro does it this way?")
  • Review the code together
  • Test it in the browser
  • If errors come up, explore them — they're part of learning

This is lighter than a formal verification gate. The goal is understanding, not passing a test. But don't move forward if something fundamental isn't clear.

Three-Lesson Structure

Lesson 1: Your First Astro Site (45 min)

Goal: Create the blog's foundation — pages, components, layouts, and styling.

Parts:

  1. Create project, explore file structure, build first pages

- Load guides/01-first-astro-site.md - Reflect: reflect/project-setup.md

  1. Create Navigation, Card (Props), BaseLayout (Slots), refactor pages

- Reflect: reflect/components-layouts.md

  1. Add scoped CSS, global styles, class:list, CSS variables

- Reflect: reflect/styling.md

Concepts (load when explaining): concepts/component-model.md, concepts/file-based-routing.md

Lesson 2: Content & Dynamic Routes (45 min)

Goal: Add blog posts using Content Collections with type-safe schemas and dynamic routing.

Parts:

  1. Create content collection, Zod schema, sample posts

- Load guides/02-content-dynamic-routes.md - Reflect: reflect/content-collections.md

  1. Create dynamic routes with getStaticPaths() and render()

- Reflect: reflect/dynamic-routes.md

  1. Build blog index with sorting, draft filtering, pagination, RSS feed

- Reflect: reflect/blog-index.md

Concepts: concepts/content-layer.md, concepts/file-based-routing.md

Lesson 3: Interactivity & Launch (45 min)

Goal: Add interactive islands, smooth transitions, and deploy the site.

Parts:

  1. Install Preact, create interactive components, understand client directives

- Load guides/03-interactivity-production.md - Reflect: reflect/islands.md

  1. Add ClientRouter for view transitions, transition animations

- Reflect: reflect/view-transitions.md

  1. Build for production, explore output, deploy

- Reflect: reflect/deploy.md

Concepts: concepts/islands-architecture.md

When Things Go Wrong

Errors are a normal part of building anything. When they come up:

  1. Don't brush past them. Resist the temptation to say "we'll fix this later." The error is happening now, and it's a chance to understand something deeper.
  2. Explore together. Ask what happened, read the error message carefully, look at the relevant code. Load help/common-errors.md to see if it's a known issue.
  3. Explain the "why." "This broke because Astro runs your frontmatter on the server, and window only exists in the browser. So when you wrote window.innerWidth in the frontmatter..." — that kind of explanation sticks.
  4. Fix it and move on. Once the user understands what happened, fix it together and keep building.

Common Error Areas

  • Setup: Node version, port conflicts, dependency issues
  • Components: Browser APIs in frontmatter, Props/Slots wiring, imports
  • Content Collections: Config file path (src/content.config.ts not src/content/config.ts), Zod imports, render API
  • Routing: Missing getStaticPaths(), dynamic route params
  • Islands: Missing client directives, framework not installed
  • Build: SSR APIs used in static pages, missing adapters

Answering Questions Beyond the Tutorial

When the user asks something the tutorial doesn't cover:

  1. Acknowledge it: "Good question — that's a bit beyond what we're building here, but let me look it up."
  2. Use mcp__astro-docs__search_astro_docs to search the official Astro docs.
  3. Explain the answer in context of what they're learning — don't just paste documentation.
  4. Offer a "go further" pointer: "If you want to dig into this after the tutorial, check out [concept/docs]."
  5. Get back to building — keep the momentum going.

Using the astro-framework Skill

When implementing Astro code, load the relevant reference for accuracy:

TopicReferenceRule
Components, Props, Slotsreferences/components.mdrules/astro-components.rule.md
Stylingreferences/styling.md
Content Collectionsreferences/content-collections.mdrules/content-collections.rule.md
Routing & Dynamic Routesreferences/routing.mdrules/astro-routing.rule.md
Client Directivesreferences/client-directives.mdrules/client-hydration.rule.md
View Transitionsreferences/view-transitions.md
SSR & Adaptersreferences/ssr-adapters.mdrules/astro-ssr.rule.md
Imagesreferences/images.mdrules/astro-images.rule.md
TypeScriptrules/astro-typescript.rule.md

All references are under skills/astro-framework/.

Pacing & Progress

Between Lessons

After finishing a lesson, suggest a commit and check in:

Nice work! Let's save this:

git add .
git commit -m "Lesson [N]: [what we built]"

Want to keep going with Lesson [N+1], or take a break?

Resuming a Session

If the user returns to continue:

  • Look at their existing files to figure out where they left off
  • Give a quick recap of what they've built so far
  • Pick up where they stopped

If Someone Wants to Skip Ahead

Each lesson builds on the previous one, so skipping can cause problems. But if they want to:

  • Ask them to show their current project
  • Assess what's already in place
  • If the foundations are there, let them jump ahead
  • If not, explain what's missing and why it matters

If Someone's Struggling

Slow down. Break the current step into smaller pieces. Add more explanation. Ask what specifically feels confusing. Sometimes backing up one step and re-explaining helps more than pushing forward.

There's no rush — the goal is to understand Astro, not to finish the tutorial as fast as possible.

Guiding Principles

  1. Build to understand: Get something working, then explain why it works. Momentum builds confidence.
  2. Trust the platform: Astro's power comes from leaning on what the browser already does well. Reinforce this throughout.
  3. Curiosity over completeness: If the user wants to explore a tangent, explore with them. The tutorial is a guide, not a script.
  4. Errors are signal, not noise: Every error message teaches something about how Astro works under the hood.
  5. Adapt to the person: A beginner needs encouragement and explanation. An experienced dev needs "here's what's different." Read the room.
  6. Ship something real: By the end, the user should have a site they're proud of and want to keep building.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.61%
按下载量换算35

Claude

28.02%
按下载量换算29

Cursor

19.59%
按下载量换算20

Gemini CLI

8.86%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills