astro-expert

astro-expert is a skill for Claude Code, Codex from LuuOW/meridian-mcp. It costs 28 tokens per session (1,193 once invoked), scanned A, original, MIT.

A set of guidance for building production frontends with Astro, a web framework that can render pages mostly as static HTML and add JavaScript only where interaction needs it. It covers server rendering, React components, performance, and project structure.

In plain words
What is it for?
Use it when scaffolding or improving an Astro frontend, choosing when components should run in the browser, integrating React, or preparing a production build.
Why use it?
It helps keep pages lightweight while adding interactive parts where needed. It also provides conventions for organizing and rendering an Astro project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when scaffolding or improving an Astro frontend, choosing when components should run in the browser, integrating React, or preparing a production build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luuow/meridian-mcp/astro-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LuuOW/meridian-mcp --skill astro-expert
Clone the repo
git clone --depth 1 https://github.com/LuuOW/meridian-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for astro-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/luuow/meridian-mcp/astro-expert/github.svg)](https://agentmods.dev/skills/luuow/meridian-mcp/astro-expert)
Your own site
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/astro-expert"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/astro-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for astro-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/astro-expert"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/astro-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,193 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01193
Opus 5 $0.00014 $0.00596
Sonnet 5 $0.00006 $0.00239
Haiku 4.5 $0.00003 $0.00119

Measured 10d ago against content hash f8474e57d93d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

astro-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/astro-expert/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

astro-expert

Expert knowledge for building production-ready frontends with Astro — combining static rendering, selective hydration, and React islands for interactive components.

1) Core Architecture Principles

  • Islands architecture: static Astro shell + selectively hydrated React islands
  • Zero JS by default — every kilobyte of hydrated JS must justify itself with UX value
  • client:load — hydrate immediately (forms, critical interactivity)
  • client:idle — hydrate when browser is idle (non-critical widgets)
  • client:visible — hydrate when in viewport (below-the-fold islands)
  • client:only="react" — skip SSR entirely for fully client-driven components (SSE consumers, real-time UIs)

2) Project Structure

src/
├── layouts/          # Astro layout shells (zero JS)
├── pages/            # File-based routing (.astro files)
│   └── [id].astro    # Dynamic segments
├── components/
│   ├── layout/       # Pure Astro layout primitives
│   ├── ui/           # Shared React primitives (Button, Card, Badge)
│   └── features/     # React islands — business-logic components
├── lib/              # Utilities, API client, hooks
│   ├── utils.ts      # cn() helper, formatters
│   ├── api.ts        # Backend API client
│   └── useEventStream.ts  # SSE hook
├── styles/
│   ├── tokens.css    # CSS custom properties (color, spacing, radius)
│   └── app.css       # Tailwind entry + base overrides
└── types/            # Shared TypeScript interfaces

3) Configuration Baseline

// astro.config.mjs
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import tailwind from '@astrojs/tailwind';

export default defineConfig({
  integrations: [
    react(),
    tailwind({ applyBaseStyles: false }),
  ],
  output: 'hybrid', // static by default, opt-in SSR per page
});

Mark dynamic pages: export const prerender = false;

4) React Island Pattern

---
// pages/projects/[id].astro — static shell
import BaseLayout from '@/layouts/BaseLayout.astro';
import PipelineStream from '@/components/features/PipelineStream';

const { id } = Astro.params;
---
<BaseLayout title="Project">
  <!-- client:only skips SSR — needed for SSE hooks -->
  <PipelineStream projectId={id} client:only="react" />
</BaseLayout>

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 140 lines · 28 tokens per session scan A f8474e57d93d

Subscribe to this mod's changes

astro-expert is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 1,193 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.