Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

astro-project-analyzerastro 项目分析器

Agent Skill

astro-project-analyzer 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

799

周安装

32

GitHub Stars

公开资料未说明

下载量

259
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install astro-project-analyzer

简介

分析和优化 Astro 项目 - 审核配置、性能、SEO、可访问性、内容集合和集成设置。

SKILL.md

name
astro-project-analyzer
description
Analyze and optimize Astro projects — audit configuration, performance, SEO, accessibility, content collections, and integration setup.
metadata
tags
["astro", "web", "performance", "seo", "frontend"]

Astro Project Analyzer

Analyze Astro projects for configuration quality, performance optimization, SEO compliance, accessibility, and best practices. Use when setting up new Astro sites, auditing existing ones, migrating from other frameworks, or optimizing build performance.

Usage

"Analyze this Astro project for issues"
"Optimize my Astro site's performance"
"Check my Astro config for best practices"
"Audit content collections for consistency"
"Help migrate my Next.js site to Astro"

How It Works

1. Project Discovery

Scan the Astro project structure:

# Detect Astro version and config
cat astro.config.mjs 2>/dev/null || cat astro.config.ts 2>/dev/null
cat package.json | python3 -c "import json,sys; d=json.load(sys.stdin); print('Astro:', d.get('dependencies',{}).get('astro', d.get('devDependencies',{}).get('astro','not found')))"

# Map project structure
find src -type f | head -50
ls src/pages/ src/layouts/ src/components/ src/content/ 2>/dev/null

2. Configuration Audit

Check astro.config.mjs for:

  • Output mode: static vs server vs hybrid — matches use case?
  • Integrations: are all configured integrations used? Missing useful ones?
  • Build settings: outDir, compressHTML, scopedStyleStrategy
  • Image optimization: configured with @astrojs/image or built-in astro:assets?
  • Adapter: correct adapter for deployment target (Vercel, Netlify, Node, Cloudflare)
  • Prefetch: configured for navigation performance?
  • View Transitions: enabled for SPA-like navigation?
  • Markdown/MDX: remark/rehype plugins configured appropriately?
  • Vite config: any unnecessary overrides or missing optimizations?

3. Performance Analysis

  • Island architecture: are interactive components properly isolated?
  • Client directives: appropriate use of client:load, client:idle, client:visible, client:media, client:only
  • Bundle size: check for heavy client-side JS in static pages
  • Image optimization: all images using <Image> component? WebP/AVIF?
  • Font loading: using @fontsource or optimized font strategy?
  • CSS strategy: scoped styles vs global? Unused CSS?
  • Build time: identify slow pages, large content collections

4. Content Collections

If using content collections (src/content/):

  • Schema validation with Zod: complete and correct?
  • Frontmatter consistency across entries
  • Missing required fields
  • Orphaned content (files not in any collection)
  • Collection references and relations
  • Slug generation and uniqueness

5. SEO & Accessibility

  • Meta tags: title, description, og:image on all pages
  • Sitemap integration configured?
  • Robots.txt present?
  • Canonical URLs set correctly?
  • Structured data (JSON-LD) for key pages?
  • Alt text on all images
  • Heading hierarchy (single h1, proper nesting)
  • Color contrast in theme
  • Keyboard navigation for interactive elements
  • ARIA labels on icon buttons

6. Routing & Pages

  • Dynamic routes properly typed
  • 404 page exists
  • API routes (if server mode) have proper error handling
  • Pagination implemented for large collections
  • RSS feed configured for blog/content sites

7. Deployment Readiness

  • Correct adapter installed for target platform
  • Environment variables documented
  • Build command produces clean output
  • No dev-only dependencies in production
  • Cache headers configured appropriately

Output

## Astro Project Analysis

**Version:** Astro 5.2.1 | **Mode:** hybrid | **Adapter:** @astrojs/vercel

### 🔴 Issues (3)
1. Missing `<Image>` component — 8 pages use raw `<img>` tags
   → Import from 'astro:assets' for automatic optimization
2. `client:load` on footer newsletter form — should be `client:visible`
   → Form is below fold, no need to hydrate on page load
3. No sitemap integration — search engines can't discover pages
   → Add @astrojs/sitemap to integrations

### 🟡 Improvements (5)
4. Content collection "blog" has no schema validation
   → Add Zod schema in src/content/config.ts
5. Global CSS file is 12KB — 40% unused on most pages
   → Convert to scoped styles or use CSS purging
[...]

### 🟢 Good Practices
- View Transitions enabled for smooth navigation
- Proper island architecture — only 3 interactive components
- Images in WebP format with fallbacks
- Font loaded via @fontsource (no external requests)

### Performance Score
- Estimated Lighthouse: 92/100 (after fixes: 97/100)
- Total client JS: 23KB (good for hybrid site)
- Build time: ~8s for 47 pages

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

87.83%
按下载量换算227

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills