Astro Static Site + Content Collections + Tailwind
Rules for a fully static Astro 7 site: content collections with Zod schemas, zero-JS pages with rare islands, build-time sitemap and OG images, and static hosting on Cloudflare.
- Formats
- 4 files
- AGENTS.md
- 44 lines
- CLAUDE.md
- 14 lines
- Languages
- TypeScript
- Updated
- Oct 2026
- Used by
- 4 projects
Writes .claude/skills/astro-static-content/SKILL.md
$ curl -s --create-dirs -o .claude/skills/astro-static-content/SKILL.md https://stackitfast.com/rules/astro-static-content/SKILL.mdRule files
Works with Cursor · Claude Code · Windsurf · AGY
Architecture notes
Architecture Overview
Guidelines for a fully static Astro 7 site: Markdown and MDX in content collections with Zod schemas, Tailwind CSS, and the occasional island, deployed as plain files to Cloudflare.
Key Advantages
- Nothing to run after deploy: a static build either succeeds or fails, so there is no runtime state for an agent to debug in production.
- Schemas on content: every frontmatter field is typed, so “add a field to every post” is a change the type checker verifies.
- SEO done once: one layout owns the head, and the sitemap, feed and social images are generated with the pages.
Frequently asked questions
When should a static Astro site move to server output?
When a page has to change per request: logged-in views, personalised prices, search over data that is not in the repo. Until then, server output only adds a runtime the agent has to reason about. Moving later is a config change plus an adapter, and individual routes can stay prerendered.
Why content collections instead of a headless CMS?
A collection is a folder of files with a schema the type checker enforces, which is the cheapest possible feedback loop for an agent: a wrong field fails the build. A CMS moves content out of the repo, so the agent can no longer read or verify it in the same change.
Does this AGENTS.md work with Cursor, Claude Code and Windsurf?
Yes. AGENTS.md is the cross-tool standard read by Cursor, Claude Code, Windsurf, Codex and others. A .mdc file is included for Cursor's native rules format.
Used in production
Explore all stackselekcsv
5Keeping parsing, compiled-validator generation, fuzzy column mapping and bitmap error tracking in one dependency-free core package lets every UI framework reuse identical import logic instead of six separate implementations.
OpenSEO
Running on Cloudflare Workers with D1, Workflows and Durable Objects makes it free-tier friendly to self-host and to scale when hosted. Supporting both D1 and Postgres through Drizzle, plus a Docker path, keeps the project portable beyond Cloudflare.
Tinycast
Staying native with zero third-party dependencies and delegating search to Spotlight and system services keeps memory use low. A small embedded JavaScriptCore runtime adds Raycast extension compatibility without pulling in Electron.
Astro
Vite as a first-class dependency and per-framework, per-host integration packages let Astro ship a fast static-first build while opting into server rendering or client hydration only where a project actually needs it.