new-component

Generate Windows Forms-styled Astro components with demo pages and navigation links.

Updated Nov 8, 2025
One-click install
npx skills add https://github.com/ntaksh42/windows-design-astro-components --skill new-component
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-component
Source: https://github.com/ntaksh42/windows-design-astro-components/tree/main/.claude/skills/new-component
Command: npx skills add https://github.com/ntaksh42/windows-design-astro-components --skill new-component

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically generates Windows Forms–style Astro components, their demo pages, and navigation links to ensure a consistent design system with minimal manual steps.

Core Features & Use Cases

  • Auto-generation: creates the component file with TS props, default values, slot support, and Windows Forms styling
  • Demo page generation: produces a demonstration MDX page with examples and props table
  • Navigation integration: updates BaseLayout navigation with a link
  • Validation: prompts for component name and validates naming conventions
  • Consistent design: enforces Windows Forms styling like Segoe UI, gradients, borders, and state visuals

Quick Start

Ask for a component name (PascalCase, e.g., Slider). The tool generates src/components/ui/{ComponentName}.astro, src/pages/{componentname}-demo.mdx, and a navigation entry. Then run npm run dev to preview.

Frequently Asked Questions about new-component

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

FAQPage Schema
How do I auto-generate Astro components with Windows Forms styling?

Auto-generate Astro components by providing a PascalCase component name. The Skill creates a .astro file with TypeScript props, JSDoc documentation, default values, Windows Forms styling (Segoe UI font, gradient backgrounds, 3D borders), and slot support automatically.

Can I automate creating demo pages for Astro UI components?

Yes. The Skill generates MDX demo pages alongside each component, complete with usage examples and a props table, then automatically updates navigation. This ensures consistent documentation across your component library.

What's the fastest way to build a consistent Windows Forms UI system in Astro?

Use component generation to enforce design consistency across your Astro project. Each generated component inherits Windows Forms styling—Segoe UI typography, gradient fills, 3D borders, and state-specific styles—reducing manual style duplication.

Do I need to manually update navigation when adding new Astro components?

No. The Skill automatically integrates new components into BaseLayout navigation, eliminating manual link updates and keeping your component registry in sync.

What naming conventions must Astro component names follow?

Component names must use PascalCase (e.g., Slider, Button). The Skill validates naming conventions and generates the component file, demo page, and navigation entry consistently based on this format.

Can I use this Skill to generate components for an existing Astro project?

Yes. The Skill works with existing Astro projects and references your current components for design coherence, creating new components that match established patterns and styling conventions.