Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

astro-advanced天文高级

Agent Skill

astro-advanced 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,202

周安装

170

GitHub Stars

公开资料未说明

下载量

1,319
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install astro-advanced

简介

Astro 项目的构建、配置与故障排除综合技能。

  • 适用于 OpenClaw 中前端项目维护与开发支持场景。
  • 提供 .astro 文件处理与 Astro 配置的专业指导。
  • 安装前需确认权限范围、维护状态及是否触发构建或部署命令。
  • astro-advanced 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
astro-advanced
description
>

Astro Advanced Skill

This skill provides production-grade guidance for Astro projects — from initial scaffolding through deployment, caching, and performance tuning. It covers the patterns that actually matter in real projects and the mistakes that actually happen.

How to use this skill

  1. Read this file first for the core workflow and decision tree.
  2. Consult the reference files in references/ for deep dives on specific topics:

- references/setup-and-structure.md — Project creation, file structure, config, adapters - references/rendering-modes.md — SSG vs SSR vs Hybrid, when to use each, caching strategies - references/seo.md — Meta tags, Open Graph, JSON-LD, sitemaps, canonical URLs - references/islands-and-vue.md — Island architecture, client directives, Vue/React/Svelte integration - references/content-and-data.md — Content collections, data fetching, dynamic routes - references/deployment.md — Adapters, static hosts, serverless, environment variables - references/performance.md — Image optimization, bundle analysis, hydration control - references/troubleshooting.md — Common errors and fixes organized by symptom

Core decision tree

When helping with an Astro project, follow this sequence:

1. Identify the rendering strategy first

This is the single most important decision in any Astro project. Everything else flows from it.

  • Pure static site (blog, docs, marketing)? → SSG (default). No adapter needed.
  • Needs user-specific data, auth, or real-time content? → SSR with an adapter.
  • Mostly static but a few dynamic pages? → Hybrid mode. Set output: 'static' in config and use export const prerender = false on dynamic pages.

2. Pick the right adapter

Only needed for SSR or hybrid:

  • Vercel@astrojs/vercel (serverless or edge)
  • Netlify@astrojs/netlify
  • Cloudflare Pages@astrojs/cloudflare
  • Self-hosted Node@astrojs/node (standalone or middleware)

3. Set up integrations

Add only what you need. Each integration is a potential build-time dependency:

# Common additions
npx astro add vue        # Vue islands
npx astro add tailwind   # Tailwind CSS
npx astro add mdx        # MDX support
npx astro add sitemap    # Auto sitemap generation

4. Establish content strategy

  • Few pages, hand-authored → Regular .astro pages in /src/pages
  • Blog/docs with structured content → Content collections with Zod schemas
  • CMS-driven → Fetch at build time (SSG) or runtime (SSR)

5. Apply SEO from the start

Don't bolt it on later. See references/seo.md for the full pattern, but at minimum:

  • Create a reusable <SEO> component for head tags
  • Set up canonical URLs
  • Add structured data (JSON-LD) for key pages
  • Generate sitemap via @astrojs/sitemap

Key patterns to always follow

Layout pattern

Every page should use a layout. Layouts handle <html>, <head>, and shared chrome:

---
// src/layouts/Base.astro
import SEO from '../components/SEO.astro';
const { title, description } = Astro.props;
---
<html lang="en">
  <head>
    <SEO title={title} description={description} />
  </head>
  <body>
    <nav><!-- shared nav --></nav>
    <slot />
    <footer><!-- shared footer --></footer>
  </body>
</html>

Island pattern

Static by default. Only hydrate what needs interactivity:

<!-- Static: renders HTML, ships zero JS -->
<Card title="Hello" />

<!-- Interactive: hydrates on load -->
<Counter client:load />

<!-- Interactive: hydrates when visible (lazy) -->
<ImageGallery client:visible />

The #1 Astro mistake: forgetting client:* on a component that needs interactivity, then wondering why click handlers don't work.

SSR caching pattern

SSR without caching is just a slow website. Always pair SSR with a caching strategy:

// In an SSR endpoint or page
return new Response(JSON.stringify(data), {
  headers: {
    "Cache-Control": "public, s-maxage=60, stale-while-revalidate=300",
    "Content-Type": "application/json"
  }
});

When things go wrong

Read references/troubleshooting.md for a symptom-based guide. The top 5 issues:

  1. "Component doesn't do anything" → Missing client:* directive
  2. Build fails after adding integration → Version mismatch, check package.json
  3. SSR returns 500 → Missing adapter or wrong output mode in config
  4. Broken links after deploy → Base path not set, or trailing slash mismatch
  5. Hydration mismatch errors → Server/client HTML differs (conditional rendering, dates, randomness)

File output conventions

When generating Astro project files:

  • Always include the frontmatter fence (---) even if empty
  • Use .astro extension for Astro components and pages
  • Place pages in src/pages/, components in src/components/, layouts in src/layouts/
  • Use TypeScript in frontmatter when the project uses TS
  • Include astro.config.mjs with only the integrations and settings actually needed

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

72.74%
按下载量换算959

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills