Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

astro-best-practices

النجوم٦
التفرعات١
آخر تحديث٦ مايو ٢٠٢٦ في ١٤:٢٩

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

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly