Skip to content
Prompt

astrodeck — Windsurf Rules

by holger1411

AI Summary

1. PROJECT.md — project-specific overrides (highest priority) 2. AGENTS.md — AstroDeck defaults and patterns 3. README.md — human-readable docs (installation, deployment)

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "astrodeck — Windsurf Rules" prompt rules to my project.
Repository: https://github.com/holger1411/astrodeck

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

Windsurf Rules for astrodeck

Priority Order

• PROJECT.md — project-specific overrides (highest priority) • AGENTS.md — AstroDeck defaults and patterns • README.md — human-readable docs (installation, deployment) ---

Tech Stack

• Astro v6.x — island architecture, file-based routing, zero-JS by default • Tailwind CSS v4 — configured via @tailwindcss/vite (Vite plugin) • shadcn/ui + Radix UI — React components for interactive elements • TypeScript — strict mode, no any ---

Tailwind v4 — Critical Configuration

• Integration: @tailwindcss/vite in vite.plugins (NOT @astrojs/tailwind) • Theme: @theme directive in src/styles/globals.css (NOT tailwind.config.js) • Colors: OKLCH format only (NOT HSL, NOT hex in @theme) • NEVER create tailwind.config.js or tailwind.config.mjs Correct @theme example: @theme { --color-background: oklch(100% 0 0); --color-foreground: oklch(9.8% 0.0016 286.75); --color-primary: oklch(11.2% 0.0079 286.75); --color-primary-foreground: oklch(98% 0.0011 286.75); --color-muted: oklch(96.1% 0.0011 286.75); --color-muted-foreground: oklch(55.6% 0.0117 286.75); } .dark { --color-background: oklch(1.5% 0 0); --color-foreground: oklch(98% 0 0); } ---

Import Alias

Always use @/ for imports from src/. Relative paths are forbidden. CORRECT: import Hero from "@/components/sections/Hero.astro" WRONG: import Hero from "../components/sections/Hero.astro" ---

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 9d ago
Active
AdoptionUnder 100 stars
59 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars59
Forks9
Issues0
Updated9d ago
View on GitHub
MIT 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