Skip to content
Prompt

job-hop — Cursor Rules

by mslowiak

AI Summary

Cursor 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

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 4mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues0
Updated4mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more