AI SummaryCursor Rules for Astro projects that provides best-practice guidelines for leveraging Astro's modern features like View Transitions, content collections, server endpoints, and hybrid rendering. Developers using Astro with Cursor IDE benefit from automated code suggestions aligned with these patterns.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "job-hop — Cursor Rules" prompt rules to my project. Repository: https://github.com/mslowiak/job-hop Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Cursor Rules for job-hop
Guidelines for Astro
• Leverage View Transitions API for smooth page transitions (use ClientRouter) • Use content collections with type safety for blog posts, documentation, etc. • Leverage Server Endpoints for API routes • Use POST, GET - uppercase format for endpoint handlers • Use export const prerender = false for API routes • Use zod for input validation in API routes • Extract logic into services in src/lib/services • Implement middleware for request/response modification • Use image optimization with the Astro Image integration • Implement hybrid rendering with server-side rendering where needed • Use Astro.cookies for server-side cookie management • Leverage import.meta.env for environment variables
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts