wrsmith108

Astro Claude Skill — Development skill for Claude Code

Development community

Claude Code skill for Astro SSR/SSG, middleware, and TypeScript patterns.

How to install Astro Claude Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open wrsmith108/astro-claude-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Astro Claude Skill does

Claude Code skill for Astro SSR/SSG, middleware, and TypeScript patterns.

Alternatives in Development

  • JS To TS — JavaScript to TypeScript Migration Command 74.5k ★
  • TypeScript Lsp — TypeScript / JS /plugin install typescript-lsp@claude-plugins-official 14k ★
  • Mcporter — Call MCPs via TypeScript, masquerading as simple TypeScript API 4.1k ★

README

Astro Framework Skill for Claude Code

A Claude Code skill for Astro development patterns, focusing on SSR/SSG, middleware, and TypeScript.

Installation

git clone https://github.com/wrsmith108/astro-claude-skill.git ~/.claude/skills/astro

What's Included

  • Rendering Modes: SSG vs SSR for protected content
  • Middleware Patterns: Route protection and status validation
  • TypeScript Gotchas: Common preprocessor issues
  • Content Collections: Dynamic routes with SSR
  • Cache Headers: Preventing caching of status pages

Key Insight

In Astro with `output: "static"`, pre-rendered pages **bypass middleware completely**.

Use `export const prerender = false;` for any page requiring authentication.

License

MIT - See [LICENSE](LICENSE)