astro-framework

astro-framework is a skill for Claude Code, Codex from monkilabs/opencastle. It costs 37 tokens per session (510 once invoked), scanned A, original, MIT.

A set of coding guidance for Astro, a web framework for building pages and layouts. It covers Astro components, content collections, browser-side code loading, static routes, server rendering, and integrations.

In plain words
What is it for?
Use it when creating or changing Astro pages, layouts, components, content collections, dynamic routes, API routes, or client-side features.
Why use it?
It helps avoid common Astro setup mistakes, such as putting assets in the wrong folder, using the wrong content-collection location, or configuring server rendering incompletely.

Skill for Claude CodeCodex

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

Good fit Use it when creating or changing Astro pages, layouts, components, content collections, dynamic routes, API routes, or client-side features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monkilabs/opencastle/astro-framework
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 monkilabs/opencastle --skill astro-framework
Clone the repo
git clone --depth 1 https://github.com/monkilabs/opencastle

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-framework

README.md
[![agentmods](https://agentmods.dev/badge/skills/monkilabs/opencastle/astro-framework/github.svg)](https://agentmods.dev/skills/monkilabs/opencastle/astro-framework)
Your own site
<a href="https://agentmods.dev/skills/monkilabs/opencastle/astro-framework"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/astro-framework/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-framework

Your own site · 80×15
<a href="https://agentmods.dev/skills/monkilabs/opencastle/astro-framework"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/astro-framework.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 510 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.00037 $0.00510
Opus 5.5 $0.00015 $0.00204
Sonnet 5.5 $0.00007 $0.00102
Haiku 4.5 $0.00004 $0.00051

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

Security

Grade A, and why

astro-framework 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 11d 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.

src/orchestrator/plugins/astro/skills/astro-framework/SKILL.md · 31 lines

What it actually says

Astro Framework

Docs: https://docs.astro.build

Gotchas

  • public/ serves assets as-is; src/assets/ goes through the build pipeline. Wrong folder = no optimization, or a broken import.
  • Astro v5+ defines collections in src/content.config.ts (not src/content/config.ts) and requires an explicit loader, e.g. glob({ pattern: '**/*.{md,mdx}', base: './src/content/blog' }).
  • Default is zero client JS. Ship JS only via a client:* directive, and pick the cheapest one that still works: client:load (critical), client:idle (deferred), client:visible (lazy), client:media (breakpoint-gated), client:only (last resort — skips SSR entirely, so no server-rendered HTML).
  • getStaticPaths() is required for dynamic routes in static output; it does not run in output: 'server'.
  • SSR needs both output: 'server' (or 'hybrid') and an adapter (node, vercel, netlify, cloudflare) in astro.config.mjs.
  • Collection schemas are Zod — use z.coerce.date() for frontmatter dates, since raw frontmatter is a string.

Layout

src/pages/ (file-based routes), layouts/, components/, content/, styles/, assets/. API routes: export GET/POST from src/pages/api/*.ts returning new Response(...). Type-safe mutations: defineAction in src/actions/index.ts.

Add a collection

  1. Declare it in src/content.config.ts via defineCollection + Zod schema; export from collections.
  2. Add src/content/<name>/ with one sample file.
  3. Query with getCollection('<name>', filterFn).
  4. The build must exit zero — collection types are generated at build time, so type errors only surface after a build.

Integrations: astro add react tailwind mdx sitemap etc. — never hand-edit the integrations array.

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. 11d ago Changed · -2 lines · -19 tokens per session 036058905627
  2. 12d ago First seen · 33 lines · 56 tokens per session scan A f666d532a282

Subscribe to this mod's changes

astro-framework is a skill published in the GitHub repository monkilabs/opencastle (80 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 510 once invoked, about $0.0001 per session on Opus 5.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-10-04.

Related

Other skills, from other repositories

product-architect

Complete product development system with 80 agents and 36 frameworks. Use when the user wants to build a product, write a PRD, plan an MVP or roadmap, design an app, research a market or check whether a feature already exists or is novel, do competitive analysis, run a security audit, build a financial model, plan…

ankitjha67/product-architect · 253 tokens

cursor-prompting

Internal guidance for composing cursor-agent prompts and picking models for coding, review, diagnosis, and research tasks inside the Cursor Claude Code plugin.

zebbern/agent-collab · 31 tokens

goal-runner

Use when the user asks to advance, continue, or work on the project's long-horizon goal (or to set one up) — the policy for goal-driven increments driven through the goal companion, one increment at a time, delegated via the codex/cursor delegation skills, honestly recorded.

zebbern/agent-collab · 62 tokens

cursor-result-handling

Internal guidance for presenting Cursor helper output back to the user.

zebbern/agent-collab · 16 tokens

jira-ticket-builder

Turns rough input into structured Jira work. Two modes — single-ticket mode turns a bug description, meeting notes, Slack thread, incident writeup, or a few sentences into one fully-structured Jira ticket; decomposition mode turns a rough requirements doc or product brief with multiple asks and open questions into…

kirti/jira-ticket-builder-skill · 213 tokens

agentflow

Expert guidance for building, debugging, and extending applications with AgentFlow (10xscale-agentflow). Use when code imports from agentflow (e.g. from agentflow import, StateGraph, Agent, ToolNode, AgentState); when the user references agentflow.json or CLI commands (agentflow init, agentflow api, agentflow play…

10xHub/agentflow-cli · 149 tokens