Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

astro-best-practices

Sterne6
Forks1
Aktualisiert6. Mai 2026 um 14:29

Best practices and conventions for writing QuickCut application code on Astro 6 SSR + Cloudflare Workers + D1 + Drizzle ORM. Covers server-first data fetching in `.astro` frontmatter, Astro API route handlers under `src/pages/api/`, Zod request validation, `Astro.locals.user` auth and `verifySpaceAccess` checks, Drizzle/D1 query patterns via `createDb(env.DB)` and `src/lib/*` helpers, React component data flow (props from server, no useEffect fetching), realtime broadcasts via Durable Objects, design tokens in `src/styles/tailwind.css`, named exports, shared types in `src/types.ts`, and file placement. Use this skill whenever writing or modifying `.astro` pages, files under `src/pages/api/`, Drizzle queries, validation schemas, React components that talk to the server, or any code handling authenticated user requests in this repo. Also trigger on "add an API endpoint", "create a page", "fetch data", "mutation handler", "auth check", "space access", "Drizzle query", "new table", "new component", or any task to

Installation

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

SKILL.md
readonly