new-component

Generate Astro component files with typed props and Tailwind CSS styling.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/bluewaves-creations/website-foundation --skill new-component-bluewaves-creations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-component
Source: https://github.com/bluewaves-creations/website-foundation/tree/main/.claude/skills/new-component
Command: npx skills add https://github.com/bluewaves-creations/website-foundation --skill new-component-bluewaves-creations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of new Astro components, ensuring they adhere to project-specific styling and typing conventions.

Core Features & Use Cases

  • Boilerplate Generation: Automatically generates a new .astro file with pre-defined structure.
  • Type Safety: Includes a TypeScript interface Props for robust prop definition.
  • Styling Consistency: Enforces Tailwind CSS usage with dark mode variants.
  • Use Case: When you need to add a new reusable UI element like a card, button, or modal, this skill provides a consistent starting point.

Quick Start

Create a new Astro component named 'UserProfileCard' that accepts a 'user' object prop.

Frequently Asked Questions about new-component

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new Astro component with TypeScript props and Tailwind CSS?

Generating a new Astro component involves creating a `.astro` file with a TypeScript `interface Props` and Tailwind CSS styling. This Skill automates that process, including dark mode variants and dynamic `class:list` support.

What is the best way to enforce project conventions when building Astro UI components?

Enforcing conventions for Astro UI components is done by generating files with a pre-defined structure, TypeScript typing, and Tailwind styling. This ensures every new component adheres to project rules consistently.

Does this Astro component generator support dynamic class application and dark mode?

Yes, this Astro component generator supports dynamic class application using the `class:list` directive and includes Tailwind CSS dark mode variants directly in the generated component boilerplate.

How do I add type safety to my Astro components?

Adding type safety to Astro components requires defining a TypeScript `interface Props` within the frontmatter. This Skill automatically includes this interface in the generated component file for robust prop definition.

Can I generate a reusable UI element like a button or card in Astro?

You can generate reusable UI elements like buttons, cards, or modals in Astro. This Skill provides a consistent starting point with typed props and Tailwind styling for immediate integration.

Why should I use a boilerplate generator for Astro components instead of writing them manually?

Using a boilerplate generator for Astro components eliminates manual setup of TypeScript interfaces and Tailwind dark mode variants, ensuring immediate adherence to project-specific styling and typing conventions.