Claude-skill-registry astroflare
Astro x Tailwind v4 projects on Cloudflare Workers. Use when working with Astro projects deployed to Cloudflare.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/astroflare" ~/.claude/skills/majiayu000-claude-skill-registry-astroflare && rm -rf "$T"
manifest:
skills/data/astroflare/SKILL.mdsource content
Astroflare
Expert guidance for TypeScript, Tailwind, and Astro framework for scalable web development on the Cloudflare platform.
Key Principles
- Write concise, technical responses with accurate Astro examples
- Prioritize static generation and server-side islands with minimal JavaScript
- Use descriptive variable names and follow Astro's naming conventions
- NEVER change the site output without explicit user confirmation - issues are likely elsewhere in configuration, environment variables, or build process
- Organize files using Astro's file-based routing system
- Native over frameworks: Prefer native HTML elements (
,<dialog>
) and web components over framework-specific solutions when possible. Use framework features only when they provide clear value.<form>
Project Architecture
Deployment Target
- Cloudflare Workers with
and component server islands for server-side renderingoutput: 'static' - Use
directive for server islands to optimize performanceserver:defer - Cloudflare adapter configured with platformProxy for forms/server actions
- Trailing slashes always (
) to match Cloudflare Workers behaviortrailingSlash: 'always'
Project Structure
src/ ├── components/ # Astro components and custom web elements │ ├── core/ # Reusable core components │ ├── forms/ # Form components with client-side logic │ ├── modals/ # Modal dialogs │ └── animations/ # Animated components ├── layouts/ # Page layouts ├── pages/ # File-based routing ├── actions/ # Server actions (forms, API endpoints) ├── utils/ # Utility code └── styles/ # Global styles
Component Development
- Create
files for all components - this is the default and preferred approach.astro - Use
for reusable componentscomponents/core/ - Prefer custom web components over React islands for interactivity
- Use native HTML elements (
,<dialog>
) when possible<form>
Package Management
- Use pnpm as the package manager
- Node version: 24.x
- pnpm version: >=10
References
For detailed guidance, see:
- Component patterns and Starwind UIreferences/components.md
- Routing and pagesreferences/routing.md
- Forms and server actionsreferences/forms.md
- Tailwind CSS patternsreferences/styling.md
- Comprehensive SEO guidereferences/seo.md
- Testing patternsreferences/testing.md
- Build and deploymentreferences/deployment.md