# Astro Cloudflare Backend

> Best practices for backend development in Astro and Cloudflare projects using D1, Drizzle ORM, Astro Actions, and OpenAPI.

- Skill: `firstsun-dev/astro-cloudflare-backend` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add firstsun-dev/astro-cloudflare-backend`
- Raw SKILL.md: https://api.skillmd.com/api/skills/firstsun-dev/astro-cloudflare-backend/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: firstsun-dev (https://skillmd.com/u/firstsun-dev)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/firstsun-dev/astro-cloudflare-backend

---


# Astro & Cloudflare Backend Best Practices

Comprehensive rules for building secure and maintainable backends on Cloudflare using Astro.

## Core Topics

Choose the appropriate reference based on your task:

- **Astro Actions & API Design**: Handling mutations and OpenAPI.
  - Read [references/ACTIONS.md](references/ACTIONS.md).
- **Database (D1 & Drizzle ORM)**: Schema, migrations, and performance.
  - Read [references/DATABASE.md](references/DATABASE.md).
- **Edge-First Development**: Environment alignment and `workerd`.
  - Read [references/ENVIRONMENT.md](references/ENVIRONMENT.md).

---
## Related Skills
- `workers-best-practices`: Core Workers production rules.
- `d1-drizzle-schema`: Advanced D1 schema patterns.

