astro

astro is a cursor rule for Cursor from kleosr/kleosrules. It costs 298 tokens per session, scanned A, original, MIT.

Project rules for Astro, a framework for building websites with HTML and optional interactive components called islands.

In plain words
What is it for?
Use them when creating Astro pages, choosing static or server output, adding official integrations, working with content collections, and deciding where interactive components belong.
Why use it?
They prevent Astro projects from being written with patterns from unrelated frameworks and keep client-side JavaScript limited to places that need it.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use them when creating Astro pages, choosing static or server output, adding official integrations, working with content collections, and deciding where interactive components belong.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kleosr/kleosrules/astro
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.

Clone the repo
git clone --depth 1 https://github.com/kleosr/kleosrules

Made for: Cursor.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/kleosr/kleosrules/astro"><img src="https://agentmods.dev/badge/rules/kleosr/kleosrules/astro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 298 This file is loaded in full into every session.
When invoked 298 The same file — it is already loaded in full.
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.00298 $0.00298
Opus 5.5 $0.00119 $0.00119
Sonnet 5.5 $0.00060 $0.00060
Haiku 4.5 $0.00030 $0.00030

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

Security

Grade A, and why

astro 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 2mo 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.

shared/rules/astro.mdc · 19 lines

What it actually says

Astro

Confirm astro in the owning package.json; globs are candidates. If the owning package has no astro, this file is inert.

Before Write, read version-matched docs for the installed Astro version (Docs MCP if connected, else docs.astro.build); latest may mismatch a pinned project. If neither is available, say so and do not invent APIs. Do not mix Next App Router or Vite-only SPA patterns into .astro pages.

Hard

  • HTML first. Client JS only with an explicit client:* directive. Do not wrap the whole page in React/Vue.
  • Official integrations: prefer the repo manager (pnpm astro add <name> on pnpm); inspect the diff. Hand-edit only when the tool cannot express the config.
  • Content: use Content Collections if this repo already has src/content. Do not invent a parallel glob CMS.
  • Routing and output (static vs server) come from this astro.config.*. No getServerSideProps. No app/ directory as Next.
  • Islands: pass only the props an island needs. No fetching in useEffect for data the .astro frontmatter already has.
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. 2mo ago Changed · +1 lines · +298 tokens per session db3ae97ff307
  2. 2mo ago Changed · -2 lines 370082defab5
  3. 2mo ago Changed 7346e8c4ea78
  4. 2mo ago Changed 299f969e127d
  5. 3mo ago First seen · 20 lines · 0 tokens per session scan A 0d1fdf1217f3

Subscribe to this mod's changes

astro is a cursor rule published in the GitHub repository kleosr/kleosrules (0 stars, last pushed 2mo ago), licensed MIT. It adds 298 tokens to every session, about $0.0012 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-08-31.

Related

astro compared with cursor rules from other repositories

astro next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
astrokleosr/kleosrulesCursor rule02mo agoMITA298Cursor
teamJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
git-masterJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
pipelineJkudjo/oh-my-cursorCursor rule117d agoMITA16Cursor
ultraworkJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
autopilotJkudjo/oh-my-cursorCursor rule117d agoMITA12Cursor
ask-firstjaansokk/cursor_toolsCursor rule110d agoMITA42Cursor